Skip to content
Snippets Groups Projects

Update plotting

Merged Rui Zhang requested to merge plot_update into master
2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -104,10 +104,10 @@ class Likelihood2DPlot(AbstractPlot):
cmap = config['cmap']
ax.pcolormesh(X, Y, Z, cmap=cmap, shading='auto')
cp = ax.contour(X, Y, Z, levels=levels, colors=colors,
linestyles=linestyles, linewidths=2)
linestyles=linestyles, linewidths=3)
if clabel_size is not None:
ax.clabel(cp, inline=True, fontsize=clabel_size)
custom_handles = [Line2D([0], [0], color=color, linestyle=linestyle, lw=2, label=label) for color, key, label, linestyle in zip(
custom_handles = [Line2D([0], [0], color=color, linestyle=linestyle, lw=3, label=label) for color, key, label, linestyle in zip(
config['sigma_colors'], config['sigma_levels'], config['sigma_names'], config['sigma_linestyles'])]
self.update_legend_handles(
dict(zip(config['sigma_names'], custom_handles)))
Loading