Closed as not planned
Description
Problem
When using uncertainties
library I would like pyplot to plot errorbar automatically when doing:
plt.plot(x, y)
(x,y are type of uncertainties.unumpy
).
Instead of writing the whole:
plt.errorbar(unp.nominal_values(x), unp.nominal_values(y), xerr=unp.std_devs(x), yerr=unp.std_devs(y))
Because then it is more user friendly, easy to understand and use.
Proposed solution
I guess its adding some if condition inside the plot()
function?
Check if passed something from the uncertainties library and then plot using the errorbar.