我需要用一个颜色条绘制4个图形。但是其中第二个网格的y轴范围应与其他网格的y轴范围不同,后者需要为(-2,2),而其他网格的范围为(0,1)。我该怎么做?
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import AxesGrid
import matplotlib as mpl
fig = plt.figure(figsize=(8,8))
st=fig.suptitle(r"4 parameters in cell compsotion", fontsize=16,y=0.88)
grid = AxesGrid(fig, 111,
nrows_ncols=(2, 2),
axes_pad=0.8,
direction='row',
add_all='True',
share_all=False,
aspect='auto',
label_mode="all",
cbar_mode="single",
cbar_location="right",
cbar_pad=0.6,
cbar_size='5%',
)
plt.rcParams["axes.grid"] = False