1 Star 0 Fork 0

nihk / PMAgg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

PMAgg

A matplotlib GUI backend with interactive capabilities.

Introduction

PMAgg is a matplotlib backend with richer interactive capabilities, based on PySide2. It is currently integrated in the open source project Pyminer, as the default drawing interface, in order to achieve a drawing window similar to matlab.

Usage

import matplotlib
import numpy as np
import matplotlib.pyplot as plt
matplotlib.use('module://PMAgg') # switch to PMAgg backend
x=np.linspace(0,2*np.pi,100)
y=x*np.sin(x)
plt.plot(x,y)
plt.show()

Basic function

Right-click function: right-click on the curve, legend, text, rectangle, ellipse and other objects to delete the object or modify the style

save: Save the drawing in various image formats

setting: modify the axis, title, default font, grid, comment style selection

home: delete all additional elements, such as rectangles, notes, text, etc.

front/back: adjust back the graphics before and after panning

zoom/pan: select zoom and pan

rotate: 3D rotation, and six orientation views in toolbar 2

text: add text, support LaTeX formula

rect/oval: add rectangle and ellipse labels, display center coordinates and area, for measurement, etc.

annotation: add extra point annotations on the curve, you can make rich style modifications

grid: show or hide the grid

legend: show or hide the legend

colormap: modify the color style of the colorbar

MIT License Copyright (c) 2021 nihk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

matplotlib backend 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/lvvl/pmagg.git
git@gitee.com:lvvl/pmagg.git
lvvl
pmagg
PMAgg
master

搜索帮助