File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# Demo of using multiprocessing for generating data in one process and plotting
33# in another.
44# Written by Robert Cimrman
5+ from six .moves import input
56
67from __future__ import print_function
78import time
@@ -76,10 +77,6 @@ def main():
7677 for ii in range (10 ):
7778 pl .plot ()
7879 time .sleep (0.5 )
79- try :
80- input = raw_input
81- except NameError :
82- pass
8380 input ('press Enter...' )
8481 pl .plot (finished = True )
8582
Original file line number Diff line number Diff line change 22from matplotlib .mlab import griddata
33import matplotlib .pyplot as plt
44import numpy as np
5+ from six .moves import input
6+
57# make up data.
6- #npts = int(raw_input ('enter # of random points to plot:'))
8+ #npts = int(input ('enter # of random points to plot:'))
79seed (0 )
810npts = 200
911x = uniform (- 2 , 2 , npts )
Original file line number Diff line number Diff line change 88from matplotlib .path import Path
99
1010
11+ try :
12+ raw_input
13+ except NameError :
14+ # Python 3
15+ raw_input = input
16+
17+
1118class SelectFromCollection (object ):
1219 """Select indices from a matplotlib collection using `LassoSelector`.
1320
You can’t perform that action at this time.
0 commit comments