Skip to main content

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.

Metadata

Release files for regmonkey_style 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for regmonkey_style 2.0.0
File Size Uploaded Provenance
regmonkey_style-2.0.0.tar.gz 5.2 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for regmonkey_style 2.0.0
File Interpreter ABI Platform
regmonkey_style-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 MB

Release files / regmonkey_style-2.0.0.tar.gz

Download URL regmonkey_style-2.0.0.tar.gz
Size 5.2 MB
Tags Source
SHA-256 checksum
How to use checksums
5e645bba725d87de50c8460acbe2e341f34041b61cd65437d737430adbbd8441
BLAKE2b-256 checksum
How to use checksums
b3a1b6520da458598ea64049cb88aa5d0bf49447f9ea83fd084bf95c96a46165
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.12 Linux/6.8.0-64-generic

Release files / regmonkey_style-2.0.0-py3-none-any.whl

Download URL regmonkey_style-2.0.0-py3-none-any.whl
Size 5.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b29f0f749e00bba144926e53d333be4c5bec355b170722bf710c2265820ae5f2
BLAKE2b-256 checksum
How to use checksums
586494ad1a42f1220c155a6644ad2690b18d8fbb4b385ee988a9dd0d38488d8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.12 Linux/6.8.0-64-generic

Security for regmonkey_style 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page