Skip to content

Commit

Permalink
minor tweaks to pgn plot algo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean DeLongchamp committed Nov 21, 2024
1 parent 9d5eb86 commit 3f82359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NRSS_tutorials/polymer_grafted_nanoparticles/pgn_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,9 @@ def plot_sweep(swept_arg):
ax.imshow(result.viz.img_dict["mat_1_S"], origin="lower")
ax.set_axis_off()
ax.text(0.5, 0.1, f"{formatted_swept_arg_value} {swept_arg_unit}", horizontalalignment='center', verticalalignment='center', transform=ax.transAxes, color = "white")
txt = ax1.annotate("284.7 eV", (0.14, 0.05),xycoords = "data", horizontalalignment='center', verticalalignment='center', transform=ax.transAxes, color = "black")
txt = ax1.annotate("284.7 eV", (0.18, 0.05),xycoords = "data", horizontalalignment='center', verticalalignment='center', transform=ax.transAxes, color = "black")
txt.set_bbox(dict(facecolor='white', alpha=0.7, edgecolor='none'))
txt = ax1.annotate("285.2 eV", (0.14, -0.05), xycoords = "data", horizontalalignment='center', verticalalignment='center', transform=ax.transAxes, color = "black")
txt = ax1.annotate("285.2 eV", (0.18, -0.05), xycoords = "data", horizontalalignment='center', verticalalignment='center', transform=ax.transAxes, color = "black")
txt.set_bbox(dict(facecolor='white', alpha=0.7, edgecolor='none'))
ax1.tick_params(axis = 'y',which = 'major', direction = 'in')
ax1.tick_params(axis = 'y',which = 'minor', direction = 'in')
Expand Down

0 comments on commit 3f82359

Please sign in to comment.