Arian
Arian

Reputation: 3241

Androidplot: Improve Axis layout (remove cutoff values)

On Androidplot my Axis Vals are cut off, so the last values are only shown half. How to fix this issue?

Upvotes: 4

Views: 1862

Answers (2)

buczek
buczek

Reputation: 2050

In case the solution by Coretek doesn't work for you, as it did not for me, I found this solution to produce the desired output:

YOURPLOT.getGraphWidget().setGridPaddingRight(AmountOfSpaceDesired);
YOURPLOT.getGraphWidget().setGridPaddingTop(AmountOfSpaceDesired);

This will not just move your axis to no longer be cut off, but also your graph. I wanted a little extra space on the top where I previously had a point touching along with the right side where another point was touching.

I hope this can help someone as it has helped me.

Upvotes: 6

Arian
Arian

Reputation: 3241

dynamicPlot.getGraphWidget().setMarginTop(4);
dynamicPlot.getLegendWidget().setHeight(14);

Luckly I still found something in the androidplot forums cache.

Upvotes: 4

Related Questions