Re: (simple question) PLOT, YTICKS in /YLOG AXIS [message #59492 is a reply to message #59491] |
Fri, 28 March 2008 13:57   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
David Fanning wrote:
> bernat writes:
>
>> Looks this example:
>>
>> Plot, [10], [0.3], yr=[0.22,0.55], xr=[0,20], ystyle=1, /ylog,
>> psym=2, yticks=1, ytickv=loglevels([0.22,0.55])
>>
>> the result is:
>>
>> % PLOT: Data coordinate system not established.
>
> This happens when there is a mismatch between the number
> of values returned by LOGLEVELS and the number you use
> for YTICKS. This is why I think you should look at the
> *REVISED* web page article and use the code you find there:
>
> ticks = LOGLEVELS([0.22,0.55])
> nticks = N_Elements(ticks)
> Plot, data, /YLOG, YRANGE([0.22,0.55])YTICKS=nticks-1, $
Shouldn't that be
YRANGE *=* [0.22,0.55] *,* YTICKS=nticks-1
?
Or does IDL workbench accept user-defined syntax?
:o)
Man, the minute hand sure does move slow on a friday.....
cheers,
paulv
> YTICKV=Reverse(ticks)
>
> Cheers,
>
> David
|
|
|