PCHomepage
Programmer
Try as I might, I can find no setting to use to keep a plot within the boundaries when manually submitting minimum/maximum X and Y values. The point was to try to zoom in on certain peaks but it always slides the X off into the grey title border on both the left and right sides. Instead I want it to stop within the plot area. In other words, if I set the minumum to 400, I want the plot to begin at 400 which it does but without still plotting lower values off the scale to the left.
This is just a fairly basic line plot. Any idea?
This is just a fairly basic line plot. Any idea?
Code:
$graph = new Graph(800,450,"auto");
$graph->SetImgFormat('png',60);
$graph->img->SetAntiAliasing();
$graph->SetScale('linlin');
$graph->yaxis->scale->SetAutoMin($PlotYMin);
$graph->yaxis->scale->SetAutoMax($PlotYMax);
$graph->xaxis->scale->SetAutoMin($PlotXMin);
$graph->xaxis->scale->SetAutoMax($PlotXMax);