Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3540dff + 81005ee commit 1787fb1Copy full SHA for 1787fb1
1 file changed
examples/pylab_examples/legend_demo2.py
@@ -13,7 +13,7 @@
13
l2, l3 = plt.plot(t2, np.sin(2 * np.pi * t2), '--go', t1, np.log(1 + t1), '.')
14
l4, = plt.plot(t2, np.exp(-t2) * np.sin(2 * np.pi * t2), 'rs-.')
15
16
-plt.legend( (l2, l4), ('oscillatory', 'damped'), 'upper right', shadow=True)
+plt.legend( (l2, l4), ('oscillatory', 'damped'), loc='upper right', shadow=True)
17
plt.xlabel('time')
18
plt.ylabel('volts')
19
plt.title('Damped oscillation')
0 commit comments