WIP: DOC: Add a gallery example to show formating long text as paragraphs #4592
WIP: DOC: Add a gallery example to show formating long text as paragraphs #4592yvonnefroehlich wants to merge 21 commits into
Conversation
I think it makes more sense to have a separate example.
I feel these are technical details that users don't have to know, especially for PyGMT users who are not familiar with GMT CLI syntax. |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
|
Maybe we can try to recreate the GMT example/test at https://github.com/GenericMappingTools/gmt/blob/master/test/pstext/shade_text.sh.
|
Looks like a nice example, but I think it would be good to use a text that consists of at least two paragraphs. |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
…gallery-paragraph
| # S="8p/-8p/darkblue", # not supported yet | ||
| # C="8p+tc", # not supported yet |
There was a problem hiding this comment.
Before continuing with this example in PyGMT we need to introduce the parameters for -S and -C.
There was a problem hiding this comment.
I think we don't have to reproduce the example exactly, so -S and -C are not needed.
There was a problem hiding this comment.
Agree, we can still extend the gallery example later to include this parameters if we feel this makes sense.

Description of proposed changes
This PR aims to add a gallery example to show the usage of the newly added high-level method
Figure.paragraph.Currently this is a standalone example. I am a bit wondering if it can make sense to add this to the already existing gallery example Formatting text because
Figure.paragraphis related to -M ofFigure.text.Please note the upstream bug reported in #4590. I will write a related GMT code example and issue hopefully this night or tomorrow - Edit Upstream bug report at GenericMappingTools/gmt#8989 - Edit 2026/04/22 PR with a fix in the GMT codes was merged.
See PR #4605.
Preview: https://pygmt-dev--4592.org.readthedocs.build/en/4592/gallery/embellishments/paragraph.html
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