http://imagej.273.s1.nabble.com/controlling-limits-on-Plot-tp5020292p5020294.html
Oops! Facepalm.
Many thanks.
> On 16/03/2018 05:39, Kenneth Sloan wrote:
>
> I'm having difficulty controlling the min/max x/y bounds of a Plot (in
> a Java plugin).
>
> My code looks like this:
>
> double plotMinX = -3.5;
> double plotMaxX = 3.5;
> double plotMinY = 0.0;
> double plotMaxY = 1.0;
> String rawDataShape =3D "circles";
> plot.add(rawDataShape,xValues,yValues);
> plot.setLimits(plotMinX, plotMaxX, plotMinX, plotMaxX);
> PlotWindow pw =3D plot.show();
>
> ________________________________________________________________
>
> Hi Kenneth,
>
> seems you rather want
> plot.setLimits(plotMinX, plotMaxX, plotMinY, plotMaxY);
>
> (mind the difference between x & y)
>
>
> Michael
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>