Skip to content

Commit

Permalink
v0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Jul 7, 2024
1 parent c0d6998 commit 0911c3d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repos:
- id: codespell
stages: [commit, commit-msg]
exclude_types: [csv, svg, html, yaml, jupyter]
args: [--ignore-words-list, "hist,mape", --check-filenames]
args: [--ignore-words-list, "hist,mape,te,nd", --check-filenames]

- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

#### [v0.9.2](https://github.com/janosh/pymatviz/compare/v0.9.1...v0.9.2)

> 7 July 2024
- Fix `ptable_heatmap_plotly` for `log=True` [`#174`](https://github.com/janosh/pymatviz/pull/174)
- Fix missing keys `Te` + `Nd` in `ELEM_COLORS_VESTA` and support it in `plot_structure_2d` [`#173`](https://github.com/janosh/pymatviz/pull/173)
- Fix `log_density` in `density_scatter_plotly` [`#172`](https://github.com/janosh/pymatviz/pull/172)

#### [v0.9.1](https://github.com/janosh/pymatviz/compare/v0.9.0...v0.9.1)

> 4 July 2024
Expand Down
8 changes: 4 additions & 4 deletions pymatviz/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@
"In": (166, 117, 115),
"Sn": (102, 128, 128),
"Sb": (158, 99, 181),
"Te": (212, 122, 0), # codespell:ignore
"Te": (212, 122, 0),
"I": (148, 0, 148),
"Xe": (66, 158, 176),
"Cs": (87, 23, 143),
"Ba": (0, 201, 0),
"La": (112, 212, 255),
"Ce": (255, 255, 199),
"Pr": (217, 255, 199),
"Nd": (199, 255, 199), # codespell:ignore
"Nd": (199, 255, 199),
"Pm": (163, 255, 199),
"Sm": (143, 255, 199),
"Eu": (97, 255, 199),
Expand Down Expand Up @@ -212,7 +212,7 @@
"N": (176, 185, 230),
"Na": (249, 220, 60),
"Nb": (115, 194, 201),
"Nd": (199, 255, 199), # codespell:ignore
"Nd": (199, 255, 199),
"Ne": (254, 55, 181),
"Ni": (183, 187, 189),
"No": (189, 13, 135),
Expand Down Expand Up @@ -247,7 +247,7 @@
"Ta": (77, 166, 255),
"Tb": (48, 255, 199),
"Tc": (59, 158, 158),
"Te": (212, 122, 0), # codespell:ignore
"Te": (212, 122, 0),
"Th": (0, 186, 255),
"Ti": (120, 202, 255),
"Tl": (166, 84, 77),
Expand Down
6 changes: 3 additions & 3 deletions pymatviz/ptable/ptable_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def ptable_heatmap(
show_scale: bool = True,
show_values: bool = True,
infty_color: str = "lightskyblue",
na_color: str = "white",
nan_color: str = "white",
heat_mode: Literal["value", "fraction", "percent"] = "value",
fmt: str | Callable[..., str] | None = None,
cbar_fmt: str | Callable[..., str] | None = None,
Expand Down Expand Up @@ -644,7 +644,7 @@ def ptable_heatmap(
Defaults to True.
infty_color: Color to use for elements with value infinity. Defaults to
"lightskyblue".
na_color: Color to use for elements with value NaN. Defaults to "white".
nan_color: Color to use for elements with value NaN. Defaults to "white".
heat_mode ("value" | "fraction" | "percent" | None): Whether to display heat
values as is, normalized as a fraction of the total, as percentages
or not at all (None). Defaults to "value".
Expand Down Expand Up @@ -773,7 +773,7 @@ def tick_fmt(val: float, _pos: int) -> str:
color = infty_color # not in denominator
label = r"$\infty$"
elif pd.isna(tile_value):
color = na_color # neither numerator nor denominator
color = nan_color # neither numerator nor denominator
label = r"$0\,/\,0$"
elif tile_value == 0:
color = zero_color
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pymatviz"
version = "0.9.1"
version = "0.9.2"
description = "A toolkit for visualizations in materials informatics"
authors = [{ name = "Janosh Riebesell", email = "[email protected]" }]
readme = "readme.md"
Expand Down

0 comments on commit 0911c3d

Please sign in to comment.