Setting matplotlib colorbar range

后端 未结 3 972
死守一世寂寞
死守一世寂寞 2020-12-25 13:15

I would like to set the matplotlib colorbar range. Here\'s what I have so far:

import numpy as np
import matplotlib.pyplot as plt
x = np.arange(20)
y = np.a         


        
3条回答
  •  渐次进展
    2020-12-25 13:31

    Arg. It's always the last thing you try:

    quadmesh.set_clim(vmin=0, vmax=15)
    

    works.

提交回复
热议问题