##// END OF EJS Templates
Signal Chain GUI: pause added to every plot routine
Miguel Valdez -
r617:6684feaba495
parent child
Show More
@@ -17,7 +17,7 except AttributeError:
17 17 import os
18 18 from schainpy.gui.figures import tools
19 19
20 INITIAL_MSG = "Signal Chain GUI - v2.1.2"
20 INITIAL_MSG = "Signal Chain GUI - v2.1.3"
21 21 FIGURES_PATH = tools.get_path()
22 22
23 23 class Ui_InitWindow(object):
@@ -357,6 +357,8 class Axes:
357 357 ylabel=ylabel,
358 358 title=title)
359 359
360 self.__driver.pause()
361
360 362 def addpline(self, x, y, idline, **kwargs):
361 363 lines = self.ax.lines
362 364
@@ -396,7 +398,9 class Axes:
396 398 self.__driver.pmultiline(self.plot, x, y, xlabel=xlabel,
397 399 ylabel=ylabel,
398 400 title=title)
399
401
402 self.__driver.pause()
403
400 404 def pmultilineyaxis(self, x, y,
401 405 xmin=None, xmax=None,
402 406 ymin=None, ymax=None,
@@ -429,7 +433,9 class Axes:
429 433 self.__driver.pmultilineyaxis(self.plot, x, y, xlabel=xlabel,
430 434 ylabel=ylabel,
431 435 title=title)
432
436
437 self.__driver.pause()
438
433 439 def pcolor(self, x, y, z,
434 440 xmin=None, xmax=None,
435 441 ymin=None, ymax=None,
@@ -501,6 +507,8 class Axes:
501 507 ylabel=ylabel,
502 508 title=title)
503 509
510 self.__driver.pause()
511
504 512 def pcolorbuffer(self, x, y, z,
505 513 xmin=None, xmax=None,
506 514 ymin=None, ymax=None,
@@ -575,7 +583,9 class Axes:
575 583 ylabel=ylabel,
576 584 title=title,
577 585 colormap=colormap)
578
586
587 self.__driver.pause()
588
579 589 def polar(self, x, y,
580 590 title='', xlabel='',ylabel='',**kwargs):
581 591
@@ -592,6 +602,8 class Axes:
592 602 ylabel=ylabel,
593 603 title=title)
594 604
605 self.__driver.pause()
606
595 607 def __fillGaps(self, x_buffer, y_buffer, z_buffer):
596 608
597 609 deltas = x_buffer[1:] - x_buffer[0:-1]
@@ -435,3 +435,8 def draw(fig):
435 435 raise ValueError, "Error drawing: Fig parameter should be a matplotlib figure object figure"
436 436
437 437 fig.canvas.draw()
438
439 def pause(interval=0.000001):
440
441 matplotlib.pyplot.pause(interval)
442 No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now