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

Home » Public Forums » archive » Square pixels in surface/lego plots
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Square pixels in surface/lego plots [message #8407] Fri, 07 March 1997 00:00 Go to previous message
bmac is currently offline  bmac
Messages: 2
Registered: January 1996
Junior Member
Let us say I have a rectangular array,

SAO56102=fltarr(60,30)


that I wish to make a lego-style surface plot of.

What's the simplest way to make sure the pixels come out reasonably
square? If you just do

surface,SAO56102,/lego

in a default-sized window/plot region the pixels are elongated and
rectangular and look terrible. surface seems to elongate the image independently
in each direction to fill the window.

The only options I've been able to come up with are

(a) By trial-and-error, change the size of the WINDOW or the
plotting region in postscript output until the image looks reasonable
(and then have to find a different size if I change, for example, the
viewing angle, or add axis labels, or for each new array...)

(b) Pad the array to be square and use a squarish window

(c) Use the yrange to make the axis of the graph square -

surface,SAO56102,/lego,yrange=[-15,45],ystyle=1


Any easier approaches?

Bruce
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Software for importing EPS files into MS Office applications
Next Topic: Linked List

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

Current Time: Fri Oct 10 08:09:23 PDT 2025

Total time taken to generate the page: 0.00664 seconds