You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing grid insets after the plot has been drawn once do not have effect.
Steps to reproduce the issue
After drawing the plot once
// kotlin
plot.clear()
plot.graph.gridInsets.bottom = PixelUtils.dpToPix(40f)
plot.redraw()
This is because XYGraphWidget onResize is the only place where gridInsets have an effect.
This is called by Widget checkSize which guards calling resize with size of the widget rect. CheckSize is called on widget.draw() But the widget rect does not change due to gridInset being changed.
One quick fix could be to call onResize whenever gridInsets is set.
Version(s) of Androidplot being used
1.5.4
The text was updated successfully, but these errors were encountered:
* remove unused button from simple xy plot
* #78 Fixes issue where setting XYGraphWidget insets has no effect.
* XYGraphWidget.drawMarkerText is now protected instead of private.
* 1.5.5 documentation updates
Changing grid insets after the plot has been drawn once do not have effect.
After drawing the plot once
// kotlin
plot.clear()
plot.graph.gridInsets.bottom = PixelUtils.dpToPix(40f)
plot.redraw()
This is because XYGraphWidget onResize is the only place where gridInsets have an effect.
This is called by Widget checkSize which guards calling resize with size of the widget rect. CheckSize is called on widget.draw() But the widget rect does not change due to gridInset being changed.
One quick fix could be to call onResize whenever gridInsets is set.
1.5.4
The text was updated successfully, but these errors were encountered: