##// 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 import os
17 import os
18 from schainpy.gui.figures import tools
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 FIGURES_PATH = tools.get_path()
21 FIGURES_PATH = tools.get_path()
22
22
23 class Ui_InitWindow(object):
23 class Ui_InitWindow(object):
@@ -357,6 +357,8 class Axes:
357 ylabel=ylabel,
357 ylabel=ylabel,
358 title=title)
358 title=title)
359
359
360 self.__driver.pause()
361
360 def addpline(self, x, y, idline, **kwargs):
362 def addpline(self, x, y, idline, **kwargs):
361 lines = self.ax.lines
363 lines = self.ax.lines
362
364
@@ -397,6 +399,8 class Axes:
397 ylabel=ylabel,
399 ylabel=ylabel,
398 title=title)
400 title=title)
399
401
402 self.__driver.pause()
403
400 def pmultilineyaxis(self, x, y,
404 def pmultilineyaxis(self, x, y,
401 xmin=None, xmax=None,
405 xmin=None, xmax=None,
402 ymin=None, ymax=None,
406 ymin=None, ymax=None,
@@ -430,6 +434,8 class Axes:
430 ylabel=ylabel,
434 ylabel=ylabel,
431 title=title)
435 title=title)
432
436
437 self.__driver.pause()
438
433 def pcolor(self, x, y, z,
439 def pcolor(self, x, y, z,
434 xmin=None, xmax=None,
440 xmin=None, xmax=None,
435 ymin=None, ymax=None,
441 ymin=None, ymax=None,
@@ -501,6 +507,8 class Axes:
501 ylabel=ylabel,
507 ylabel=ylabel,
502 title=title)
508 title=title)
503
509
510 self.__driver.pause()
511
504 def pcolorbuffer(self, x, y, z,
512 def pcolorbuffer(self, x, y, z,
505 xmin=None, xmax=None,
513 xmin=None, xmax=None,
506 ymin=None, ymax=None,
514 ymin=None, ymax=None,
@@ -576,6 +584,8 class Axes:
576 title=title,
584 title=title,
577 colormap=colormap)
585 colormap=colormap)
578
586
587 self.__driver.pause()
588
579 def polar(self, x, y,
589 def polar(self, x, y,
580 title='', xlabel='',ylabel='',**kwargs):
590 title='', xlabel='',ylabel='',**kwargs):
581
591
@@ -592,6 +602,8 class Axes:
592 ylabel=ylabel,
602 ylabel=ylabel,
593 title=title)
603 title=title)
594
604
605 self.__driver.pause()
606
595 def __fillGaps(self, x_buffer, y_buffer, z_buffer):
607 def __fillGaps(self, x_buffer, y_buffer, z_buffer):
596
608
597 deltas = x_buffer[1:] - x_buffer[0:-1]
609 deltas = x_buffer[1:] - x_buffer[0:-1]
@@ -435,3 +435,8 def draw(fig):
435 raise ValueError, "Error drawing: Fig parameter should be a matplotlib figure object figure"
435 raise ValueError, "Error drawing: Fig parameter should be a matplotlib figure object figure"
436
436
437 fig.canvas.draw()
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