Skip to content

Conversation

seisman
Copy link
Member

@seisman seisman commented Dec 24, 2024

Preview: https://pygmt-dev--3709.org.readthedocs.build/en/3709/api/generated/pygmt.Figure.paragraph.html

Example

import pygmt

fig = pygmt.Figure()
fig.basemap(region=[0, 10, 0, 10], projection="X10c/10c", frame=True)
fig.paragraph(
    x=4,
    y=4,
    text="This is a long paragraph. " * 10,
    parwidth="5c",
    linespacing="12p",
    font="12p",
)
fig.show()

map

@seisman seisman force-pushed the feature/paragraph branch from bbb0de1 to 43d49fb Compare January 6, 2025 04:17
@seisman seisman added the feature Brand new feature label Jan 6, 2025
@seisman seisman force-pushed the feature/paragraph branch from 43d49fb to a617468 Compare January 6, 2025 04:42
Copy link
Contributor

github-actions bot commented Jan 6, 2025

Summary of changed images

This is an auto-generated report of images that have changed on the DVC remote

Status Path
added pygmt/tests/baseline/test_paragraph.png
added pygmt/tests/baseline/test_paragraph_multiple_paragraphs_blankline.png
added pygmt/tests/baseline/test_paragraph_multiple_paragraphs_list.png

Image diff(s)

Added images

  • test_paragraph.png

  • test_paragraph_multiple_paragraphs_blankline.png

  • test_paragraph_multiple_paragraphs_list.png

Modified images

Path Old New

Report last updated at commit 618522a

@seisman seisman force-pushed the feature/paragraph branch 2 times, most recently from e3f3640 to 618522a Compare January 6, 2025 06:12
@seisman seisman force-pushed the feature/paragraph branch 2 times, most recently from a3a742d to 425e1b6 Compare May 2, 2025 12:23
@seisman seisman force-pushed the feature/paragraph branch from 5707c88 to 10795da Compare July 30, 2025 06:50
@seisman seisman added this to the 0.18.0 milestone Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Brand new feature
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant