mpldatacursor:matplotlib的交互式“数据游标”(又名注释弹出窗口)

时间:2021-05-01 13:03:16
【文件属性】:
文件名称:mpldatacursor:matplotlib的交互式“数据游标”(又名注释弹出窗口)
文件大小:33KB
文件格式:ZIP
更新时间:2021-05-01 13:03:16
Python mpldatacursor mpldatacursor为matplotlib提供交互式“数据游标”(可单击的注释框)。 基本用法 mpldatacursor通过datacursor函数提供了几种不同的交互方式。 例如,这将在注释框中显示所选艺术家的x,y坐标: import matplotlib.pyplot as plt import numpy as np from mpldatacursor import datacursor data = np.outer(range(10), range(1, 5)) fig, ax = plt.subplots() lines = ax.plot(data) ax.set_title('Click somewhere on a line') datacursor(lines) plt.show() 如果未指定艺术家或艺术家序列,则将激活
【文件预览】:
mpldatacursor-master
----MANIFEST.in(71B)
----README.rst(8KB)
----LICENSE(1KB)
----mpldatacursor()
--------__init__.py(1KB)
--------pick_info.py(12KB)
--------convenience.py(9KB)
--------datacursor.py(32KB)
----changelog.rst(5KB)
----examples()
--------draggable_example.py(390B)
--------multi_highlight_example.py(2KB)
--------change_popup_color.py(671B)
--------bar_example.py(1KB)
--------highlighting_example.py(524B)
--------basic_single_annotation.py(454B)
--------show_artist_labels.py(570B)
--------customize_keyboard_shortcuts.py(471B)
--------scatter_example.py(222B)
--------image_example.py(632B)
--------date_example.py(588B)
--------labeled_points_example.py(559B)
--------basic.py(316B)
--------contour_example.py(411B)
--------hover_example.py(666B)
----setup.py(419B)
----.gitignore(48B)

网友评论