Skip to main content

Simple data visualisation library that automatically styles matplotlib plots.

Project description

Diaplot

Diaplot provides a simple endpoint for generating visually appealing plots inspired by The Economist.

Features

  • Line plot
  • Bar chart

Planned features

  • Map visualisations
    • Chloropleth
    • Bubble maps
    • Arc maps
    • Drawing geometry over maps
  • Scatterplots
  • Legislative chamber visualisation

RPE in Chile

Installation

pip install diaplot

Quick Start

Line Chart

from diaplot import line_chart
import numpy as np

# Create chart
fig, ax = line_chart(
    x_data=years,
    y_data=values,
    title="Economic Growth Over Time",
    subtitle="Annual GDP growth rate, 1960-2020",
    source="Source: World Bank",
    color='#006BA2',  # Economist blue
    event_markers=[1970, 1973, 2008],  # Mark recession years
)

Bar Chart

from diaplot import bar_chart

categories = ['2018', '2019', '2020', '2021', '2022']
values = [45, 52, 48, 61, 55]

fig, ax = bar_chart(
    x=categories,
    y=values,
    title="Annual Revenue",
    subtitle="Revenue in millions, 2018-2022",
    source="Source: Company Reports",
    color='#DB0A05',  # Economist red
    reference_lines=[50],  # Add target line
)

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

diaplot-0.1.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

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

diaplot-0.1.0-py3-none-any.whl (4.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: diaplot-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for diaplot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b2b7ec591bdbe00ed312cebd2bbd6afee9585825dc1d3d755b0c9f4935eb57d7
MD5 a59fd2152f97159cae316b2fbdc4c2ea
BLAKE2b-256 c68c0d9769bcc3074c4129a8c20bef0fc2ecda6de1d4779d735373f6f4ed554f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: diaplot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for diaplot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac46ee5719e27c9468f428e85385a0b1b0a6aeecfb5bdd0439b21eb06ca5a5b5
MD5 6f1138be17cc8798d887883a1cb31152
BLAKE2b-256 dc4b34eb910cf6779da7329944debd6c7f5b73399385f5696b22e99b5c92b672

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