Skip to content
Snippets Groups Projects
Commit 207cfc15 authored by Felix Thelen's avatar Felix Thelen
Browse files

Bug fixes after talking to Sabrina

parent 9f2184a2
Branches
No related tags found
No related merge requests found
......@@ -38,6 +38,8 @@ def plot_lsvs(lsvs: dict[int, pd.DataFrame] | pd.DataFrame, title: str, excl_mas
ax.set_title(title)
# Set the limits
ax.set_ylim(ymin=ymin, ymax=ymax)
# Adjust the layout
fig.tight_layout()
# Save the plot if desired
if save_path is not None:
plt.savefig(save_path, dpi=200)
......@@ -83,6 +85,8 @@ def _plot_on_wafer(coords: pd.DataFrame, vals: pd.Series, cmap: str, vmin: float
ax.set_ylabel('y [mm]')
# Remove the axes labels
ax.axis('off')
# Adjust the layout
fig.tight_layout()
# Save the plot if desired
if save_path is not None:
fig.patch.set_facecolor('None')
......@@ -168,6 +172,8 @@ def save_lsv_plots(lsvs: dict[int, pd.DataFrame] | pd.DataFrame, save_path: str,
ax.set_xlabel('Potential [mV]')
ax.set_ylabel(r'Current density vs. RHE [$\frac{mA}{cm^{2}}$]')
ax.set_title('MA ' + str(ma))
# Adjust the layout
fig.tight_layout()
# Save it and hinder it from showing it in the notebook
plt.savefig(Path(save_path) / ('LSV_MA_%d' % ma), dpi=100)
plt.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment