Skip to main content

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 Matplotlib Axes and returns and Axes that is formatted nicely.
    • First generate a Matplotlib Axes in any way you like, then pass it into convert2Econo()-- then presto you have an Econoplot!

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.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

econoplots-0.1.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file econoplots-0.1.1.tar.gz.

File metadata

  • Download URL: econoplots-0.1.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for econoplots-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d5e047c2eef710bd036a1540dde9f1c083a556820304c8444ed50af4e29e3f75
MD5 b2c751429b102bb5ce5cf2b2360eb67e
BLAKE2b-256 61360d74ea9d699c6ac8cf070fbf6b85df6c211908e6241d5bb2bb951f9d43c1

See more details on using hashes here.

File details

Details for the file econoplots-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: econoplots-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for econoplots-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cadee1625cf62cf96018198f2f092466d4986422af77a7af159800e672bc9887
MD5 aaf25d9f2069ed7003a4cb06a804f9e4
BLAKE2b-256 9511ea333e0b5477e651f0c50833dbdf974330ee3da584c9c9cbcb48a3c4ca94

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page