Contents

joypy 0.2.6

0

Joyplots in python

Joyplots in python

Stars: 559, Watchers: 559, Forks: 59, Open Issues: 18

The leotac/joypy repo was created 7 years ago and the last code push was 6 months ago.
The project is popular with 559 github stars!

How to Install joypy

You can install joypy using pip

pip install joypy

or add it to a project with poetry

poetry add joypy

Package Details

Author
Leonardo Taccari
License
MIT
Homepage
http://github.com/leotac/joypy
PyPi:
https://pypi.org/project/joypy/
GitHub Repo:
https://github.com/leotac/joypy

Classifiers

  • Scientific/Engineering/Visualization
No  joypy  pypi packages just yet.

Errors

A list of common joypy errors.

Code Examples

Here are some joypy code examples and snippets.

GitHub Issues

The joypy package has 18 open issues on GitHub

  • fix error in call to plot_density

See more issues on GitHub

Related Packages & Articles

matplotlib-venn 1.1.1

Functions for plotting area-proportional two- and three-way Venn diagrams in matplotlib.

bqplot 0.12.43

Interactive plotting for the Jupyter notebook, using d3.js and ipywidgets.

Plot 3 different Pandas Dataframes in the same chart

import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
#using numpy's randint to generate some data
df1 = pd.DataFrame(np.random.randint(0,100,size=(10, 2)), columns=list('XY'))
df2 = pd.DataFrame(np.random.randint(0,100,size=(10, 2)), columns=list('XY'))
df3 = pd.DataFrame(np.random.randint(0,100,size=(10, 2)), columns=list('XY'))
df1.head(), df2.head(), df3.head()
(    X   Y
 0  82  32
 1  79  13
 2  87  19
 3   6  73
 4   1  38,
     X   Y
 0  47  62
 1  41   0
 2  98  78
 3  63  83
 4  31  59,
     X   Y
 0  57  25
 1  49  27
 2   9  29
 3  93  75
 4  23  80)
# Get handle of first figure to pass to other plot() calls as ax
ax =  df1.plot(color="red", figsize=(10,5))
df2.plot(ax=ax, color="orange", figsize=(10,5))
df3.plot(ax=ax, color="green", figsize=(10,5))

# Note: subsequent plots need to happen in the same notebook cell.
<AxesSubplot:>

/code/multiple-dataframes-plot-same-chart/pandas.plot()-multiple-dataframes.png

Use pandas and matplotlib to produce a chart of natural gas prices

In this example Python code, we use requests to fetch data from the EIA.gov website and json from the Python standard library to parse the json data. Next, we load the daily prices into a Pandas DataFrame and format the date column and set it as the index. Finally, we use Pandas .plot() to create a chart saving it as a png image.

hypertools 0.8.0

A python package for visualizing and manipulating high-dimensional data