Figure.subplot: Add parameters autotag/tag_box/tag_position/tag_orientation/tag_number_style/tag font for controlling subplot tagging#4313
Conversation
4b6a925 to
c95883c
Compare
…utotag_margins_title.png.dvc
|
@GenericMappingTools/pygmt-maintainers I think this PR is ready for final reviews. Please read the top post for the implementation details. I'm still debating about the parameter name The new syntax would be like: So, |
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)DetailsAdded imagesModified images
Report last updated at commit 0c7de28 |
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)DetailsAdded imagesModified images
Report last updated at commit d91d395 |


This PR provides a more Pythonic implementation for the
-Aoption ofsubplotby splitting it into multiple parameters.The full syntax is:
In PyGMT, the Pythonic parameters are:
autotag:autotag[Previously it's calledautolabel, but I feel it should be calledautotagortag][+cdx[/dy]][+gfill][+ppen][+s[[dx/dy][/shade]]]:tag_box. Controls the box outline. It's a subset of the existingBoxclass, so we can directly pass aBoxobject![+j|Jrefpoint][+odx[/dy]]:tag_position, use thePositionclass+r|R:tag_number_style+v:tag_orientationFONT_TAG:tag_fontIt's a POC PR, and is not complete or final yet. Here is an example usage:
Preview: https://pygmt-dev--4313.org.readthedocs.build/en/4313/api/generated/pygmt.Figure.subplot.html#pygmt.Figure.subplot