PANOimagen / profiletool

Home to the QGis Profiletool plugin. Initial work on this fork was partially funded by the C.A. La Rioja
https://plugins.qgis.org/plugins/profiletool/
GNU General Public License v2.0
33 stars 19 forks source link

matplotlib backend #71

Closed cefect closed 2 years ago

cefect commented 2 years ago

Love the plugin been using it for years (with the matplotlib backend). Just updated to 4.2.1 and the following is thrown after changing the backend to matplotlib and left clicking anywhere. This also seems to disrupt any mouseclicking signals as I'm no longer able to draw polylines with the plugin.

image

image

Not sure if this is related:

2021-12-30T14:06:35 WARNING warning:C:\LS\06_SOFT\Qgis\profiles\default/python/plugins\profiletool\pyqtgraph\graphicsItems\PlotItem\PlotItem.py:382: DeprecationWarning: an integer is required (got type numpy.float64). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python. self.ctrl.gridAlphaSlider.setValue(v)

         traceback: File "C:\LS\06_SOFT\Qgis\\profiles\default/python/plugins\profiletool\ui\ptdockwidget.py", line 143, in changePlotLibrary
          self.addPlotWidget(self.plotlibrary)
          File "C:\LS\06_SOFT\Qgis\\profiles\default/python/plugins\profiletool\ui\ptdockwidget.py", line 177, in addPlotWidget
          self.plotWdg = PlottingTool().changePlotWidget("PyQtGraph", self.frame_for_plot)
          File "C:\LS\06_SOFT\Qgis\\profiles\default/python/plugins\profiletool\tools\plottingtool.py", line 96, in changePlotWidget
          plotWdg.showGrid(True, True, 0.5)
          File "C:\LS\06_SOFT\Qgis\\profiles\default/python/plugins\profiletool\pyqtgraph\graphicsItems\PlotItem\PlotItem.py", line 382, in showGrid
          self.ctrl.gridAlphaSlider.setValue(v)
nicogodet commented 2 years ago

Upstream issue https://github.com/matplotlib/matplotlib/issues/18539

Not a profiletool issue.

nicogodet commented 2 years ago

Issue opened on OSGeo4W tracker : https://trac.osgeo.org/osgeo4w/ticket/716

nicogodet commented 2 years ago

Matplotlib issue fixed with the update of the library in OSGeo4W.