Skip to content

Commit 7101ca7

Browse files
authored
Merge pull request rougier#3 from zormit/typo-corrections
Typo corrections
2 parents 5078cc5 + 2e87370 commit 7101ca7

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -318,15 +318,15 @@ <h2>Annotate some points</h2>
318318
...
319319

320320
t = 2*np.pi/3
321-
plt.plot([t,t],[0,np.cos(t)], color ='blue', linewidth=2.5, linestyle=&quot;--&quot;)
321+
plt.plot([t,t],[0,np.cos(t)], color ='blue', linewidth=1.5, linestyle=&quot;--&quot;)
322322
plt.scatter([t,],[np.cos(t),], 50, color ='blue')
323323

324324
plt.annotate(r'$\sin(\frac{2\pi}{3})=\frac{\sqrt{3}}{2}$',
325325
xy=(t, np.sin(t)), xycoords='data',
326326
xytext=(+10, +30), textcoords='offset points', fontsize=16,
327327
arrowprops=dict(arrowstyle=&quot;-&gt;&quot;, connectionstyle=&quot;arc3,rad=.2&quot;))
328328

329-
plt.plot([t,t],[0,np.sin(t)], color ='red', linewidth=2.5, linestyle=&quot;--&quot;)
329+
plt.plot([t,t],[0,np.sin(t)], color ='red', linewidth=1.5, linestyle=&quot;--&quot;)
330330
plt.scatter([t,],[np.sin(t),], 50, color ='red')
331331

332332
plt.annotate(r'$\cos(\frac{2\pi}{3})=-\frac{1}{2}$',

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,15 +336,15 @@ the annotate command to display some text with an arrow.
336336
...
337337

338338
t = 2*np.pi/3
339-
plt.plot([t,t],[0,np.cos(t)], color ='blue', linewidth=2.5, linestyle="--")
339+
plt.plot([t,t],[0,np.cos(t)], color ='blue', linewidth=1.5, linestyle="--")
340340
plt.scatter([t,],[np.cos(t),], 50, color ='blue')
341341

342342
plt.annotate(r'$\sin(\frac{2\pi}{3})=\frac{\sqrt{3}}{2}$',
343343
xy=(t, np.sin(t)), xycoords='data',
344344
xytext=(+10, +30), textcoords='offset points', fontsize=16,
345345
arrowprops=dict(arrowstyle="->", connectionstyle="arc3,rad=.2"))
346346

347-
plt.plot([t,t],[0,np.sin(t)], color ='red', linewidth=2.5, linestyle="--")
347+
plt.plot([t,t],[0,np.sin(t)], color ='red', linewidth=1.5, linestyle="--")
348348
plt.scatter([t,],[np.sin(t),], 50, color ='red')
349349

350350
plt.annotate(r'$\cos(\frac{2\pi}{3})=-\frac{1}{2}$',

figures/axes-2.png

2.43 KB
Loading

scripts/axes-2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
axes([0.1,0.1,.5,.5])
44
xticks([]), yticks([])
5-
text(0.1,0.1, 'axes([0.1,0.1,.8,.8])',ha='left',va='center',size=16,alpha=.5)
5+
text(0.1,0.1, 'axes([0.1,0.1,.5,.5])',ha='left',va='center',size=16,alpha=.5)
66

77
axes([0.2,0.2,.5,.5])
88
xticks([]), yticks([])

scripts/exercice_9.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@
3232
plt.plot([t,t],[0,np.cos(t)],
3333
color ='blue', linewidth=1.5, linestyle="--")
3434
plt.scatter([t,],[np.cos(t),], 50, color ='blue')
35-
plt.annotate(r'$\sin(\frac{2\pi}{3})=\frac{\sqrt{3}}{2}$',
36-
xy=(t, np.sin(t)), xycoords='data',
37-
xytext=(+10, +30), textcoords='offset points', fontsize=16,
35+
plt.annotate(r'$\cos(\frac{2\pi}{3})=-\frac{1}{2}$',
36+
xy=(t, np.cos(t)), xycoords='data',
37+
xytext=(-90, -50), textcoords='offset points', fontsize=16,
3838
arrowprops=dict(arrowstyle="->", connectionstyle="arc3,rad=.2"))
3939

4040
plt.plot([t,t],[0,np.sin(t)],
4141
color ='red', linewidth=1.5, linestyle="--")
4242
plt.scatter([t,],[np.sin(t),], 50, color ='red')
43-
plt.annotate(r'$\cos(\frac{2\pi}{3})=-\frac{1}{2}$',
44-
xy=(t, np.cos(t)), xycoords='data',
45-
xytext=(-90, -50), textcoords='offset points', fontsize=16,
43+
plt.annotate(r'$\sin(\frac{2\pi}{3})=\frac{\sqrt{3}}{2}$',
44+
xy=(t, np.sin(t)), xycoords='data',
45+
xytext=(+10, +30), textcoords='offset points', fontsize=16,
4646
arrowprops=dict(arrowstyle="->", connectionstyle="arc3,rad=.2"))
4747

4848
plt.legend(loc='upper left', frameon=False)

0 commit comments

Comments
 (0)