matplotlib中两个坐标轴之间画一条直线光标,matplotlib坐标轴,# -*- coding
matplotlib中两个坐标轴之间画一条直线光标,matplotlib坐标轴,# -*- coding
# -*- coding: utf-8 -*-from matplotlib.widgets import MultiCursorfrom pylab import figure, show, npt = np.arange(0.0, 2.0, 0.01)s1 = np.sin(2*np.pi*t)s2 = np.sin(4*np.pi*t)fig = figure()ax1 = fig.add_subplot(211)ax1.plot(t, s1)ax2 = fig.add_subplot(212, sharex=ax1)ax2.plot(t, s2)multi = MultiCursor(fig.canvas, (ax1, ax2), color='r', lw=1)show()
相关内容
- scrapy采集数据过程中放回下载过大的页面,scrapy采集
- python字典(dict)操作详解,pythondict,1、创建字典:(
- Python加pyGame设计的简单拼图游戏,pythonpygame,import pyga
- python计算指定多少天后的日期,python天后日期, d1 = da
- python通过MD5文件校验来查找重复内容的文件,pythonmd5
- xapian通过python实现的简单排序代码,xapianpython,James Ay
- python操作mongodb根据_id查询数据的代码,mongodb_id,如果
- python按照多个字符对字符串进行分割(split),pythonsplit
- python从ftp服务器下载文件,,import ftpli
- python利用asyncore的端口映射(端口转发),pythonasyncore,im
评论关闭