Skip to main content

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

Sample image with a grid of combo charts

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

combogrid-0.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

combogrid-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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