Skip to content

Commit 79d1a61

Browse files
Merge pull request #93 from bobmyhill/label_format
Improve TAS label format
2 parents 8459a55 + 6305016 commit 79d1a61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyrolite/util/classification.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def __init__(self, which_model=None, **kwargs):
383383

384384
with open(src, "r") as f:
385385
config = json.load(f)
386-
kw = dict(scale=100.0, xlim=[35, 85], ylim=[0, 20])
386+
kw = dict(scale=100.0, xlim=[30, 90], ylim=[0, 20])
387387
kw.update(kwargs)
388388
poly_config = {**config, **kw}
389389
super().__init__(**poly_config)
@@ -455,10 +455,11 @@ def add_to_axes(
455455
xy=(x, y),
456456
ha="center",
457457
va="center",
458+
fontsize=kwargs.get("fontsize", 8),
458459
**subkwargs(kwargs, ax.annotate),
459460
)
460461

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

464465

0 commit comments

Comments
 (0)