Skip to main content

Formatting paragraphs for matplotlib text

Project description

parampl

Write formatted paragraphs in matplotlib

from parampl import ParaMPL
from lorem_text import lorem

f, ax = plt.subplots()
parampl = ParaMPL(ax, spacing=0.3, fontsize=9)

parampl.write(lorem.paragraph(), (0.05, 0.95),
              avoid_left_of =[(0.2, (0.3, 0.5)),
                              (0.3, (0.4, 0.7))],
              avoid_right_of = (0.8, (0.3, 0.7),
              width=0.7, justify='full',
             )

Sample with 'full' justification and avoid areas (Full example code in quickstart.py)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parampl-0.2.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parampl-0.2.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file parampl-0.2.3.tar.gz.

File metadata

  • Download URL: parampl-0.2.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.13 Windows/10

File hashes

Hashes for parampl-0.2.3.tar.gz
Algorithm Hash digest
SHA256 86b3f984e11cbb7acb872ba826cda46e0839889dcb4beb10b8b708effb476cb8
MD5 03dca4a2211fe49eeff3024473f158a6
BLAKE2b-256 d69cfb0f6f0a89fe01a3ae35d0962e212f4072c445d72ccdae82c3c84b047ab8

See more details on using hashes here.

File details

Details for the file parampl-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: parampl-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.13 Windows/10

File hashes

Hashes for parampl-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 43b41266c9e10691e3aa096afe3a2d67c8082a250553df55c87079ad3a7edaec
MD5 434d9566218a43b87a2dbf22a8b0ecf8
BLAKE2b-256 04ef5650149d78543265e67c3d1f3e8e2d607bf5c835d312fe67861b6481ca45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page