matplotlib colorbar in each subplot

后端 未结 5 1042
一生所求
一生所求 2020-11-30 05:33

I would like to add a separate colorbar to each subplot in a 2x2 plot.

fig , ( (ax1,ax2) , (ax3,ax4)) = plt.subplots(2, 2,sharex = True,sharey=True)
z1_plot          


        
5条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 06:09

    Please have a look at this matplotlib example page. There it is shown how to get the following plot with four individual colorbars for each subplot: enter image description here

    I hope this helps.
    You can further have a look here, where you can find a lot of what you can do with matplotlib.

提交回复
热议问题