Bug regarding plot limits when setting RANGE and TICKS [message #2981] |
Fri, 14 October 1994 10:27 |
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
|
|
|