I'm not seeing what I expect when using x_labels(n). I appreciate that it gives a maximum of n labels, but it sometimes just doesn't label the left most point on the x-axis if the value is whole number.
or something similar. This ensures -1 is in the range. I'd like this simple case to be correctly handled if possible.
Version Information
I'm using v0.3 of plotters, driving it using plotters-iced v0.1. (I can't get plotters v0.3.1 to work - it complains about "failed to select a version for 'web-sys'")
I'm not seeing what I expect when using x_labels(n). I appreciate that it gives a maximum of n labels, but it sometimes just doesn't label the left most point on the x-axis if the value is whole number.
From the demo code:
This produces an x-axis from -1 to 1 with labels at -0.5, 0, 0,5 and 1.0 ie -1.0 is missing.
I can get what I want if I change the build_cartesian_2d to read:
or something similar. This ensures -1 is in the range. I'd like this simple case to be correctly handled if possible.
Version Information I'm using v0.3 of plotters, driving it using plotters-iced v0.1. (I can't get plotters v0.3.1 to work - it complains about "failed to select a version for 'web-sys'")