Every line of 'python clear plots' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
807 def clear(self): 808 """Clear the plot. 809 810 Resets all internal state and sets need for redraw. 811 812 """ 813 if getattr(self, 'handle', None) is not None: 814 if getattr(self.handle, 'collections', None) is not None: 815 self.clear_collections() 816 else: 817 self.clear_handle() 818 self._need_redraw = True
40 def clear_figure(self): 41 self.figure.clear() 42 self.SetColor(self.color) 43 self._resizeflag = True
113 def clear_plot(self): 114 self.scene.mlab.clf(figure=self.scene.mayavi_scene)
280 def clear_figure(self, axis): 281 axis.clear() 282 axis.grid(True)
89 def do_clear_plots(self): 90 """ 91 Clear all the plots from the canvas 92 :return: 93 """ 94 self.ui.graphicsView.clear_3d_plots() 95 self._dataKeyList = list() 96 self.ui.comboBox_dataKey.clear() 97 98 return
415 def clear_live_plotter(self): 416 self.logger.clear() 417 self.update()
796 def clear_ax(self, silent=True): 797 """Clear the main axe.""" 798 self.ax0.clear() 799 self.xticklabels = [] 800 self.notes = [] 801 if not silent: 802 self.sig_fig_changed.emit(self.figure)
290 def ClearFigure(self): 291 """ Clear all previously drawn apodization windows """ 292 self.axes.cla() 293 self.OnPaint(-1)
1398 def clear_canvas(self): 1399 """ Clear data including lines and image from canvas 1400 """ 1401 # clear the image for next operation 1402 self.axes.hold(False) 1403 1404 # Clear all lines 1405 self.clear_all_1d_plots() 1406 1407 # clear image 1408 self.axes.cla() 1409 # Try to clear the color bar 1410 if len(self.fig.axes) > 1: 1411 self.fig.delaxes(self.fig.axes[1]) 1412 self._colorBar = None 1413 # This clears the space claimed by color bar but destroys sub_plot too. 1414 self.fig.clear() 1415 # Re-create subplot 1416 self.axes = self.fig.add_subplot(111) 1417 self.fig.subplots_adjust(bottom=0.15) 1418 1419 # flush/commit 1420 self._flush() 1421 1422 return
413 @DrawAfter 414 def Clear(self, clearForDestruction=False): 415 """ Clear() 416 417 Clear the axes. Removing all wobjects in the scene. 418 419 """ 420 # Remove wobjects 421 for w in self.wobjects: 422 if isinstance(w, BaseAxis) and not clearForDestruction: 423 continue 424 elif hasattr(w,'Destroy'): 425 w.Destroy()