Changing a Plot's Resolution [message #91337] |
Tue, 30 June 2015 14:41  |
Maryam
Messages: 16 Registered: July 2012
|
Junior Member |
|
|
Hi everyone.
I know there are ways to set the resolution for a plot in IDL when you are writing it into a PNG or PS file, but I am using plot3d (p = plot3d(x,y,z, '4.'), where x,y,z are some arrays) and can't write it into either of the above formats, and thus can't change its resolution. Any idea how I can do that?
Thanks,
Maryam
|
|
|
Re: Changing a Plot's Resolution [message #91342 is a reply to message #91337] |
Wed, 01 July 2015 08:14   |
Phillip Bitzer
Messages: 223 Registered: June 2006
|
Senior Member |
|
|
On Tuesday, June 30, 2015 at 4:41:17 PM UTC-5, Maryam wrote:
> Hi everyone.
>
> I know there are ways to set the resolution for a plot in IDL when you are writing it into a PNG or PS file, but I am using plot3d (p = plot3d(x,y,z, '4.'), where x,y,z are some arrays) and can't write it into either of the above formats, and thus can't change its resolution. Any idea how I can do that?
>
> Thanks,
> Maryam
I'm not really sure I understand the issue. You can absolutely save your plot as a PNG:
x= (y= (z=randomn(1l, 100))
p=plot3d(x, y, z, '4')
p.save, 'test.png'
There are also all sorts of keywords, including one to specifically set the resolution.
http://exelisvis.com/docs/save_method.html
|
|
|
|