#! usr/bin/python #coding=utf-8 import numpy as np import matplotlib.pyplot as plt data=np.random.rand(10,10) fig, ax=plt.subplots() data[data==-1]=np.nan#去掉缺省值-1 im =ax.imshow(data,interpolation='none',cmap='Reds_r',vmin=0.6,vmax=.9)#不插值 ax.set_xticks([]) ax.set_yticks([]) ######################################################################## fig.savefig('te.png')
相关文章
- 解决python画图坐标轴数据太密集的问题(显示部分刻度值)
- matplotlib tricks(关闭坐标刻度、坐标轴不可见)
- matplotlib 设置坐标轴位置/方向 y轴反向
- python画图指定x轴刻度-python matplotlib绘图设置坐标轴刻度、文本
- python设置坐标轴刻度值字体大小_python 设置xlabel,ylabel 坐标轴字体大小,字体类型...
- ggplot2学习笔记-修改坐标轴刻度
- Python+matplotlib自定义坐标轴位置、颜色、箭头
- Python 使用matplotlib画图添加标注、及移动坐标轴位置
- Matlab画图坐标轴是上的刻度线隐藏与显示
- matplotlib 设置左上角为坐标轴原点