标签“matplotlib”的相关文档,共1条
  • matplotlib鼠标事件绘制圆

    #coding=utf8importmatplotlib.pyplotasplt#importmatplotlib.animationasanimationimportnumpyasnpimportmatplotlib.linesaslinesfromcreat_polygonimportcreatpolygonfrommatplotlib.widgetsimportCursorfrommatplotlib.patchesimportEllipse,Rectanglefrommatplotlibimporttextfrommatplotlib.backends.backend_qt5aggimportFigureCanvasQTAggasFigureCanvasfrommatplotlib.figureimportFigureclassonclick_draw_circl():鼠...

    18.5 KB
确认删除?