# -*- coding: utf-8 -*-

import numpy as np
import matplotlib.pyplot as plt

def plot_heat_map(x,figure_no):
    plt.figure(figure_no)
    plt.pcolor(x)
    plt.colorbar()

if __name__=='__main__':
    plt.close('all')
    x=np.random.normal(loc=0.5,scale=0.2,size=(10,10))

    plot_heat_map(x,2)

matplotlib绘制热图

相关文章:

  • 2021-05-01
  • 2021-09-25
  • 2021-09-30
  • 2022-01-10
  • 2021-10-06
  • 2021-11-07
  • 2021-11-23
  • 2021-12-18
猜你喜欢
  • 2021-06-27
  • 2021-06-22
  • 2021-10-31
  • 2021-11-05
  • 2021-11-07
  • 2021-08-12
  • 2022-01-07
  • 2021-07-16
相关资源
相似解决方案