Problem accepting plotSetYRange using plotSetWhichYaxis ...

Using first the statements plotsetYaxis("left") and plotsetYrange works fine (follow my specific statement). However, later in the same procedure using plotSetYaxis("right"), the statement plotSetYrange seem to live its own life. The statement does not follow my specific instructions. Is there any form of the plotSetYRange I can specify the range for both the left and right axes? Or are there some other important overseen statements?

1 Answer



0



You can set the yAxisRight.axisRange member directly as shown in the example below.

x = rndn(100,1);
y = rndn(100,2) .* (1 ~ 4);

struct plotControl myPlot;

myPlot = plotGetDefaults("scatter");
plotSetYRange(&myPlot, 0, 4);

myPlot.yAxisRight.axisRange = -1 | 1;

plotSetWhichYAxis(&myPlot, "left" $| "right");

plotScatter(myPlot, x, y);

aptech

1,548

Your Answer


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy