Skip to main content

A python plotting script containing Luke Olson's styling preferences

Project description

## PyFancyPlots
Does your advisor enjoy fancy plots? Is his name Luke? Then this plotting script is for you!

## Overview
Python plotting tool with default options to make plots easy to read. This
script uses matplotlib and Seaborn.

## Testimonials
"That plot looks great." -- Luke

## Plotting Examples
Import `plot.py' for default plotting parameters to be set. A few important
methods:
- The method add_anchored_legend will add a multicolumn legend above your
plot. Examples of this are in the plots below.
- The method save_plot will save your figure with settings preferred by Luke
- The methods stacked_barblot and partially_stacked_barplot create Seaborn
barplots by stacking your data (or some of it for you).

## Example Line Plot
Default and Luke-recommended settings are displayed in a simple line and scatter
plot below. Make sure to call add_luke_options() and save_plot(...) to add
these settings to your figures.
![](figures/line_plot.png)

## Standard and Stacked BarPlots
The standard and stacked bar plots (available in methods barplot(...) and
stacked_barplot(...)) take a typical list of x_data and either a
single list or list of lists for y_data. If y_data is a list of lists, a list
of corresponding labels is also required. Each list of y_data will be plotted
at all x_data positions, as shown below.
![](figures/barplot.png)
![](figures/stacked_barplot.png)

## Partially Stacked BarPlot
The previous standard and stacked barplots can also be combined with method
partially_stacked_barplot(...). This method takes x_data as usual, and then a
list of y_data. The list for y_data contains both y_data lists and lists of
lists. E.g. y_data = [y0, y1, [y2, y3], y4, [y5, y6]] will plot y0, y1, and y4
as normal barplots, while y3 will be stacked on top of y2, and y6 will also be
stacked on y5. Correpsonding labels should be in the same format as y_data.
![](figures/partially_stacked_barplot.png)




Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfancyplots-0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfancyplots-0.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pyfancyplots-0.1.tar.gz.

File metadata

  • Download URL: pyfancyplots-0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pyfancyplots-0.1.tar.gz
Algorithm Hash digest
SHA256 c2f2fb58f9408f1223e213358e0e5e9cf48de81f43343cc49c99b35578014bc0
MD5 6e7a8007cef4eab29f94951fd2928420
BLAKE2b-256 807bb2e44b66fc13040fa3551f05fa4639ca454322e3e1698080afb4d06d6ae8

See more details on using hashes here.

File details

Details for the file pyfancyplots-0.1-py3-none-any.whl.

File metadata

  • Download URL: pyfancyplots-0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pyfancyplots-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad6b74daa02fcf28aac6dfc3947d568e1bf9b5a2c9aa5783ce06b783b1c626e1
MD5 bec12f1f35fb560fc090058e2f5cde77
BLAKE2b-256 6823978463ff05762eebfe1f5d700008e113cd59bb65c24ff723f4abff798626

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