Commit f0c8530 1 parent c9d7147 commit f0c8530 Copy full SHA for f0c8530
File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ channels:
3
3
- conda-forge
4
4
dependencies :
5
5
- matplotlib
6
- - pip >=21.3.1
6
+ - pip >= 21.3.1
7
7
- pip :
8
8
- furo >= 2023.8.17
9
9
- sphinx >= 7.2.2
Original file line number Diff line number Diff line change 24
24
plot .left_axis .set_ylabel (r"$\sin(\omega t)$" , color = "b" )
25
25
plot .left_axis .tick_params (axis = "y" , labelcolor = "b" )
26
26
27
- plot .add_right ("3cos" , "g-" )
28
- plot .right_axis .set_ylabel (r"$3 \cos(\omega t)$" , color = "g" )
27
+ plot .add_right ("3 cos" , "g-" )
28
+ plot .add_right ("1.5 cos" , "g:" )
29
+ plot .right_axis .set_ylabel (r"Cosines" , color = "g" )
29
30
plot .right_axis .tick_params (axis = "y" , labelcolor = "g" )
31
+
32
+ plot .legend ()
30
33
plot .redraw ()
31
34
32
35
for i in range (500 ):
33
36
t = i * TIMESTEP
34
37
plot .send ("sin" , math .sin (OMEGA * t ))
35
- plot .send ("3cos" , 3 * math .cos (OMEGA * t ))
38
+ plot .send ("3 cos" , 3 * math .cos (OMEGA * t ))
39
+ plot .send ("1.5 cos" , 1.5 * math .cos (OMEGA * t ))
36
40
plot .update ()
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ dependencies = [
31
31
]
32
32
33
33
[project .urls ]
34
+ Homepage = " https://github.com/stephane-caron/matplotlive"
34
35
Source = " https://github.com/stephane-caron/matplotlive"
35
36
Tracker = " https://github.com/stephane-caron/matplotlive/issues"
36
37
Changelog = " https://github.com/stephane-caron/matplotlive/blob/main/CHANGELOG.md"
You can’t perform that action at this time.
0 commit comments