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

Home » Public Forums » archive » YRAANGE
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: YRAANGE [message #93291 is a reply to message #93290] Mon, 06 June 2016 19:17 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 6/6/16 2:50 pm, AGW wrote:
> On Monday, June 6, 2016 at 3:41:01 PM UTC+2, AGW wrote:
>> Hi, I plot with yrange=[500,-300] but program produce y range as
>> 400, 200, 0. but I want to make it as 500,0,-500,-1000 (I want to
>> control with range) how can I do it?
>
> I want to say in y axis appears range as 400, 200, 0. etc I want to
> make it appears as 500,0,-500,-1000 in all cases YRANGE=[500,-3000].
> In other words I want to control with numbers on Y range as every 500
> or 200 ...
>

I'm still a bit confused, but I think you mean that you want to control
the y-axis range (YRANGE) and the y-axis tick mark locations (YTICKV), i.e.:

plot, findgen(20) * 20, yrange=[0, 500], ytickv=findgen(11) * 50, $
yticks=10, yminor=5

This makes the y-axis range 0 to 500 and places a tickmark every 50. But
you could do something more exotic, e.g.:

plot, findgen(20) * 20, yrange=[0, 500], $
ytickv=[0., 100., 125., 150., 175., $
200., 250., 300., 400., 450., 500.], $
yticks=10, yminor=5

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: contour problem (Triangle not in counterclockwise order)
Next Topic: FG problem

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

Current Time: Wed Oct 08 13:56:48 PDT 2025

Total time taken to generate the page: 0.00199 seconds