
from silx.gui.plot import PlotWindow

class PlotWidget(PlotWindow):
    def __init__(self, *args):
        super(PlotWidget, self).__init__()
        self.setActiveCurveHandling(False)
        self.setGraphXLabel('Energy (eV)')
        self.setGraphYLabel('Absorption cross section (a.u.)')

    def plot(self, x, y, legend=None):
        self.addCurve(x, y, legend=legend)

    def clear(self):
        super(PlotWidget, self).clear()



from silx.gui.plot import PlotWindow

class PlotWidget(PlotWindow):
    def __init__(self, *args):
        super(PlotWidget, self).__init__(logScale=False, grid=True,
                aspectRatio=False, yInverted=False, roi=False, mask=False,
                print_=False)
        self.setActiveCurveHandling(False)
        self.setGraphXLabel('Energy (eV)')
        self.setGraphYLabel('Absorption cross section (a.u.)')

    def plot(self, x, y, legend=None):
        self.addCurve(x, y, legend=legend)

    def clear(self):
        super(PlotWidget, self).clear()


Remove unused icons of the PlotWindow
Remove unused icons of the PlotWindow

  
  from silx.gui.plot import PlotWindow
  
  class PlotWidget(PlotWindow):
      def __init__(self, *args):
-         super(PlotWidget, self).__init__()
+         super(PlotWidget, self).__init__(logScale=False, grid=True,
+                 aspectRatio=False, yInverted=False, roi=False, mask=False,
+                 print_=False)
          self.setActiveCurveHandling(False)
          self.setGraphXLabel('Energy (eV)')
          self.setGraphYLabel('Absorption cross section (a.u.)')
  
      def plot(self, x, y, legend=None):
          self.addCurve(x, y, legend=legend)
  
      def clear(self):
          super(PlotWidget, self).clear()
  
  
Remove unused icons of the PlotWindow
## Code Before:

from silx.gui.plot import PlotWindow

class PlotWidget(PlotWindow):
    def __init__(self, *args):
        super(PlotWidget, self).__init__()
        self.setActiveCurveHandling(False)
        self.setGraphXLabel('Energy (eV)')
        self.setGraphYLabel('Absorption cross section (a.u.)')

    def plot(self, x, y, legend=None):
        self.addCurve(x, y, legend=legend)

    def clear(self):
        super(PlotWidget, self).clear()


## Instruction:
Remove unused icons of the PlotWindow
## Code After:

from silx.gui.plot import PlotWindow

class PlotWidget(PlotWindow):
    def __init__(self, *args):
        super(PlotWidget, self).__init__(logScale=False, grid=True,
                aspectRatio=False, yInverted=False, roi=False, mask=False,
                print_=False)
        self.setActiveCurveHandling(False)
        self.setGraphXLabel('Energy (eV)')
        self.setGraphYLabel('Absorption cross section (a.u.)')

    def plot(self, x, y, legend=None):
        self.addCurve(x, y, legend=legend)

    def clear(self):
        super(PlotWidget, self).clear()

