comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Changing a Plot's Resolution
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Changing a Plot's Resolution [message #91337] Tue, 30 June 2015 14:41 Go to next message
Maryam is currently offline  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 Go to previous messageGo to next message
Phillip Bitzer is currently offline  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
Re: Changing a Plot's Resolution [message #91356 is a reply to message #91342] Thu, 02 July 2015 11:29 Go to previous message
Maryam is currently offline  Maryam
Messages: 16
Registered: July 2012
Junior Member
Awesome! Thanks Phillip :-)

Maryam
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: USERSYM Procedure Vertices
Next Topic: Combine few eps files in one eps with high resolution

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:14:52 PDT 2025

Total time taken to generate the page: 0.00404 seconds