Repository navigation
Figure.colorbar: Add alias "no_font_scaling" for "H" - #4783
Conversation
|
maybe font_scaling with default |
Hmmm. Seems we will have fun with double negatives here 😅. My understanding and thoughts so far are: |
|
we can use |
After thinking it twice, I agree that |
| turn of the this automatic fontsize scaling. | ||
| $projection | ||
| $region | ||
| $verbose |
There was a problem hiding this comment.
The -H option only exists in GMT>=6.7.0, so need to check the current GMT version, and raise an exception if GMT 6.5/6.6 is used and no_font_scaling=True.
There was a problem hiding this comment.
Plan to work on this tomorrow (Friday) afternoon.
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Actually, I wonder if we should have the default to be no font scaling. From what I hear, the font scaling feature has confused users for a few years, and people may prefer no font scaling as the default. So, what about having
I know it's inconsistent with the default GMT behavior, but I wonder if no font scaling is more frequently used. |
Likely a bad idea, because |
|
I prefer to have this PR merged in v0.20.0 |
| scaled based on the length of the colorbar following | ||
| :math:`\sqrt{colorbar\_length / 15}`. To set a desired fontsize use the GMT |
There was a problem hiding this comment.
I changed "width" to "length" to better match with the aliases length and width. For +w, we partly used "width" and "height".
Description of proposed changes
This PR aims to add an alias for the newly added -H flag of
colorbarof GMT 6.7.0. Currently it'sno_font_scaling. Feel free to make suggestion for a suitable alias.TODO
no_font_scalingdefaultFalselengthandwidthof the colorbarRelated: #4243
Preview: https://pygmt-dev--4783.org.readthedocs.build/en/4783/api/generated/pygmt.Figure.colorbar.html
Example
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