Skip to content

Commit

Permalink
improve label format
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmyhill committed Sep 20, 2023
1 parent ac7cd52 commit 6305016
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyrolite/util/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def __init__(self, which_model=None, **kwargs):

with open(src, "r") as f:
config = json.load(f)
kw = dict(scale=100.0, xlim=[35, 85], ylim=[0, 20])
kw = dict(scale=100.0, xlim=[30, 90], ylim=[0, 20])
kw.update(kwargs)
poly_config = {**config, **kw}
super().__init__(**poly_config)
Expand Down Expand Up @@ -455,10 +455,11 @@ def add_to_axes(
xy=(x, y),
ha="center",
va="center",
fontsize=kwargs.get("fontsize", 8),
**subkwargs(kwargs, ax.annotate),
)

ax.set(xlabel="$SiO_2$", ylabel="$Na_2O + K_2O$")
ax.set(xlabel="SiO$_2$", ylabel="Na$_2$O + K$_2$O")
return ax


Expand Down

0 comments on commit 6305016

Please sign in to comment.