@@ -10,39 +10,39 @@ def plot():
10
10
t = np .arange (0.0 , 2.0 * np .pi , 0.4 )
11
11
12
12
# Legend best location is "upper right"
13
- l , = axes [0 ].plot (t , np .cos (t ) * np .exp (- t ), linewidth = 0.5 )
13
+ ( l ,) = axes [0 ].plot (t , np .cos (t ) * np .exp (- t ), linewidth = 0.5 )
14
14
axes [0 ].legend ((l ,), ("UR" ,), loc = 0 )
15
15
16
16
# Legend best location is "upper left"
17
- l , = axes [1 ].plot (t , np .cos (t ) * np .exp (0.15 * t ), linewidth = 0.5 )
17
+ ( l ,) = axes [1 ].plot (t , np .cos (t ) * np .exp (0.15 * t ), linewidth = 0.5 )
18
18
axes [1 ].legend ((l ,), ("UL" ,), loc = 0 )
19
19
20
20
# Legend best location is "lower left"
21
- l , = axes [2 ].plot (t , np .cos (5.0 * t ) + 1 , linewidth = 0.5 )
21
+ ( l ,) = axes [2 ].plot (t , np .cos (5.0 * t ) + 1 , linewidth = 0.5 )
22
22
axes [2 ].legend ((l ,), ("LL" ,), loc = 0 )
23
23
24
24
# Legend best location is "lower right"
25
- l , = axes [3 ].plot (
25
+ ( l ,) = axes [3 ].plot (
26
26
t , 2 * np .cos (5.0 * t ) * np .exp (- 0.5 * t ) + 0.2 * t , linewidth = 0.5
27
27
)
28
28
axes [3 ].legend ((l ,), ("LR" ,), loc = 0 )
29
29
30
30
# Legend best location is "center left"
31
- l , = axes [4 ].plot (t [30 :], 2 * np .cos (10 * t [30 :]), linewidth = 0.5 )
31
+ ( l ,) = axes [4 ].plot (t [30 :], 2 * np .cos (10 * t [30 :]), linewidth = 0.5 )
32
32
axes [4 ].plot (t , - 1.5 * np .ones_like (t ), t , 1.5 * np .ones_like (t ))
33
33
axes [4 ].legend ((l ,), ("CL" ,), loc = 0 )
34
34
35
35
# Legend best location is "center right"
36
- l , = axes [5 ].plot (t [:30 ], 2 * np .cos (10 * t [:30 ]), linewidth = 0.5 )
36
+ ( l ,) = axes [5 ].plot (t [:30 ], 2 * np .cos (10 * t [:30 ]), linewidth = 0.5 )
37
37
axes [5 ].plot (t , - 1.5 * np .ones_like (t ), t , 1.5 * np .ones_like (t ))
38
38
axes [5 ].legend ((l ,), ("CR" ,), loc = 0 )
39
39
40
40
# Legend best location is "lower center"
41
- l , = axes [6 ].plot (t , - 3 * np .cos (t ) * np .exp (- 0.1 * t ), linewidth = 0.5 )
41
+ ( l ,) = axes [6 ].plot (t , - 3 * np .cos (t ) * np .exp (- 0.1 * t ), linewidth = 0.5 )
42
42
axes [6 ].legend ((l ,), ("LC" ,), loc = 0 )
43
43
44
44
# Legend best location is "upper center"
45
- l , = axes [7 ].plot (t , 3 * np .cos (t ) * np .exp (- 0.1 * t ), linewidth = 0.5 )
45
+ ( l ,) = axes [7 ].plot (t , 3 * np .cos (t ) * np .exp (- 0.1 * t ), linewidth = 0.5 )
46
46
axes [7 ].legend ((l ,), ("UC" ,), loc = 0 )
47
47
48
48
# Legend best location is "center"
0 commit comments