@@ -399,7 +399,7 class Plot: | |||||
399 | self.xaxisastime, |
|
399 | self.xaxisastime, | |
400 | self.timefmt) |
|
400 | self.timefmt) | |
401 |
|
401 | |||
402 | def plotBasicLine(self,x, y, color): |
|
402 | def plotBasicLine(self,x, y, color, xopt='bcst', yopt='bcst'): | |
403 | """ |
|
403 | """ | |
404 | Inputs: |
|
404 | Inputs: | |
405 | x: |
|
405 | x: | |
@@ -408,5 +408,5 class Plot: | |||||
408 |
|
408 | |||
409 | color: |
|
409 | color: | |
410 | """ |
|
410 | """ | |
411 | self.drvObj.driver.basicLine(self.idframe, self.xpos, self.ypos, x, y, self.xmin, self.xmax, self.ymin, self.ymax, color) |
|
411 | self.drvObj.driver.basicLine(self.idframe, self.xpos, self.ypos, x, y, self.xmin, self.xmax, self.ymin, self.ymax, color, xopt=xopt, yopt=yopt) | |
412 | No newline at end of file |
|
412 |
@@ -47,6 +47,7 class PlplotDriver: | |||||
47 |
|
47 | |||
48 | plplot.plsstrm(self.idfigure) |
|
48 | plplot.plsstrm(self.idfigure) | |
49 |
|
49 | |||
|
50 | ||||
50 | def openDriver(self, pldriver=None): |
|
51 | def openDriver(self, pldriver=None): | |
51 | if pldriver == None: |
|
52 | if pldriver == None: | |
52 | if sys.platform == "linux": |
|
53 | if sys.platform == "linux": | |
@@ -74,7 +75,7 class PlplotDriver: | |||||
74 |
|
75 | |||
75 | def openPage(self): |
|
76 | def openPage(self): | |
76 | plplot.plbop() |
|
77 | plplot.plbop() | |
77 | plplot.pladv(0) |
|
78 | #plplot.pladv(0) | |
78 |
|
79 | |||
79 | def closePage(self): |
|
80 | def closePage(self): | |
80 | plplot.pleop() |
|
81 | plplot.pleop() | |
@@ -87,13 +88,13 class PlplotDriver: | |||||
87 | plplot.pleop() |
|
88 | plplot.pleop() | |
88 |
|
89 | |||
89 | def setSubPlots(self,nrows, ncolumns): |
|
90 | def setSubPlots(self,nrows, ncolumns): | |
90 | plplot.plssub(ncolumns,nrows) |
|
91 | plplot.plssub(ncolumns, nrows) | |
91 |
|
92 | |||
92 | def setPlotLabels(self, id, xlabel, ylabel, title): |
|
93 | def setPlotLabels(self, id, xlabel, ylabel, title): | |
93 | plplot.pllab(xlabel, ylabel, title) |
|
94 | plplot.pllab(xlabel, ylabel, title) | |
94 |
|
95 | |||
95 | def setFigTitle(self, title,color="black", szchar=0.55): |
|
96 | def setFigTitle(self, title,color="black", szchar=0.55): | |
96 |
self.setSubPlots(1, |
|
97 | self.setSubPlots(1, 1) | |
97 | plplot.pladv(0) |
|
98 | plplot.pladv(0) | |
98 | plplot.plvpor(0., 1., 0., 1.) |
|
99 | plplot.plvpor(0., 1., 0., 1.) | |
99 |
|
100 | |||
@@ -211,7 +212,7 class PlplotDriver: | |||||
211 | plplot.plspause(True) |
|
212 | plplot.plspause(True) | |
212 | plplot.plend() |
|
213 | plplot.plend() | |
213 |
|
214 | |||
214 | def basicLine(self, id, xpos, ypos, x, y, xmin, xmax, ymin, ymax, color): |
|
215 | def basicLine(self, id, xpos, ypos, x, y, xmin, xmax, ymin, ymax, color, xopt="bcst", yopt="bcst"): | |
215 |
|
216 | |||
216 | """ |
|
217 | """ | |
217 | Inputs: |
|
218 | Inputs: | |
@@ -244,7 +245,7 class PlplotDriver: | |||||
244 | plplot.plcol0(colline) |
|
245 | plplot.plcol0(colline) | |
245 | plplot.plline(x, y) |
|
246 | plplot.plline(x, y) | |
246 | plplot.plcol0(1) |
|
247 | plplot.plcol0(1) | |
247 |
plplot.plbox( |
|
248 | # plplot.plbox(xopt, 0.0, 0, yopt, 0.0, 0) | |
248 |
|
249 | |||
249 | def save(self, filename): |
|
250 | def save(self, filename): | |
250 | curr_strm = plplot.plgstrm() |
|
251 | curr_strm = plplot.plgstrm() |
@@ -254,22 +254,24 class SpcFrame(Frame): | |||||
254 | self.plotObjList = plotObjList |
|
254 | self.plotObjList = plotObjList | |
255 |
|
255 | |||
256 | def getScreenPosMainPlot(self): |
|
256 | def getScreenPosMainPlot(self): | |
257 |
|
|
257 | ||
|
258 | xi = 0.10 | |||
258 |
|
259 | |||
259 | if self.showprofile: |
|
260 | if self.showprofile: | |
260 |
xw = 0. |
|
261 | xw = 0.62 | |
261 |
|
262 | |||
262 | else: |
|
263 | else: | |
263 |
xw = 0. |
|
264 | xw = 0.9 | |
264 |
|
265 | |||
265 | if self.colorbar: |
|
266 | if self.colorbar: | |
266 | xw = xw - 0.06 |
|
267 | xw = xw - 0.06 | |
267 |
|
268 | |||
268 |
yi = 0. |
|
269 | yi = 0.1; yw = 0.87 | |
269 |
|
270 | |||
270 | return xi, yi, xw, yw |
|
271 | return xi, yi, xw, yw | |
271 |
|
272 | |||
272 | def getScreenPosGraph1(self): |
|
273 | def getScreenPosGraph1(self): | |
|
274 | ||||
273 | if self.colorbar: |
|
275 | if self.colorbar: | |
274 | xi = 0.65 + 0.08 |
|
276 | xi = 0.65 + 0.08 | |
275 | else: |
|
277 | else: | |
@@ -277,7 +279,7 class SpcFrame(Frame): | |||||
277 |
|
279 | |||
278 | xw = xi + 0.2 |
|
280 | xw = xi + 0.2 | |
279 |
|
281 | |||
280 |
yi = 0. |
|
282 | yi = 0.1; yw = 0.87 | |
281 |
|
283 | |||
282 | return xi, yi, xw, yw |
|
284 | return xi, yi, xw, yw | |
283 |
|
285 | |||
@@ -673,6 +675,8 class Plot1D(Plot): | |||||
673 | self.ymax = ymax |
|
675 | self.ymax = ymax | |
674 | self.minvalue = minvalue |
|
676 | self.minvalue = minvalue | |
675 | self.maxvalue = maxvalue |
|
677 | self.maxvalue = maxvalue | |
|
678 | self.xopt = "bcnstg" | |||
|
679 | self.yopt = "bcmstv" | |||
676 |
|
680 | |||
677 | else: |
|
681 | else: | |
678 | self.xmin = xmin |
|
682 | self.xmin = xmin |
General Comments 0
You need to be logged in to leave comments.
Login now