XYplot nDecimalPlaces only working on Yaxis
Posted: Thu Oct 26, 2023 9:54 pm
I am plotting data on an XYplot.
Here is the Arduino code that is sending the data. Note the 4 for nDecimalPlaces
void updateUserInterface() {
plotArticulation.SendData("Articulation", wirePullDistance, articulationAngle, 4 );
plotArticulation.SendData("Force", wirePullDistance, force, 4 );
}
The output that shows in the monitor looks like this. There are four decimal places for the Y axis data, but not the X axis data.
{XYPLOT|DATA|Articulation|-0.08|-11.0034}
{XYPLOT|DATA|Force|-0.08|1.2643}
How do I get four decimal places for the X axis data?
Jeff
Here is the Arduino code that is sending the data. Note the 4 for nDecimalPlaces
void updateUserInterface() {
plotArticulation.SendData("Articulation", wirePullDistance, articulationAngle, 4 );
plotArticulation.SendData("Force", wirePullDistance, force, 4 );
}
The output that shows in the monitor looks like this. There are four decimal places for the Y axis data, but not the X axis data.
{XYPLOT|DATA|Articulation|-0.08|-11.0034}
{XYPLOT|DATA|Force|-0.08|1.2643}
How do I get four decimal places for the X axis data?
Jeff