JuliaGraphics / Winston.jl

2D plotting for Julia
MIT License
171 stars 55 forks source link

image file size output #164

Closed JoePython1 closed 9 years ago

JoePython1 commented 10 years ago

The image width and image length is 512 by default. Can that be adjusted dyanmically?

stillyslalom commented 10 years ago

I don't know how to change the default size for displayed figures, but you can change the output image size (in pixels) with arguments to the savefig command, as in the following:

using Winston
x = linspace(0,1,10)
y = rand(10)
p = FramedPlot()
add(p, Curve(x,y))
savefig(p,"test.svg","width",800,"height",400)