Skip to main content

A small package of custom matplotlib style sheets

Project description

Custom Matplotlib Stylesheets

This repository contains a collection of custom stylesheets for Matplotlib, a powerful visualization library in Python.

The stylesheets in this repository are designed to provide a consistent and professional look to your Matplotlib visualizations. Each stylesheet is optimized for a different use case, so you can choose the one that best fits your needs.

Stylesheets


Here are the stylesheets currently included in this repository:
  • powerbi.mplstyle: This style is optimized for use with Power BI visualizations, and contains colors related to Shell company colors.
  • powerbi_dark.mplstyle: This style is optimized for use with Power BI visualizations with a dark background, and also contains colors related to Shell company colors.

How to Use


To use either of these stylesheets, copy them into your working directory or a directory in your Matplotlib style path. You can then use the plt.style.use() function to apply the style to your plots.

For example, to use the powerbi.mplstyle stylesheet, you would use the following code:

import custom_mpl
import matplotlib.pyplot as plt

plt.style.use('custom_mpl.powerbi')

To use the powerbi_dark.mplstyle stylesheet, you would use the following code:

import custom_mpl
import matplotlib.pyplot as plt

plt.style.use('custom_mpl.powerbi_dark')

Contributing

Contributions to this repository are welcome. If you have a new style to add or an improvement to an existing style, please feel free to submit a pull request.

Please ensure that your style follows the same format as the existing stylesheets and that it has a descriptive name that accurately reflects its use case.

License

This repository is licensed under the MIT License.

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

custom_mpl-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

custom_mpl-0.0.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

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