Login  Register

Re: controlling limits on Plot

Posted by Kenneth Sloan-2 on Mar 16, 2018; 12:44pm
URL: http://imagej.273.s1.nabble.com/controlling-limits-on-Plot-tp5020292p5020294.html

Oops! Facepalm.

Many thanks.
On Fri, Mar 16, 2018 at 04:43 Michael Schmid <[hidden email]>
wrote:

> 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
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html