#22 Axis improvements

closed-fixed
nobody
None
5
2010-02-22
2009-09-17
Joanna
No

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.

Discussion

  • Sylwester Arabas

    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

     
  • Joanna

    Joanna - 2009-10-09

    Thanks for this comment. I will certainly expand the patch.

     
  • Sylwester Arabas

    I've commited the patch to the CVS and added a tracker-item describing the problem with YRANGE keyword.
    Thanks again!

    Regards,
    Sylwester

     
  • Sylwester Arabas

    • status: open --> closed-fixed
     
  • Sylwester Arabas

    Marc has just fixed the problem with X/YRANGE keyword.

     

Log in to post a comment.