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.2.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.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parampl-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1af8a7491e41e316fb9da352cb5847ea99bc28131a27c990d067748b266b6c06
MD5 993722a1ce8f911ec95ef9a9647fa1c6
BLAKE2b-256 cdc914e00fd8659ea08a216ed312ac95c34bbc06967b0b60efb7a8372ed17816

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parampl-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d70d8144b98b11ace32661c36fc7f91dd5e0bc52691d9539fe98af5d1c8c1753
MD5 4a5acd270826bc45b500322364cd3547
BLAKE2b-256 38000c3004df364e68b8cd3861d3099141b8ebec0371b44b887e86ec95f72695

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