Range field in Android Plot (0.6.1.) is not showing the entire number


I create a simple xyseries with a boundary and set the mode to AUTO.

The range of values I set is between 103 and 107. I am getting constant updates between these values and can I redraw the plot when it goes over size=20.

The Y axis seems to only take two digits and not the entre number. This is the code.

plot.setRangeBoundaries(0, 200.0, BoundaryMode.AUTO); plot.setDomainBoundaries(0, 20, BoundaryMode.AUTO);

In the graph I am seeing the following on the Y axis and X axis with the dynamic graph. The Y axis should start from 103.0 to 107.0 but seems they are getting truncated.

07.0<br /> 05.7<br /> 04.3<br /> 03.0<br />       0.0 2.2 4.4 6.7 8.9 11.1 13.3 15.6 17.8 20.0

My question is: <br /> 1. Y axis value is truncated on the first digit. They should be 103.0 to 107.0 but they are 03.0 to 07.0. <br /> 2. Is there a way to set the Y axis to a whole number?


The missing digit(s) are most likely getting clipped by the graphWidget's margin. Try giving it more room by adding this to your XYPlot's xml config:


As far as setting the Y axis to a whole number - sure you can. <a href="http://androidplot.com/docs/using-axis-value-labels/" rel="nofollow">This doc</a> explains what's going on. What you're probably wanting to do can be accomplished by adding this to your Activity's onCreate() method:

plot.setRangeStep(XYStepMode.INCREMENT_BY_VAL, 1);


  • How to maintain GridPane's fixed-size after adding elemnts dynamically
  • Creating buttons with an Array
  • JavaFX - ScrollPane with StackPane - StackPane's children not layouted when viewportBounds chan
  • iCarousel not scrolling smoothly
  • scipy.ndimage.zoom result depends on image size
  • Facebook Friend Request - Error - 'All users in param ids must have accepted TOS'
  • K Shortest Path Python Not Working
  • Rely on Facebook user id as a permanent user identifier
  • How to add learning rate to summaries?
  • calculating number of bytes of each row in an image
  • Binary trees in scheme
  • Count New Lines in Text File
  • Double dispatch in Java example
  • Tap to record like in vine using javacv
  • can variables be set randomly when declaring them again?
  • Identifier too long in Oracle
  • Recording values of radio buttons in ember
  • Shouldn't else be indented in the below code
  • Google Places API - Find a company's CID and LRD
  • Write output of for loop to multiple files
  • Plotting densities in R
  • In-place sed command not working
  • OSX - always hide certain files
  • bad substitution shell- trying to use variable as name of array
  • Java color detection
  • IE7 and TinyMCE with Plone
  • Access Android Market through SSH tunnel
  • Moving Android View and preventing onDraw to be called over and over again
  • Is playing sound in Javascript performance heavy?
  • HTTP/2 streams vs HTTP/1.1 connections
  • Get data from AJAX - How to
  • C++ Partial template specialization - design simplification
  • Is there a javascript serializer for JSON.Net?
  • Adding a button at the bottom of a table view
  • Where to put my custom functions in Wordpress?
  • Buffer size for converting unsigned long to string
  • Binding checkboxes to object values in AngularJs
  • Android Heatmap on canvas or ImageView
  • Conditional In-Line CSS for IE and Others?