PlotBB
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")
PlotBB.plot(x, y, fill="orange", bg="light_blue")
PlotBB.plot(x, y, fill="orange", bg="none")
Usage
[!NOTE] All functions like
subplots()andPlotBB.plot()are wrappers for their Matplotlib respective underlying function and all*argsand**kwargsare 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 NOTmatplotlib.pyplot.subplots(). Also ensure the correctAxesis 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4716fc5ae99d07c49c98e4c9af4e35251905d0fa82440eb9126a894a74bb876
|
|
| MD5 |
209c6b557243b0ab7ce3fbaf790d97d3
|
|
| BLAKE2b-256 |
12f8ea30ae6693aba4b4d5cb0a3b22a8c0816428e68bf79698a26298ec79a1e6
|
Provenance
The following attestation bundles were made for plotbb-0.9.2.tar.gz:
Publisher:
python-publish.yml on adawiiii/plotbb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plotbb-0.9.2.tar.gz -
Subject digest:
b4716fc5ae99d07c49c98e4c9af4e35251905d0fa82440eb9126a894a74bb876 - Sigstore transparency entry: 2412809234
- Sigstore integration time:
-
Permalink:
adawiiii/plotbb@0828314c337c5a9f2c30068e03debe7aa17e5123 -
Branch / Tag:
refs/tags/0.9.2 - Owner: https://github.com/adawiiii
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0828314c337c5a9f2c30068e03debe7aa17e5123 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a74d2d670008db2b4bb76009ab0c8139a4d4085b9dea82b07e694acf2378853e
|
|
| MD5 |
6d457abb488dcf63dc6d6d4cf9974072
|
|
| BLAKE2b-256 |
c09ec2105a0ff701d853b594fffb668c7328479c26726fae32938c7d9ad99918
|
Provenance
The following attestation bundles were made for plotbb-0.9.2-py3-none-any.whl:
Publisher:
python-publish.yml on adawiiii/plotbb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plotbb-0.9.2-py3-none-any.whl -
Subject digest:
a74d2d670008db2b4bb76009ab0c8139a4d4085b9dea82b07e694acf2378853e - Sigstore transparency entry: 2412809365
- Sigstore integration time:
-
Permalink:
adawiiii/plotbb@0828314c337c5a9f2c30068e03debe7aa17e5123 -
Branch / Tag:
refs/tags/0.9.2 - Owner: https://github.com/adawiiii
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0828314c337c5a9f2c30068e03debe7aa17e5123 -
Trigger Event:
push
-
Statement type: