Re: x-axis label in plot procedure [message #82210] |
Sun, 02 December 2012 03:41 |
lecacheux.alain
Messages: 325 Registered: January 2008
|
Senior Member |
|
|
Le dimanche 2 décembre 2012 01:17:51 UTC+1, justinclouds a écrit :
> This is probably simple for experienced users but not for me!
>
>
>
> I am plotting plots on top of each other. They are all time series and I just want the time x-axis labels displayed in the bottom plot. In the 'plot' procedure, how do I remove the x-axis label (while keeping the x-axis i.e. just removing the time).
>
>
>
> The code looks like this:
>
>
>
> pp1 = PLOT(x, y, 'r', $
>
> xrange=[70000,85000], $
>
> yrange=[1,10000], $
>
> font_size=10, $
>
> POSITION=[.12,.75,.9,.95], $
>
> LINESTYLE = 'solid_line', $
>
> /ylog, $
>
> title = datefninput, $
>
> ;XTITLE = 'Time (UTC)', $
>
> YTITLE = 'Conc (npmg)')
You can access all the properties of your X-axis by using the corresponding 'AXES' children object. For instance:
IDL> (pp1.AXES)[0].TEXT_COLOR='red'
will change the color of the X tick labels to red.
alain.
|
|
|