Skip to content

Commit

Permalink
level parameter for contour plot calls epsilon data (#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
simbilod authored Dec 26, 2021
1 parent f571943 commit aaae0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def plot_eps(sim, ax, output_plane=None, eps_parameters=None, frequency=None):

if mp.am_master():
if eps_parameters['contour']:
ax.contour(eps_data, 0, colors='black', origin='upper', extent=extent, linewidths=eps_parameters['contour_linewidth'])
ax.contour(eps_data, 0, levels=np.unique(eps_data), colors='black', origin='upper', extent=extent, linewidths=eps_parameters['contour_linewidth'])
else:
ax.imshow(eps_data, extent=extent, **filter_dict(eps_parameters, ax.imshow))
ax.set_xlabel(xlabel)
Expand Down

0 comments on commit aaae0ac

Please sign in to comment.