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

Home » Public Forums » archive » Re: max_value/min_value in the x-axis?
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: max_value/min_value in the x-axis? [message #81012] Fri, 03 August 2012 05:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
John Coxon writes:

> Ah, I should have been more clear: I want the axes to remain the same
> (hence looking specifically for an equivalent to MAX_VALUE instead of
> just using this method).

Ah. Well, then something like this, I guess:

indices = Value_Locate(x, [minVal, maxVal])
cgPlot, x[indices[0]:indices[1]], y[indices[0]:indices[1]], $
XRange=[Min(x),Max(x)]

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: max_value/min_value in the x-axis?
Next Topic: shifted .kml created with IDL

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

Current Time: Wed Oct 08 19:21:05 PDT 2025

Total time taken to generate the page: 0.00453 seconds