Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ENH]: Automatically plot errorbar when using uncertainties library #30129

Closed as not planned
@zfrhv

Description

@zfrhv

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp