Skip to main content

plotly and matplotlib style for statistics-for-regression-monkey

Project description

Sure, here's a README for the regmonkey_style package:

regmonkey_style

regmonkey_style is a Python package designed to simplify the customization of Plotly visualizations. It provides functions to set default fonts, show available fonts and templates, set custom fonts and templates, and ensure equal scaling for x and y axes in Plotly figures.

Installation

To install the package, use pip:

pip install git+https://github.com/ryonakagami/regmonkey_style.git

Usage

Importing the Package

from regmonkey_style import set_default, show_available_fonts, show_available_templates, set_font, set_templates, equal_xy_scale, restore_default

Functions

set_default()

Sets the default font style for Plotly visualizations.

set_default()

show_available_fonts()

Returns a list of available fonts.

fonts = show_available_fonts()
print(fonts)

show_available_templates()

Returns a list of available templates.

templates = show_available_templates()
print(templates)

set_font(font)

Sets a custom font for Plotly visualizations. Raises a [ValueError] if the font is not in the available list.

try:
    set_font('CustomFont')
except ValueError as e:
    print(e)

set_templates(template)

Sets a custom template for Plotly visualizations. Raises a [ValueError] if the template is not in the available list.

try:
    set_templates('CustomTemplate')
except ValueError as e:
    print(e)

equal_xy_scale(figure_object)

Ensures that the x and y axes of a Plotly figure have equal scaling.

import plotly.graph_objects as go

fig = go.Figure()
# Add data to the figure
fig = equal_xy_scale(fig)
fig.show()

restore_default()

Restores the default Plotly template.

restore_default()

License

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

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Contact

For any questions or issues, please contact the maintainer at Ryo Nakagami.

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

regmonkey_style-1.6.0.tar.gz (5.2 MB view details)

Uploaded Source

Built Distribution

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

regmonkey_style-1.6.0-py3-none-any.whl (5.2 MB view details)

Uploaded Python 3

File details

Details for the file regmonkey_style-1.6.0.tar.gz.

File metadata

  • Download URL: regmonkey_style-1.6.0.tar.gz
  • Upload date:
  • Size: 5.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-45-generic

File hashes

Hashes for regmonkey_style-1.6.0.tar.gz
Algorithm Hash digest
SHA256 d9140dc145d9e01402390a3d45927a42f053367c42e2aa04fa600c4d0a625e8f
MD5 07b2ad61d4815c4a84836b562815e736
BLAKE2b-256 0d685f0f1bacda9356358444611aacb469cb5bbe2cbacfa651fb7679433fc401

See more details on using hashes here.

File details

Details for the file regmonkey_style-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: regmonkey_style-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-45-generic

File hashes

Hashes for regmonkey_style-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb213f92bfdae0cd8c7d38f7781eedfcca9eeb428a6e70948d5735d42a307311
MD5 e3c8e3c8e27dc76444c3a76fc8e559e7
BLAKE2b-256 06c6c70a497c3cc950560dab62e6d4e8d470d0450b53ee3be51c6d30b5e57e6f

See more details on using hashes here.

Supported by

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