Skip to content

Commit db699ec

Browse files
committed
Added Inject marks
- Selected injection point is marked in the plot
1 parent 0b64a3b commit db699ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examplescripts/pycorn-bin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,12 @@ def plotterX(inp,fname):
236236
horizontalalignment='center', verticalalignment='bottom', size=8, rotation=90)
237237
except:
238238
KeyError
239+
if inp.inject_vol != 0.0:
240+
injections = inp.injection_points
241+
host.axvline(x=injections[args.inject], ymin=0.10, ymax=0.0, color='#FF3292',
242+
ls ='-', marker='v', markevery=2, linewidth=1.5, alpha=0.85, label='Inject')
239243
host.set_xlim(plot_x_min, plot_x_max)
240-
host.legend(fontsize=8, fancybox=True, labelspacing=0.4, loc='upper right')
244+
host.legend(fontsize=8, fancybox=True, labelspacing=0.4, loc='upper right', numpoints=1)
241245
host.xaxis.set_minor_locator(AutoMinorLocator())
242246
host.yaxis.set_minor_locator(AutoMinorLocator())
243247
plt.title(fname, loc='left', size=8)

0 commit comments

Comments
 (0)