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.0.7.tar.gz (18.1 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.0.7-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parampl-0.0.7.tar.gz
  • Upload date:
  • Size: 18.1 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.0.7.tar.gz
Algorithm Hash digest
SHA256 54911a11e4c3a1a3f1fcf64ccabb3edc0ed0a35866cb601c701d7577d4a4a7ee
MD5 eff0ba49ae2993605cdff69a75ef3b16
BLAKE2b-256 390be2ae89983948c0b2a33180695e90848fdb855e7e7d55d84986152b3dd040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parampl-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 18.8 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.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2081a2d5a2b71eb12cf16101f6ea4a8bb6ef82d7201c7e49512f9792a83bcefc
MD5 037dc6224fd7306796d8f365eaa524f0
BLAKE2b-256 ed658162d12748a7a0b5a3977358df5dd6ade64c816285251caabab4a0dc3433

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