fixed matplotlib 3.10 error in cleanup of MeasurementResult plots
This commit is contained in:
@@ -2956,11 +2956,14 @@ class MonitorWidgets:
|
||||
self.measurementresultgraph = None
|
||||
elif self.measurementresultgraph is not None:
|
||||
# clear errorbars
|
||||
self.matplot_axes.lines.remove( self.measurementresultgraph[ 0 ] )
|
||||
for l in self.measurementresultgraph[ 1 ]:
|
||||
self.matplot_axes.lines.remove( l )
|
||||
for l in self.measurementresultgraph[ 2 ]:
|
||||
self.matplot_axes.collections.remove( l )
|
||||
#self.matplot_axes.lines.remove( self.measurementresultgraph[ 0 ] )
|
||||
self.measurementresultgraph[0].remove()
|
||||
for line in self.measurementresultgraph[ 1 ]:
|
||||
#self.matplot_axes.lines.remove( l )
|
||||
line.remove()
|
||||
for line in self.measurementresultgraph[ 2 ]:
|
||||
#self.matplot_axes.collections.remove( l )
|
||||
line.remove()
|
||||
self.measurementresultgraph = None
|
||||
self.matplot_axes.clear( )
|
||||
self.matplot_axes.grid( True )
|
||||
|
||||
Reference in New Issue
Block a user