Figure.shift_origin: Improve docstrings, add inline examples and add type hints#2879
Figure.shift_origin: Improve docstrings, add inline examples and add type hints#2879
Conversation
Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com>
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
|
Ping @GenericMappingTools/pygmt-maintainers Since we're working on the As mentioned in the updated docstrings:
So, by default Personally, I prefer to Here are gallery examples that use |
CodSpeed Performance ReportMerging #2879 will not alter performanceFalling back to comparing Summary
|
I'd prefer to explicitly use |
OK. Updated one instance in 7ece697. |
|
Only passing the value is nice because of shortness and data type. But I feel for the examples, it is better to keep the unit because:
|
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
Description of proposed changes
Preview: https://pygmt-dev--2879.org.readthedocs.build/en/2879/api/generated/pygmt.Figure.shift_origin.html