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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file combogrid-0.1.0.tar.gz.

File metadata

  • Download URL: combogrid-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.3 Linux/5.8.0-50-generic

File hashes

Hashes for combogrid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e807ff1962094f2f798747f9941dd974966044e45c5f7567fb88c18f276f8ed1
MD5 4936dbf528e4b630bb834f32ef4ba5bd
BLAKE2b-256 e4f6cf8c1579fb0c59b144a41acbf640eddb48a1c79988ef43ad5e6286160a34

See more details on using hashes here.

File details

Details for the file combogrid-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: combogrid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.3 Linux/5.8.0-50-generic

File hashes

Hashes for combogrid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 108559eddfca02d6a2009fe4f19c2b7323560d03b7e6eb341b1cd931c6c183dd
MD5 890864332ab1c9b783b3c7775f87a8c3
BLAKE2b-256 779039bedc7466bba8e8cb7d2d94d1d5fedc024cf84d909b4423820b1c5c46ce

See more details on using hashes here.

Supported by

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