Skip to content

Commit

Permalink
Better plot labels
Browse files Browse the repository at this point in the history
  • Loading branch information
vatai committed May 5, 2024
1 parent 5cd7a86 commit 9725508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/semiclassical_micelles.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def main(
plt.savefig(path, dpi=300, bbox_inches="tight")
plt.close()

xlabel = "$B_0$ / mT"
ylabel = "Time / $\mu s$"
zlabel = "$\Delta \Delta A$"
xlabel = r"$B_0$ / mT"
ylabel = r"Time / $\mu s$"
zlabel = r"$\Delta \Delta A$"
plot_3d_results(
xdata=Bs,
ydata=ts,
Expand Down
2 changes: 1 addition & 1 deletion radicalpy/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def plot_bhalf_time(ts, bhalf_time, fit_error_time, style="ro", factor=1e6):
color="k",
linewidth=2,
)
plt.xlabel("Time / $\mu s$", size=24)
plt.xlabel(r"Time / $\mu s$", size=24)
plt.ylabel("$B_{1/2}$ / mT", size=24)
plt.tick_params(labelsize=18)
plt.gcf().set_size_inches(5, 5)
Expand Down

0 comments on commit 9725508

Please sign in to comment.