matplotlib去掉边框
2017-04-01 15:18
369 查看
#! 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.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) ax.spines['bottom'].set_visible(False) ax.spines['left'].set_visible(False) plt.show()
相关文章推荐
- 【python】matplotlib在把坐标轴移到中间后如何去掉两个坐标轴上多余的一个0?
- matplotlib去掉坐标轴刻度
- matplotlib命令与格式:删除,移动,修改axes脊柱(边框)
- 绘图: matplotlib核心剖析
- Python matplotlib
- matplotlib(legend)
- matplotlib中的subplot 练习
- matplotlib 次坐标轴
- Matplotlib 教程 python
- [置顶] 机器学习实战python版决策树以及Matplotlib注解绘制决策树
- Matplotlib Tutorial(译)
- windows和linux安装matplotlib教程
- python matplotlib 画图show()不显示图
- 小白在windows的python里面安装matplotlib
- Python下的scipy,matplotlib,Numpy,six安装
- chap2 kNN算法 2.2.2 分析数据:使用Matplotlib创建散点图
- Matplotlib简介和pyplot的简单使用——直方统计图和轮廓曲线
- Ubuntu14.04中安装python的gui(idle),并安装jieba,numpy,scipy和matplotlib
- matplotlib InstallationError: Command python setup.py egg_info failed with error code 1
- python - matplotlib创建图表 - 1