summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathulappadan2016-04-27 19:01:12 +0530
committerathulappadan2016-04-27 19:01:12 +0530
commit6b0082543137b215a752cb7ab46cd59a012309c0 (patch)
tree7bd4faf6fe67cb822830e140cc5373c030a65e92
parent5a2d27df08634ec75a36135bfd9013d6d37a6d3f (diff)
downloadeSim-6b0082543137b215a752cb7ab46cd59a012309c0.tar.gz
eSim-6b0082543137b215a752cb7ab46cd59a012309c0.tar.bz2
eSim-6b0082543137b215a752cb7ab46cd59a012309c0.zip
plot values stored in a dict
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py
index 295c0a1d..e4f8fe03 100644
--- a/src/ngspiceSimulation/pythonPlotting.py
+++ b/src/ngspiceSimulation/pythonPlotting.py
@@ -52,7 +52,13 @@ class plotWindow(QtGui.QMainWindow):
self.a = self.obj_dataext.numVals()
self.chkbox=[]
-
+
+ self.val_dict = {}
+
+ for i in range(0,self.a[0]-1):
+ self.val_dict[self.obj_dataext.NBList[i]] = self.obj_dataext.y[i]
+ self.val_dict['x-axis'] = self.obj_dataext.x
+
########### Generating list of colors :
self.full_colors = ['r','b','g','y','c','m','k']#,(0.4,0.5,0.2),(0.1,0.4,0.9),(0.4,0.9,0.2),(0.9,0.4,0.9)]
self.color = []