Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed as not planned
Description
Problem
When usinguncertainties
library I would like pyplot to plot errorbar automatically when doing:
plt.plot(x,y)
(x,y are type ofuncertainties.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 theplot()
function?
Check if passed something from the uncertainties library and then plot using the errorbar.