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
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 regmonkey_style-1.3.0.tar.gz.
File metadata
- Download URL: regmonkey_style-1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50c2c346e59ea57ac829457aff5bbacb0b0a3fb54698dd19b7974f2438da36e9
|
|
| MD5 |
6c19a16df6c0344f2ffdcff5698e13c7
|
|
| BLAKE2b-256 |
85e8de094a8856cf48ffb787bd0ddc44bc3b04b3c7c0499b7542c6f6356a661f
|
File details
Details for the file regmonkey_style-1.3.0-py3-none-any.whl.
File metadata
- Download URL: regmonkey_style-1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9958ab6cc10d379c253c4447968c2f525a5dbb495915c71ddb5e6e8f94de5a00
|
|
| MD5 |
f40ca8c499ada25b30f34634b04ede34
|
|
| BLAKE2b-256 |
49372de538c5b62574baf9abc53f13f0dc4db0f7db5cdd5f1b030cea45735cb9
|