Formats Matplotlib plots into the style of The Economist
Project description
Description
This project helps create Matplotlib plots in the style of The Economist. Only some plot styles are supported (line plots are the only style that works right now) and there are some stylistic differences from The Economist for the sake of convenience/laziness.
Users Guide
- Install fonts (see below) before using any functions.
- The main function you will use is
converter.convert2Econo()
, which takes a MatplotlibAxes
and returns andAxes
that is formatted nicely.- First generate a Matplotlib
Axes
in any way you like, then pass it intoconvert2Econo()
-- then presto you have an Econoplot!
- First generate a Matplotlib
How to install fonts
- Copy .ttf file here: "~\.local\share\fonts"
- Delete the matplotlib cache here (it will automatically be recreated): "~\.cache\matplotlib"
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
econoplots-0.1.2.tar.gz
(11.9 kB
view details)
Built Distribution
File details
Details for the file econoplots-0.1.2.tar.gz
.
File metadata
- Download URL: econoplots-0.1.2.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 385c06da937bfe49bf32347eee1565ddb5214e9f586c2e1e5c23966adf2a283c |
|
MD5 | 8469ec3bfcde7113caff0a85f18a1382 |
|
BLAKE2b-256 | cf260208199a2adf0c41a70c8e31dca4b2cf7da1a2aa79cc45272b00e8b2f0e4 |
File details
Details for the file econoplots-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: econoplots-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 530d78f7294cab40fedeab6939cd3d27e2c70ce42733e371bd981236dc4ccb9f |
|
MD5 | 2ee9b29409afe9427e28dc1847aa80e5 |
|
BLAKE2b-256 | 3d7aac9a9617f0a74cd99a1c6971bd209dd2cd32a92c970da668517b75d1f655 |