You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
As agreed above, we'll figure out how to pass in an 'error' column with error_bars (E) and rename 'sizes' to 'size' in a separate PR next time.
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 with pygmt somehow! I.e. pass in an uncertainty array to fig.plot() and have it plot the error bars directly. Also could tie this in with the pint 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:
"Can't use arrays for color if data is matrix or file."
)
extra_arrays.append(kwargs["G"])
delkwargs["G"]
to use kwargs["E"] instead of kwargs["G"], or maybe turn it into a for-loop over ("G", "E"). That way, passing an array into error_bars (E)should work, but I haven't tested it.
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: