GenericMappingTools / GenericMappingTools/pygmt

Add a standalone "pygmt.Figure.errorbar" method

Open
#2,513 0 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Python
Stars
874
Forks
255
Avg merge
1d 21h
Merged PRs (30d)
40

Description

### Description of the desired feature

[pygmt.Figure.plot](https://www.pygmt.org/dev/api/generated/pygmt.Figure.plot.html) allows to add errorbars to data points. The current syntax for the `error_bar` parameter is:

[**x**|**y**|**X**|**Y**][**+a**|**A**][**+cl**|**f**][**+n**][**+w***cap*][**+p***pen*]

However, a standalone `pygmt.Figure.errorbar` method seems more Pythonic and userfriedly.

_First suggested by @seisman in https://github.com/GenericMappingTools/pygmt/pull/2429#issuecomment-1501509387_:
> Maybe we should add a standalone Figure.errorbar() method, like https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.errorbar.html.

Related to PR #2429

### Are you willing to help implement and maintain this feature?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.