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

Home » Public Forums » archive » Bug regarding plot limits when setting RANGE and TICKS
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
Bug regarding plot limits when setting RANGE and TICKS [message #2981] Fri, 14 October 1994 10:27
joel is currently offline  joel
Messages: 5
Registered: May 1994
Junior Member
I have run across the following rather glaring problem, and have no idea why I
did not notice it earlier. I'm posting to see if anyone has comments (am I
just being clueless?) and to give a fix I found for those who may have run into
this problem before.

If you want to reverse the direction of the Y axis in a plot, the following
works fine:

plot, indgen(10), YRANGE=[10,0]

which plots from ten at the bottom to zero at top. HOWEVER, if you specify the
number of ticks for the plot, the plot ranges change to very incorrect values,
e.g., the command:

plot, indgen(10), YRANGE=[10,0], YTICKS=10

results in a plot with ten at the TOP and a larger number (20 or 30 depending
on the versions of IDL I have tested) on the bottom.

I found that this problem can be fixed if you also use YSTYLE=1, which then
correctly sets the axis range.

This problem exists for X, Y, and Z keywords and system variables, and when
using the AXIS and SURFACE procedure. I have tested IDL versions 2.2, 3.5,
and 3.6, and the problem occurs in all of them.

chao
joel parker
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Image question.
Next Topic: Bug regarding plot limits when sett

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

Current Time: Wed Oct 08 13:59:55 PDT 2025

Total time taken to generate the page: 0.00455 seconds