SeitaBV / timely-beliefs

Model data as beliefs (at a certain time) about events (at a certain time).
MIT License
34 stars 6 forks source link

Optional plot setting to set y-axis limit to 0 #51

Closed Flix6x closed 3 years ago

Flix6x commented 3 years ago

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
create-issue-branch[bot] commented 3 years ago

Branch issue-51-Optional_plot_setting_to_set_y-axis_limit_to_0 created!