Another possibility is to plot your data, then crop it off.... meaning take only say the lower 640 pixels of the graph and discard the rest. That would maintain slope, keep the base axis and legend in line. The overshot points would not be visible, but the slope leading to it would be.... in waveform analysis it's called "clipping". I'm sure GD does cropping, google for "perl GD crop"
Isn't there a method in GD::Graph that would make the plotting of the curve dependent on the y_max_value?
Yeah, you would need to scale your data. Loop thru your data before plotting and detect the highest value, then scale everthing accordingly.
In reply to Re: Hide plotted data that exceeds y_max_value in graph produced by GD::Graph::Lines
by zentara
in thread Hide plotted data that exceeds y_max_value in graph produced by GD::Graph::Lines
by djodja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |