Figure.inset: Deprecate parameter margin to clearance (Will be removed in v0.20.0)#4296
Figure.inset: Deprecate parameter margin to clearance (Will be removed in v0.20.0)#4296
Conversation
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
|
It's a good time to decide the implemention of the
So, the GMT CLI usage can be:
Or, it's possible to set margins with repeated options, e.g.,
I feel it's technically possible but difficult to support both. To keep it simple, I would prefer to only support the first usage, i.e.,:
To set margins for specific sides only, users can set it to 0. For example,
|
|
Actually, it should be In subplot, |
With the change from -M to -C we should also change the parameter name in PyGMT to have this consistent. Updatde to |
|
I feel this PR is good to merge. We can update the docstrings of |
Description of proposed changes
To make the parameter name consistent with
Figure.suplotand to consider that a list can be passed with different margins for the different sides.Note: Since GMT 6.4.0 -M is changed to -C (see #4296 (comment)), so it should be not
marginsbutclearance(see #4296 (comment)).Preview:
Guidelines
Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash command is:
/format: automatically format and lint the code