matplotlib 图中图显示
来源:互联网 发布:php 字符串反转函数 编辑:程序博客网 时间:2024/05/16 14:10
简书地址
import matplotlib.pyplot as pltfig = plt.figure()x = [1,2,3,4,5,6,7]y = [1,3,4,2,5,8,6]left,bottom,width,height = 0.1,0.1,0.8,0.8ax1 = fig.add_axes([left,bottom,width,height])ax1.plot(x,y,'r')ax1.set_xlabel('x')ax1.set_ylabel('y')ax1.set_title('title')left,bottom,width,height = 0.2,0.6,0.25,0.25ax2 = fig.add_axes([left,bottom,width,height])ax2.plot(y,x,'b')ax2.set_xlabel('x')ax2.set_ylabel('y')ax2.set_title('title inside 1')plt.axes([.6,.2,.25,.25])plt.plot(y[::-1],x,'g')plt.xlabel('x')plt.ylabel('y')plt.title('title inside 2')plt.show()
阅读全文
0 0
- matplotlib 图中图显示
- matplotlib显示中文问题
- matplotlib显示中文字体
- matplotlib 中文显示
- matplotlib显示中文问题
- Matplotlib 如何显示中文
- matplotlib中文显示问题
- 【Matplotlib】图例分开显示
- matplotlib设置中文显示
- matplotlib画图不显示
- Jupyter显示Matplotlib图片
- matplotlib图标中文显示
- matplotlib pyplot 显示中文
- matplotlib 多合一显示
- pyhton matplotlib显示中文
- matplotlib 图例显示中文
- matplotlib--3d显示
- matplotlib显示中文
- Hadoop之MapReduce中的排序和分组(笔记11)
- HTTP/1.1 Head-of-line blocking
- 理解矩阵(一)
- HDOJ 1728 逃离迷宫 (BFS )解题报告
- SQL 函数之 row_number() over()
- matplotlib 图中图显示
- opencv-3.1.0在Ubuntu系统上使用g++编译时出现“/usr/bin/ld: cannot find -lippicv ” 错误及其解决办法
- ubuntu16.4快速 安装tensorflow1.1.0
- printk的打印级别
- JS获取当前时间戳的方法
- csdn如何转载别人的文章
- MAVEN系列之二@编写POM.xml和讲解
- ubuntu 看视频问题
- Hadoop之MapReduce中的常见算法(笔记12)