Plottify
Project description
plottify
The plottify package is makes matplotlib plots more legible. It's a thin wrapper around matplotlib that automatically adjusts font sizes, scatter point sizes, line widths, etc. according to the figure size.
Installation
pip install plottify
Usage
The plottify interface is extremely simple and relies on one central function, autosize()
. After you've created a plot, simply call autosize()
and the sizes will be adjusted:
from plottify import autosize
import matplotlib.pyplot as plt
plt.scatter(x, y)
autosize()
plt.show()
If you have a matplotlib figure object, you can pass it as an argument to autosize
:
autosize(fig)
Demonstration
By default, matplotlib sets the sizes of these objects to pre-specified values, regardless of the figure size. This can result in tiny fonts or sizes for larger figures.
Plottify's autosize
function adjusts these sizes automatically to make them more legible. When we change the figure size, plottify automatically adjusts the objects' sizes.
Bugs and feature requests
Please report any bugs or feature requests as a GitHub issue.
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
File details
Details for the file plottify-1.1.tar.gz
.
File metadata
- Download URL: plottify-1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cdfca749bfbbe4876a626a654f9ef63b20cc17b22e916b00a373aea03d4b8e6 |
|
MD5 | fd633d6c17bbc6d818a95dbf786c00a5 |
|
BLAKE2b-256 | 2af6a53f1f875c928180b73a6a491b0c661241e15a678661ab505e915c13ec77 |