comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Specifying Log Axis Tick Marks
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Specifying Log Axis Tick Marks [message #46156 is a reply to message #46139] Mon, 07 November 2005 11:12 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi JD,

XTICKS=2 and YTICKS=3

does it

cheers

Reimar

--- snipped ---

plot,.5+randomu(sd,100)*.3,.4+randomu(sd,100)*.3,/XLOG,/YLOG ,$
PSYM=4,XRANGE=[.5,.8],YRANGE=[.4,.7],/XSTYLE,/YSTYLE, $
XTICKS=3,XTICKV=[.5,.7,.8],YTICKS=4,YTICKV=[.4,.5,.6,.7]
% PLOT: Data coordinate system not established.
% Execution halted at: $MAIN$

Ouch! So what's happening? It appears that for logarithmic plots,
the data coordinate system isn't yet set, probably because the ticks
are evaluated before the log coordinate frame is setup. Hence, you
cannot specify the locations of the tick marks. What to do? Draw
your own axes by hand using plots and xyouts? Perish the thought. It
turns out you can simply skip the axes when first plotting, and use
AXIS to add them straightforwardly after the coordinate frame has been
set:
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Converting Doubles to Strings
Next Topic: Converting Doubles to Strings

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 01:07:43 PDT 2025

Total time taken to generate the page: 1.56729 seconds