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

Home » Public Forums » archive » Problem with 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
Problem with tick marks [message #85572] Sun, 18 August 2013 05:50 Go to previous message
Sir Loin Steak is currently offline  Sir Loin Steak
Messages: 42
Registered: January 2012
Member
Hi all,

This is probably easy to solve, but is confusing me! I am plotting atmospheric data in pressure coordinates, and all I want is

1. The pressure axis to go from 500 to 10 in a log scale
2. The pressures 500,100,10 to be labelled
3. Minor tickmarks as in a standard log plot, e.g. at 400,300,200,90,80,...20

However I seem to be having trouble getting this.

If I plot the y axis from 1000 to 10, then all is fine:

contour, fltarr(2,2), [0,1], [1000,10], /nodata, $
yrange=[1000,10], ystyle=1, /ylog


However, if I specify the yrange as [500,10] then the minor tickmarks are ok, but IDL only labels the levels 100 and 10:

contour, fltarr(2,2), [0,1], [1000,10], /nodata, $
yrange=[500,10], ystyle=1, /ylog

If I specify I want the pressures 500,100,10 labelled, then IDL does this, but removes the minor tickmarks:

contour, fltarr(2,2), [0,1], [1000,10], /nodata, $
yrange=[500,10], ystyle=1, /ylog, $
yticks=2, ytickv=[500,100,10]

I can't specify the yminor value, as it is different going from 500-100 compared to 100-10.

Is there something obvious I'm missing?

Thanks in advance!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Rick Towler's RHTCamera on 64 bit Windows
Next Topic: Progress Bar - Cancel button problem

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

Current Time: Wed Oct 08 16:13:05 PDT 2025

Total time taken to generate the page: 0.00979 seconds