Remove y-axis in graphics

How do I remove the y-axis in PlotScatter()?  Under the old PQG system, this would be done with  _paxes = {2,0}? Thanks!

1 Answer



0



You can turn off the axis numbers and the axis label with plotSetYAxisShow.

// Turn off Y-axis numbers and labels
plotSetYAxisShow(&myPlot, 0);

You can also set the axes thickness to zero with plotSetAxesPen.

// Set axes line to 0 pixel width
plotSetAxesPen(&myPlot, 0);

but that will apply to the X and Y axes. You could add a black line back in for the X-axis as a workaround.

aptech

1,773

Your Answer

1 Answer

0

You can turn off the axis numbers and the axis label with plotSetYAxisShow.

// Turn off Y-axis numbers and labels
plotSetYAxisShow(&myPlot, 0);

You can also set the axes thickness to zero with plotSetAxesPen.

// Set axes line to 0 pixel width
plotSetAxesPen(&myPlot, 0);

but that will apply to the X and Y axes. You could add a black line back in for the X-axis as a workaround.


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.