markovmodel / PyEMMA

🚂 Python API for Emma's Markov Model Algorithms 🚂
http://pyemma.org
GNU Lesser General Public License v3.0
306 stars 119 forks source link

plot_contour colorbar tick labels don't adjust to changes to vmax and vmin #1615

Open marcushock opened 11 months ago

marcushock commented 11 months ago

When using the pyemma.plots.plot_contour function, adjusting the vmax and vmin does not change the labels on the associated color bar. I believe that I should be able to create my own color bar to alleviate this issue, but it would be great if I didn't need to use that work-around.

Here's the command I used to generate the plot: pyemma.plots.plot_contour( *data.T, dadp_msm.metastable_distributions[i][dadp_full_traj], ax=ax, cmap='jet', mask=True, method='nearest',

cbar_label='metastable distribution {}'.format(i + 1),

vmin = 0,vmax = 0.03)

The plot itself responds to the change in vmin and vmax, just not the colorbar tick marks.

Pyemma version 2.5.11, Ubuntu 22.04 Package list atttached

pyemma_conda_packges.txt contour_plot