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

Home » Public Forums » archive » moving axes around in 3D 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
Re: Moving Axes [message #58504 is a reply to message #3730] Wed, 30 January 2008 07:13 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
> I'm plotting data which has both +ve and -ve x and y values and
> possesses a linear relationship which crosses the xaxis at a value>0. At the moment my x-axis is 'sitting' at y= -5,

This is normal IDL behavior, IDL draws a box around the plot with the
ranges on it so you probably have an xaxis 'sitting' at -5 and another
at +6 (or something).

A more specific example could help us understand more fully but in my
example:
plot, findgen(10)-5
i have a xaxis at y=-6 and y=+4.

I often draw a horizontal line on a plot at y=0 to help guide the eye,
done without thinking using:
http://people.bu.edu/balarsen/IDLdoc/oplot_horiz.html
http://people.bu.edu/balarsen/IDLdoc/oplot_vertical.html

As for making the plot with the x-axis in the middle of the plot at
y=0, I am sure this is possible but I cant recall any easy way. Have
you looked though http://dfanning.com/ ? An amazing number of
questions are answered there,



Cheers,

Brian

------------------------------------------------------------ -------------
Brian Larsen
Boston University
Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: error with ARROW
Next Topic: array concatenation

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

Current Time: Sat Nov 29 01:48:40 PST 2025

Total time taken to generate the page: 0.00254 seconds