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.0.tar.gz (19.2 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.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parampl-0.2.0.tar.gz
  • Upload date:
  • Size: 19.2 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.0.tar.gz
Algorithm Hash digest
SHA256 de44da329471a9e9424d6ba907b79cb621ce0f3dd5fb696c562f042b3f33ac3d
MD5 b615a401f12c0c7dfb75f141fee2214c
BLAKE2b-256 6333b97ec7f9b8ed107f9a90804c32cea40d40f9ef2583dcaf3ecb059a392bc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parampl-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9b75abb659f22073e3b4c6405ba74666a7d9e29ba301e3550178e73f1e4736a
MD5 5f92b2a93fe5b15d19a895fb610dc096
BLAKE2b-256 ad9c9b3b519c5b803dcbe174e54be2f9c1d7151634579ee3f7dea52172b90e3a

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