Search code examples
androidplot

Can I show the whole vertex point on the edge of the grid?


XYPlot vertex points positioned towards the edge of the grid gets cut off and only show the half of the point inside the grid. Can I make it so the whole point is shown?


Solution

  • You just need to add some padding to the grid like this:

    plot.getGraphWidget().setGridPaddingLeft(PixelUtils.dpToPix(5));
    

    you'll probably also want to do the same on the right to keep things symmetrical.