Closed MBravoS closed 1 year ago
Switched to using plt.stairs() for plotting hist_types='step' and 'stepfilled' in devel@e55c572. Functionality is exactly what we needed and negates the need for the custom step_filler functions, these can be removed from base_func.py in a later version.
I just noticed that v3.4 has been released (3.4.2 at time of writing), and having a quick look I noticed at least one new feature that could be useful for splotch: the new
matplotlib.pyplot.stairs
function. This could be useful forplots_1d.hist
when passinghist_type='step'
, as currently we have to add one extra data point to get the same behaviour frommatplotlib.pyplot.step
. We should still keep the current method for backward compatibility, but could be something to change un the future. Also worth having a more detailed look at everything new with 3.4, might be more things we could use there.