-
Notifications
You must be signed in to change notification settings - Fork 228
DOC: Add gallery example to show text formatting #3987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
There are various options to format text added to a plot as well as the title of the | ||
plot and labels of colorbars, Cartesian axes, and legend entries, including, | ||
superscripts, subscripts, underlining and small caps (for an overview see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
superscripts, subscripts, underlining and small caps (for an overview see | |
superscripts, subscripts, underlining, and small caps (for an overview, see |
Maybe also use formatted text for the plot label and title? |
Text formatting | ||
=============== | ||
|
||
There are various options to format text added to a plot as well as the title of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rephrase it to something like:
There are various options to format text strings added to a plot, e.g.,
text added viaFigure.text
, title of a plot, labels of colorbars,
Cartesian axes, and legend entries,
Description of proposed changes
Gallery example related to #3976 for formatting text.
Fixes #3976 (comment)
Preview: https://pygmt-dev--3987.org.readthedocs.build/en/3987/gallery/embellishments/text_formatting.html
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.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