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

Home » Public Forums » archive » Re: 2 plotting questions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: 2 plotting questions [message #69775] Sun, 14 February 2010 10:52
will.flanagan is currently offline  will.flanagan
Messages: 3
Registered: February 2010
Junior Member
David - thanks for all of the great suggestions and links!

Will
Re: 2 plotting questions [message #69782 is a reply to message #69775] Fri, 12 February 2010 16:11 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
will.flanagan writes:

> Is it possible to choose which values are displayed on a given axis?
>
> Let me elaborate with an example... I am doing a 'plot_io' (y
> logarithmic) with 'yrange=[50,3500]' and 'ystyle=1' (to overide the
> IDL default range). IDL labels the y-axis at y=100 and y=1000. Is
> there a way to ask IDL to also put labels at y=50 and y=3000 without
> adding them by hand (xyouts)?

I'm grateful you have given up looking for "easy" solutions. ;-)

Yes, it is possible, but you have to futz around a bit.
Here is an article:

http://www.dfanning.com/graphics_tips/minorlog.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
Re: 2 plotting questions [message #69783 is a reply to message #69782] Fri, 12 February 2010 16:04 Go to previous message
will.flanagan is currently offline  will.flanagan
Messages: 3
Registered: February 2010
Junior Member
Thanks David,

If I may ask one follow up question on plotting:

Is it possible to choose which values are displayed on a given axis?

Let me elaborate with an example... I am doing a 'plot_io' (y
logarithmic) with 'yrange=[50,3500]' and 'ystyle=1' (to overide the
IDL default range). IDL labels the y-axis at y=100 and y=1000. Is
there a way to ask IDL to also put labels at y=50 and y=3000 without
adding them by hand (xyouts)?

I appreciate the help!
Will
Re: 2 plotting questions [message #69790 is a reply to message #69783] Fri, 12 February 2010 05:40 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
will.flanagan writes:

> I have 2 questions with regards to plotting. I hope that these are not
> too basic:
>
> 1. How do you make the plotting grid more thick when using a simple
> 'plot' procedure? I see how to make characters and lines thinker with
> the 'thick' and 'charthick' keywords, but I don't see how to make the
> axis thicker.

Use XThick, YThick, etc. Or, !X.Thick, !Y.Thick, etc.

> If it is relevant, I am plotting to postscript and I want the plots to
> show up better in presentations.

Oh, well, then use PS_Start. All this is then done automatically. ;-)

http://www.dfanning.com/graphics_tips/weboutput.html

> 2. Completely unrelated - In the plot labels, I wish to use more
> sophisticated symbols, such as a character with a ~ above or a
> character with both a subscript and superscript which are not offset.
> Are there any easy ways to do this in IDL?

It depends on whether you can find these characters in a font-set
somewhere. If you can, it is fairly easy. If you can't, then
it is not so easy.

http://www.dfanning.com/graphics_tips/numlabel.html

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Segfault when smoothing image
Next Topic: Re: Editing Shapefile

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

Current Time: Wed Oct 08 11:43:54 PDT 2025

Total time taken to generate the page: 0.00577 seconds