The plugin does this already. If you don't set the following properties for the Y axis, the scale should adjust automatically based on the data plotted.
Y axis min
Y axis max
Tick labels
Tick locations
Any of these settings will override aspects of the automatic scaling (and labeling.) That said, you can set the
Y axis min to zero and leave the
Y axis max set to None which will cause the plot to always have the axis start at zero but let the max adjust automatically. I use these settings a lot.
For example, I have my humidity charts limited from 0 to 100 since we know that the value should never be outside of that range. But I don't like how the line intersects the top boundary of the chart when the humidity is 100 percent. So I set the Y axis properties like this:
Y axis min = 0
Y axis max = 105
Tick locations = 0, 20, 40, 60, 80, 100
Tick labels = 0, 20, 40, 60, 80, 100
- chart_humidity_outdoor.png (16.87 KiB) Viewed 3922 times
Note the tiny gap at the top. But if I delete all these settings, the plot scales automatically:
- chart_humidity_outdoor 1.png (19.85 KiB) Viewed 3922 times