-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow passing in a column to plot for error_bars #735
Comments
Just as a follow because there's a related post on the forum (https://forum.generic-mapping-tools.org/t/pygmt-plot-errorbars), what we could do is to copy and modify these lines Lines 207 to 213 in 65b099a
to use |
Just a quick note. The order of the data columns is important. For error bars,
Refer to https://docs.generic-mapping-tools.org/dev/plot#e for details. |
The
pygmt.fig.plot
method has an error_bar (E) argument that isn't very usable right now. Ideally we would be able to pass in a list or numpy array of error values (e.g. standard deviation).Originally posted by @weiji14 in #666 (comment)
There's also a Python package called
uncertainties
at https://github.com/lebigot/uncertainties/ which wraps error values around numpy arrays, it might be cool if we can integrate that withpygmt
somehow! I.e. pass in anuncertainty
array tofig.plot()
and have it plot the error bars directly. Also could tie this in with thepint
package at https://github.com/hgrecco/pint which has a concept of "Measurements" that includes the error with numbers.The text was updated successfully, but these errors were encountered: