|
Re: 2 plotting questions [message #69782 is a reply to message #69775] |
Fri, 12 February 2010 16:11  |
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  |
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  |
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.")
|
|
|