aboutsummaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-03-27 14:13:09 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-03-27 14:13:09 -0600
commit440484977f8123a291c674379823e8e149d6bbfe (patch)
tree4f2c4ce6f6214b3e89545e1d5e4241dea0bec6b3 /api.py
parentba389648d2afaf4dc3aa827a9237fa1f5071c1c2 (diff)
axist labels
Diffstat (limited to 'api.py')
-rw-r--r--api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/api.py b/api.py
index e87f412..8aa326a 100644
--- a/api.py
+++ b/api.py
@@ -151,9 +151,9 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df,
with mpl.rc_context({"font.family": arial_font.get_name(), "font.size": 9}):
ax.legend(handles, labels, loc='best')
- # set axis labels to Arial:
- ax.set_xlabel(x_label, fontproperties=arial_font)
- ax.set_ylabel(y_label, fontproperties=arial_font)
+ # set axis tick labels to Arial:
+ for label in (ax.get_xticklabels() + ax.get_yticklabels()):
+ label.set_fontproperties(arial_font)
return fig