(x, y), lims=(mn, mx), log=opts['--log10'], clabel=units, title=title, agg=not opts['--show'], linthresh=float(opts['--linthresh']), linscale=float(opts['--linscale']), flip=flip, rotate=rot, cmap=opts['--cmap'], ) if opts['--highlight']: myhi = float(opts['--highlight']) highlight(r, myhi, color="lightyellow", alpha=0.5) if opts['--laser']: laser = S(d) I = float(opts['--intensity']) highlight(r, I, q=laser, color="red", alpha=0.15) import matplotlib.pyplot as plt if opts['--equal']: plt.axis('equal') r['axes'].autoscale(tight=True) if opts['--no-ticks']: plt.tick_params(axis='both', which='both', bottom='off', top='off',
r=pc( rho,(x,y), lims=(mn,mx),log=opts['--log10'], clabel=units, title=title, agg=not opts['--show'], linthresh=float(opts['--linthresh']), linscale=float(opts['--linscale']), rotate=rot, flip=flip, cmap=opts['--cmap'],); #if opts['--highlight']: # myhi = float(opts['--highlight']); # highlight( # r, myhi, # color="lightyellow", alpha=0.5); if opts['--laser']: laser = S(d); I = float(opts['--intensity']); highlight(r, I, q=laser, color="red", alpha=0.15); import matplotlib.pyplot as plt; if opts['--show']: plt.show(); else: plt.savefig(opts['<outname>']);
rho, (x, y), lims=(mn, mx), log=opts['--log10'], clabel=units, title=title, agg=not opts['--show'], linthresh=float(opts['--linthresh']), linscale=float(opts['--linscale']), rotate=rot, flip=flip, cmap=opts['--cmap'], ) #if opts['--highlight']: # myhi = float(opts['--highlight']); # highlight( # r, myhi, # color="lightyellow", alpha=0.5); if opts['--laser']: laser = S(d) I = float(opts['--intensity']) highlight(r, I, q=laser, color="red", alpha=0.15) import matplotlib.pyplot as plt if opts['--show']: plt.show() else: plt.savefig(opts['<outname>'])
r=pc( q,(x,y), lims=(mn,mx),log=opts['--log10'], clabel=units, title=titlestr, agg=not opts['--show'], linthresh=float(opts['--linthresh']), linscale=float(opts['--linscale']), flip=flip, rotate=rot, nofloor=opts['--nofloor'], cmap=opts['--cmap'], ); if opts['--highlight']: myhi = float(opts['--highlight']); highlight( r, myhi, color="lightyellow", alpha=0.5); if opts['--laser']: laser = S(d); I = float(opts['--intensity']); highlight(r, I, q=laser, color="red", alpha=0.15); import matplotlib.pyplot as plt toff=float(opts['--t-offset']); timelabel( r, 'time={:.2f} fs'.format(t*1e6+toff), size=11, color='white');
rot,flip = True, False; #plot the density r=pc( q,(x,y), lims=(mn,mx),log=opts['--log10'], clabel=units, title=titlestr, agg=not opts['--show'], linthresh=float(opts['--linthresh']), linscale=float(opts['--linscale']), flip=flip, rotate=rot, nofloor=opts['--nofloor'], cmap=opts['--cmap'],); if opts['--highlight']: highlight( r, float(opts['--highlight']), color="lightyellow", alpha=0.5); if opts['--target']: if opts['--target'] == 'True': H = [1.7e21]; else: H = parse_qs(opts['--target'], fltrx, length=None); Q = Q; #just for nice symmetry C = parse_colors(opts['--targetc'], length=None); A = parse_qs(opts['--targeta'], fltrx,length=None); def lenl(I): if len(I) == 1: I = I*len(H); return I; C = lenl(C);