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