[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: !x.crange and !x.tickV



Steve Sanders wrote:
> The fact that !x.crange stores the plot range of the last plot made is
> very convenient: it means that users can take advantage of IDL's
> built-in algorithm to calculate "nice" plot ranges without composing our
> own algrithms.  If !x.tickV could similarly store the tick values for
> the last plot, that would be convenient too.  Anyone know of a way to do
> that?

Try [xyz]tick_get keyword to plot:

IDL> plot, findgen(10), xtick_get=xtick, ytick_get=ytick
IDL> print,xtick
      0.00000      2.00000      4.00000      6.00000      8.00000      10.0000
IDL> print,ytick
      0.00000      2.00000      4.00000      6.00000      8.00000      10.0000

Best regards
Kevin
-- 
  Kevin Ivory                           Tel: +49 5556 979 434
  Max-Planck-Institut fuer Aeronomie    Fax: +49 5556 979 240
  Max-Planck-Str. 2                     mailto:Kevin.Ivory@linmpi.mpg.de
D-37191 Katlenburg-Lindau, GERMANY      http://www.gwdg.de/~kivory2/