Skip to content

Commit

Permalink
Merge pull request #93 from bobmyhill/label_format
Browse files Browse the repository at this point in the history
Improve TAS label format
  • Loading branch information
morganjwilliams committed Oct 13, 2023
2 parents 8459a55 + 6305016 commit 79d1a61
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 79d1a61

Please sign in to comment.