Skip to content

Commit d0a97ec

Browse files
committed
ex 9 description: match linewidth in the explanation with given code.
1 parent 2d4e353 commit d0a97ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.html

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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}$',

0 commit comments

Comments
 (0)