Right now the y-axis range is equal to the range of event values to be plotted. In some cases (for instance, plotting demand data), it's useful to have the lower limit of the y-axis range set to 0. This could be a plot option. Alternatively, allow setting the range directly, so it can be taken from the range of event_value known for the sensor. For example:
y_range = (bdf.values.min(), bdf.values.max()) # limits are taken from the range of bdf
y_range = (0, None) # lower limit is 0, upper limit is taken from the plotted data
y_range = (None, None) # default, limits are taken from the plotted data
Right now the y-axis range is equal to the range of event values to be plotted. In some cases (for instance, plotting demand data), it's useful to have the lower limit of the y-axis range set to 0. This could be a plot option. Alternatively, allow setting the range directly, so it can be taken from the range of event_value known for the sensor. For example: