summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation/pythonPlotting.py
diff options
context:
space:
mode:
authormaddy-22019-05-29 22:59:53 +0530
committernilshah982019-06-13 12:15:50 +0530
commitcc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d (patch)
treee00d208dcc744c6313ca5f614204236628ff55a1 /src/ngspiceSimulation/pythonPlotting.py
parent1dd7f42e4fe21f7b854644536ff2be977f67e4a9 (diff)
downloadeSim-cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d.tar.gz
eSim-cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d.tar.bz2
eSim-cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d.zip
ngspiceSimulation documentation added
Diffstat (limited to 'src/ngspiceSimulation/pythonPlotting.py')
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py
index 298d392c..848d9d54 100644
--- a/src/ngspiceSimulation/pythonPlotting.py
+++ b/src/ngspiceSimulation/pythonPlotting.py
@@ -11,6 +11,7 @@ from configuration.Appconfig import Appconfig
import numpy as np
+# This class creates Python Plotting window
class plotWindow(QtGui.QMainWindow):
def __init__(self, fpath, projectName):
QtGui.QMainWindow.__init__(self)
@@ -114,6 +115,7 @@ class plotWindow(QtGui.QMainWindow):
'; font-weight = bold;')
self.top_grid.addWidget(self.colorLab, i + 3, 1)
+ # Buttons for Plot, multimeter, plotting function.
self.clear = QtGui.QPushButton("Clear")
self.warnning = QtGui.QLabel()
self.funcName = QtGui.QLabel()
@@ -158,7 +160,10 @@ class plotWindow(QtGui.QMainWindow):
self.scrollArea = QtGui.QScrollArea()
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setWidget(self.widget)
-
+ '''
+ Right side box containing checkbox for different inputs and
+ options of plot, multimeter and plot function.
+ '''
self.finalhbox = QtGui.QHBoxLayout()
self.finalhbox.addWidget(self.scrollArea)
@@ -216,8 +221,9 @@ class plotWindow(QtGui.QMainWindow):
QtCore.SIGNAL('clicked()'),
self.onPush_dc)
- self.setCentralWidget(self.mainFrame)
-
+ self.setCentralWidget(self.mainFrame)
+
+ # Defining clear funtion and plot.
def pushedClear(self):
self.text.clear()
self.axes.cla()