Skip to main content

A custom Matplotlib theme using the Poppins font styled like ggplot.

Project description

Matplotlib Poppins Theme (Inspired by ggplot)

This package provides a custom theme for Matplotlib, inspired by the visual style of ggplot, using the Poppins font for a clean and modern look.

Features

  • Custom Matplotlib theme with the Poppins font.
  • Configurable options for title size, label size, boldness, and grid display.
  • Inspired by ggplot2's elegant styling.

Installation

You can install this package via pip:

pip install matplotlib-poppins-theme

Usage

import matplotlib_poppins_theme

# Apply the custom Poppins theme
matplotlib_poppins_theme.set_poppins_theme()

# Now create your plots
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [10, 15, 13, 17, 18]
plt.plot(x, y)
plt.title("Sample Poppins Plot")
plt.show()

Customization Options

You can customize the theme by passing different options to set_poppins_theme():

# Apply the Poppins theme with custom options
matplotlib_poppins_theme.set_poppins_theme(
    title_size=18,        # Custom title size
    label_size=14,        # Custom label size
    bold_title=True,      # Bold titles
    bold_labels=False,    # Non-bold axis labels
    show_grid=True        # Show grid lines
)

Parameters:

  • title_size: Sets the font size for the plot title (default is 14).
  • label_size: Sets the font size for the axis labels (default is 12).
  • bold_title: Boolean to specify if the title should be bold (default is True).
  • bold_labels: Boolean to specify if the axis labels should be bold (default is True).
  • show_grid: Boolean to specify if the grid should be shown (default is False).

Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

finres_ggpt2_matplotlib-0.1.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

finres_ggpt2_matplotlib-0.1.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for finres_ggpt2_matplotlib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0cc374b5700b64288f1558af90c58b28d32b7954ded3dcb3870b942eac164ac5
MD5 a76a27b1e95c3b1457f9c10c9db882ba
BLAKE2b-256 6fcefc29f4187a84ea12599ff1310a809b4de9b27ad13e86bc5171878e839813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finres_ggpt2_matplotlib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea138631f619a93b2fe4cb89748ea54667e485a378c9c3f535f8a21e169fec8a
MD5 30e91468120141b905a32bd59b062689
BLAKE2b-256 74aaf7ca1e72dffc287f1dcb5493d2aa5870c5ddfbb3210b16be16788b8423d9

See more details on using hashes here.

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