Here I have written up AXIS to behave more like IDL (axes with arbitrary origin). It supports the 2D case and logarithmic axes if the previous plot was logarithmic. The keywords /xlog and /ylog are currently ignored, but IDL's handling of the keywords isn't better. The attached patch is relative to the CVS version downloaded Sept. 14, 2009.
Hello,
Thanks! Could you expand the patch so that the following code (extract from an IDL doc example) gives a correct result?
plot, findgen(10), ytitle = 'Degrees Fahrenheit', xmargin = [8, 8]
axis, yaxis = 1, yrange = (!Y.CRANGE - 32) * 5./9, ytitle = 'Degrees Celsius'
(now both axes represent Fahrenheit)
Best regards,
Sylwester
Thanks for this comment. I will certainly expand the patch.
I've commited the patch to the CVS and added a tracker-item describing the problem with YRANGE keyword.
Thanks again!
Regards,
Sylwester
Marc has just fixed the problem with X/YRANGE keyword.
Log in to post a comment.