Skip to main content

PlotBB

Latest Release License PyPi

GitHub issues Contributing

A Python package to be used in conjunction with Matplotlib to emulate the look of the Bloomberg charts, because not all of us have $31,980 to spare.

Examples

PlotBB.plot(x, y, fill="blue", bg="light_blue")

blue_bg_blue_example


PlotBB.plot(x, y, fill="orange", bg="light_blue")

orange_bg_blue_example


PlotBB.plot(x, y, fill="orange", bg="none")

orange_bg_none_example

Usage

[!NOTE] All functions like subplots() and PlotBB.plot() are wrappers for their Matplotlib respective underlying function and all *args and **kwargs are passed. This allows users to modify any styling or behavior.

Single plot setup:

from plotbb import PlotBB
import matplotlib as plt
import pandas as pd

chart_data = pd.read_csv("time_series_data.csv")

chart = PlotBB()
chart.plot(chart_data["Date"], chart_data["Price"])

plt.show()

Multiplot setup with subplots():

from plotbb import PlotBB, subplots
import matplotlib as plt
import pandas as pd

chart_data = pd.read_csv("time_series_data.csv")

fig, axes = subplots(
    nrows=3,
    ncols=1,
    figsize=(12, 8),
    sharex=True
)

chart1 = PlotBB(axis=axes[0])
chart1.plot(chart_data["Date"], chart_data["Price"])

plt.show()

[!WARNING] Ensure plotbb.subplots() is used and NOT matplotlib.pyplot.subplots(). Also ensure the correct Axes is used. This allows PlotBB to style the Matplotlib correctly and draw on the correct subplot.

Different plot styles:

from plotbb import PlotBB, subplots
import matplotlib as plt
import pandas as pd

chart_data = pd.read_csv("time_series_data.csv")

fig, axes = subplots(
    nrows=3,
    ncols=1,
    figsize=(12, 8),
    sharex=True
)

chart1 = PlotBB(axis=axes[0])
chart1.plot(chart_data["Date"], chart_data["Price"], fill="orange", bg="none")

plt.show()

Contributing

Feel free to contribute by either giving more references of the Terminal charts (as I don't have access to the actual terminal and am limited to photos from Google), submitting issues on the repository's page, or forking and creating pull requests. Any help is appreciated!

Disclaimers

This service has been developed independently from and is not endorsed by the Bloomberg L.P. "Bloomberg" and "Bloomberg Terminal" are trademarks and service marks of Bloomberg Finance L.P., a Delaware limited partnership, or its subsidiaries.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plotbb-0.9.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

plotbb-0.9.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file plotbb-0.9.2.tar.gz.

File metadata

  • Download URL: plotbb-0.9.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for plotbb-0.9.2.tar.gz
Algorithm Hash digest
SHA256 b4716fc5ae99d07c49c98e4c9af4e35251905d0fa82440eb9126a894a74bb876
MD5 209c6b557243b0ab7ce3fbaf790d97d3
BLAKE2b-256 12f8ea30ae6693aba4b4d5cb0a3b22a8c0816428e68bf79698a26298ec79a1e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for plotbb-0.9.2.tar.gz:

Publisher: python-publish.yml on adawiiii/plotbb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file plotbb-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: plotbb-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for plotbb-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a74d2d670008db2b4bb76009ab0c8139a4d4085b9dea82b07e694acf2378853e
MD5 6d457abb488dcf63dc6d6d4cf9974072
BLAKE2b-256 c09ec2105a0ff701d853b594fffb668c7328479c26726fae32938c7d9ad99918

See more details on using hashes here.

Provenance

The following attestation bundles were made for plotbb-0.9.2-py3-none-any.whl:

Publisher: python-publish.yml on adawiiii/plotbb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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