Skip to main content

PlotBB

Latest Release 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()

Saving figures

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"])

chart.figure.savefig("chart.png")

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.3.tar.gz (6.2 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.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plotbb-0.9.3.tar.gz
  • Upload date:
  • Size: 6.2 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.3.tar.gz
Algorithm Hash digest
SHA256 fe5b21622a8f3ab7160f36af88bbd830dcb34b2b3c960042617b9bc5b7e89505
MD5 6d6c28322e38e7292fb729b4bb62ed48
BLAKE2b-256 65aee7b82317d30584fef1c9e9fa047b844d4a599130a33c9c03fa340d3ffe75

See more details on using hashes here.

Provenance

The following attestation bundles were made for plotbb-0.9.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: plotbb-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a15d04b8570639b603efd2593d804d2801d43207f6bd0db96a47ecc5ee961e1
MD5 050a13eaf8b843412cf4484b0a1aa0e1
BLAKE2b-256 fb7b93928fcc0f96df14a0ebcf7c073474252d24e4e236d959c932c0dccfe3f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for plotbb-0.9.3-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