Get the maximum value of some curves for each x

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
villela
Posts: 12
Joined: Sat Feb 27, 2010 5:10 pm

Get the maximum value of some curves for each x

Post by villela »

I have tried to find out how to get the maximum value of some curves (cartesian coordinate xy graph) for each x value, but I failed. Could you help me?
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

It really wasn't designed for this, but you can do this with the $YMAX text placeholder. $YMAX(0) gives the maximum Y value for all curves. $YMAX(0,a,b) (where a and b are numbers) gives you the maximum Y value for all curves between a < X < b. So if you make a and b some small delta less than and greater than the X you're interested in, this will do the job... sort of. The returned value may not be exactly at X, but if you make the delta small enough it should be fairly close.
Visualize Your Data
support@dplot.com
Post Reply