Try using values_format, formatting the maxima as numbers and everything else as an empty string, e.g.
sub v_format {
my $value = shift;
if ($value >= ($MAX - $EPSILON)) {
return $value
} else {
return '';
}
$my_graph->set('values_format' => \&v_format);
| [reply] [d/l] |
| [reply] |
If I'm reading your post correctly, take a look at these values in the docs for GD::Graph
x_label_skip, y_label_skip
Print every x_label_skipth number under the tick on the
x axis, and every y_label_skipth number next to the tick
on the y axis. Default: 1 for both.
Update:
I misread this question, but the settings I pointed out above are still useful for some graphing ops, so I'll leave the post intact.
ryddler | [reply] [d/l] |
ryddler,
Thanks for your post. Yeah, what I'm looking to do is label certain points on the graph (like the maximum Y values). I've got the tic labeling figured out.
While I'm on this topic...are there any monk recommendations for another graphing module that do a better job at what I'm trying to do? Basically, I'm taking spectra which contain thousands of x, y data points and I just want to do some automated labeling of some of the biggest peaks. Thanks...
chinman
| [reply] |