Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ptable_heatmap_plotly() colorscale kwarg #35

Merged
merged 4 commits into from
Apr 6, 2022

Conversation

janosh
Copy link
Owner

@janosh janosh commented Apr 6, 2022

colorscale now supports builtin Plotly color scales and list of color strings. Plus more tests for all valid input types of colorscale: str | Sequence[str] | Sequence[tuple[float, str]] | None.

Also sets more sensible defaults for color scale, font size, figure size and differentiates element symbols (now bold and large) better from heat map values.

pre-commit-ci bot and others added 4 commits April 6, 2022 20:22
updates:
- [github.com/psf/black: 22.1.0 → 22.3.0](psf/black@22.1.0...22.3.0)
- [github.com/asottile/pyupgrade: v2.31.0 → v2.31.1](asottile/pyupgrade@v2.31.0...v2.31.1)
- [github.com/pre-commit/mirrors-mypy: v0.931 → v0.942](pre-commit/mirrors-mypy@v0.931...v0.942)
- [github.com/janosh/format-ipy-cells: v0.1.7 → v0.1.10](janosh/format-ipy-cells@v0.1.7...v0.1.10)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@janosh janosh merged commit 45419ad into main Apr 6, 2022
@janosh janosh deleted the plotly-ptable-heatmap-colorscale branch April 6, 2022 19:56
janosh added a commit that referenced this pull request Apr 6, 2022
* pre-commit set default_install_hook_types: [pre-commit, commit-msg]

* ptable_heatmap_plotly colorscale kwarg support builtin plotly color scales and list of color strings

* add test_ptable_heatmap_plotly_colorscale

* readme update ptable_heatmap_plotly() previews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant