matplotlib 次坐标轴
来源:互联网 发布:四氧化三铁化学式算法 编辑:程序博客网 时间:2024/06/09 22:11
import matplotlib.pyplot as pltimport numpy as npx = np.arange(0,10,0.1)y1 = 0.05 * x**2y2 = -1*y1fig,ax1 = plt.subplots()ax2 = ax1.twinx()ax1.plot(x,y1,'g-')ax2.plot(x,y2,'b--')ax1.set_xlabel('X data')ax1.set_ylabel('Y1',color='g')ax2.set_ylabel('Y2',color='b')plt.show()
阅读全文
0 0
- matplotlib 次坐标轴
- matplotlib模块数据可视化-设置次坐标轴
- Python利用matplotlib做图中图及次坐标轴
- matplotlib隐藏坐标轴
- matplotlib去掉坐标轴刻度
- matplotlib设置坐标轴
- matplotlib画图坐标轴设置
- matplotlib--设置坐标轴
- 演示MatPlotLib中如何设置坐标轴主刻度标签和次刻度标签
- Excel设置次坐标轴
- matplotlib坐标轴中文乱码问题解决
- matplotlib 设置坐标轴显示内容
- python使用matplotlib绘制xy坐标轴图
- python matplotlib绘图设置坐标轴刻度、文本
- matplotlib用断裂的坐标轴表示无穷
- matplotlib模块数据可视化-设置坐标轴
- matplotlib模块数据可视化-修改坐标轴位置
- python matplotlib 入门系列三:坐标轴
- 分布式java应用(二)
- 数组补充 及二位数组 排序方法 冒泡
- 冒泡排序
- 一分钟了解“Matlab统计数值频率和个数tabulate”
- hdu 3911 Black And White (线段树)
- matplotlib 次坐标轴
- NOIP2013 Day2 T3 华容道
- 线程池使用
- Android 硬件加速
- QT focusInEvent 事件
- 一分钟了解“do and has done”
- setInterval()函数的用法心得
- PHP中的字符串格式化输出函数和字符串比较函数
- 文件的输入和输出