GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add Figure.paragraph to typeset one or multiple paragraph of text strings by seisman · Pull Request #3709 · GenericMappingTools/pygmt Conversation
|
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)DetailsAdded images
Modified images
Report last updated at commit 23dad7b |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e3f3640 to
618522a
Compare
a3a742d to
425e1b6
Compare
5707c88 to
10795da
Compare
10795da to
1732fda
Compare
1732fda to
8e31570
Compare
23dad7b to
961785d
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Adds a new high-level Figure.paragraph method to typeset one or multiple paragraphs by wrapping GMT text module paragraph mode (-M), plus associated tests, baselines, and documentation wiring.
Changes:
pygmt.Figure.paragraph (new pygmt/src/paragraph.py) using a virtualfile multi-segment input and text -M.text docs.Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
pygmt/src/paragraph.py |
New Figure.paragraph implementation (builds text -M input via StringIO + virtual file). |
pygmt/src/__init__.py |
Exports paragraph so it can be attached to Figure. |
pygmt/figure.py |
Adds paragraph to the methods imported onto Figure. |
pygmt/src/text.py |
Adds a doc cross-reference from text to Figure.paragraph. |
doc/api/index.rst |
Adds Figure.paragraph to the API listing. |
pygmt/tests/test_paragraph.py |
Adds image tests covering single paragraph and two multi-paragraph input styles. |
pygmt/tests/baseline/*.png.dvc |
Adds DVC pointers for new image baselines. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
As this is probaly the first implemention of this new method, clearance (and other parameters) will be add in a later PR, or?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, this PR focuses on the required and frequently used parameters only. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
On side questions: Using text in line 1 \n text in line 2 to get a new line is still not supported. As far as I understand it, two paragraphs are automatically seperated by a blank line via \n\n.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| pen | ||
| Set the pen used to draw a rectangle around the paragraph [Default is | ||
| ``"0.25p,black,solid"``]. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In case of multiple paragraphs, the entier text is surrounded by a box, or does each paragraph gets its own box?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
the entier text is surrounded by a box
This is the answer.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Do you mean in
Yes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
e77be5e5
Deployed
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.