Draw a grid of combo charts (each with a line and bars)
Project description
combogrid
combogrid makes it easier to draw combo charts in a grid, using matplotlib
Combo charts are useful for comparing two different 'y' variables. Grids of charts (aka 'facet grids') are useful for comparing data between groups.
Perhaps you want to see how a single stock's price and volume changed day by day. And you are following multiple stocks, so you want one chart per stock.
Requirements
- python 3.71 or above
- pandas
Install
pip install combogrid
Help
import combogrid
help(combogrid.plot)
Use
import pandas as pd
import combogrid
df = pd.read_csv("sample.csv")
df["date"] = pd.to_datetime(df["date"])
plt = combogrid.plot(df, "date", "volume", "price", "color")
plt.show()
Output
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
combogrid-0.1.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for combogrid-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108559eddfca02d6a2009fe4f19c2b7323560d03b7e6eb341b1cd931c6c183dd |
|
MD5 | 890864332ab1c9b783b3c7775f87a8c3 |
|
BLAKE2b-256 | 779039bedc7466bba8e8cb7d2d94d1d5fedc024cf84d909b4423820b1c5c46ce |