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.1.0.tar.gz (19.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.1.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parampl-0.1.0.tar.gz
  • Upload date:
  • Size: 19.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.1.0.tar.gz
Algorithm Hash digest
SHA256 1d3103c633fb7f5c638b78d40cbc86fa1c1fce9443f4d80d7c94e1e9649930a0
MD5 c4951f4c61b1195dc862b7bbc92439d9
BLAKE2b-256 6c6e3d5bd27753993fa94a9d706cb207deba0d3ac2902870d509f74f454846ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parampl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f0e6e02320f57c42a9e5304ca89739fcccb939ee03453aafc41f5833f4687b1
MD5 ba2676367995b75104eddeede3c2e8df
BLAKE2b-256 221791d3bf226f65aba4d24d8d5590daced338f51347295b4c2ba1950473b5a7

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