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

Home » Public Forums » archive » Extracting plot boundaries
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: Extracting plot boundaries [message #86067 is a reply to message #86066] Mon, 30 September 2013 01:21 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Monday, September 30, 2013 10:12:49 AM UTC+2, Beau Bellamy wrote:
> This is just a question regarding aesthetics.
>
> I am plotting some time series data and i am adding labels for sections of the data that are related to when the data was collected. I want to make it so the labels are always in the same place relative to the boundaries (mostly the top). I am currently using yrange to set the boundaries, but IDL is optimizing the space somehow and the value i set isn't the top boundary of the plot. Is there a way to extract the top boundary, i.e. max Y value, of a plot?

Hi,
Just a quick guess: did you use YSTYLE = 1? This will set the range to exactly what you want (see http://www.exelisvis.com/docs/graphkeyw.html#graphkeyw_32887 78166_332116).

Alternatively, you can have a look at the variable !y.crange. This will be set after you plot. See http://www.exelisvis.com/docs/Graphics_System_Variable.html

What might also be useful when plotting is setting the /ynozero keyword to avoid including the 0 value on y.

If you are using function graphics, I believe that similar solutions are available.

Regards,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: how to set density slice color using the IDL new graphic
Next Topic: Problem of converting plots with both plotimage and multiplot to postscript

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

Current Time: Thu Oct 09 23:56:34 PDT 2025

Total time taken to generate the page: 1.04131 seconds