Re: changing the format of axis [message #78488 is a reply to message #78363] |
Tue, 22 November 2011 12:58   |
khorsand10
Messages: 12 Registered: November 2011
|
Junior Member |
|
|
On Nov 22, 4:00 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
> On 11/22/11 7:52 AM, khorsan...@yahoo.com wrote:
>
>> On Nov 21, 9:57 pm, Brian Wolven<brian.wol...@gmail.com> wrote:
>>> You'll need to use the [XYZ}TICKV keyword, as documented in the PLOT procedure.
>
>> well, it still doesnt show the x values on X Axis.
>> y=[0.1,0.5,0.2,0.4,0.13]
>> x=[-12,-8,0,5,10]
>> plot,x,y,xtickv=x
>
> From the IDL help:
>
> Note
> To specify the number of ticks and their values exactly, set
> [XYZ]TICKS=N(where N > 1) and [XYZ]TICKV=Values, where Values has N+1
> elements.
>
> So if I do
> plot, x, y, xtickv=x, xticks=n_elements(x)-1
>
> then I get what you want.
>
> -Jeremy.
Thanks Jeremy, it works.
Do you know how I can do this iplot function?
|
|
|