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

Home » Public Forums » archive » Labeling logarithmic axes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Labeling logarithmic axes [message #92734] Thu, 18 February 2016 17:16 Go to previous message
laura.hike is currently offline  laura.hike
Messages: 87
Registered: September 2013
Member
Hi,

I can't find anything recent about this problem, so....

I am making a line plot and would like to use a logarithmic y-axis. So far so good. I use

pavgsw = plot(merraaswhr,merrap,color='red',thick=2,name='MERRA2',yra nge = [1000,100],ylog=1)

I get a nice plot with a log axis BUT only the 1000 and 100 tick marks are labeled. I would like to label 500 and 200 as well. Doug Fanning has a nice discussion of this at http://www.idlcoyote.com/graphics_tips/minorlog.html, however, the information seems to be outdated (or at least the keywords aren't recognized under the new graphics system). I tried a variety of options based on his method, like defining

axislabels = ['1000', '','','','','500','','','200','100']

then adding

pavgsw.ytickname = axislabels with or without pavgsw.ymajor = 9

(or doing the same with key words in the original plot statement).

The problem is that as soon as I add the ytickname option, the tick marks go back to linear spacing. Does anyone know how to fix this? I should point out that the plotted lines are not affected by the changes to the axis, only the axis markings are.

Thanks much,

Laura H.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Segmentation fault (core dumped)
Next Topic: Harris website down?

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

Current Time: Wed Oct 08 09:08:56 PDT 2025

Total time taken to generate the page: 0.00430 seconds