##// END OF EJS Templates
update ref rstfile
Matthias BUSSONNIER -
Show More
@@ -210,7 +210,7 b' In[3]:'
210 plt.fill_between(xint, 0, yint, facecolor='gray', alpha=0.4)
210 plt.fill_between(xint, 0, yint, facecolor='gray', alpha=0.4)
211 plt.text(0.5 * (a + b), 30,r"$\int_a^b f(x)dx$", horizontalalignment='center', fontsize=20);
211 plt.text(0.5 * (a + b), 30,r"$\int_a^b f(x)dx$", horizontalalignment='center', fontsize=20);
212
212
213 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_00.svg
213 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_00.svg
214
214
215 Compute the integral both at high accuracy and with the trapezoid
215 Compute the integral both at high accuracy and with the trapezoid
216 approximation
216 approximation
@@ -1328,7 +1328,7 b' In[60]:'
1328 plt.xlabel('x')
1328 plt.xlabel('x')
1329 plt.ylabel('y');
1329 plt.ylabel('y');
1330
1330
1331 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_01.svg
1331 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_01.svg
1332
1332
1333 You can control the style, color and other properties of the markers,
1333 You can control the style, color and other properties of the markers,
1334 for example:
1334 for example:
@@ -1339,7 +1339,7 b' In[61]:'
1339
1339
1340 plt.plot(x, y, linewidth=2);
1340 plt.plot(x, y, linewidth=2);
1341
1341
1342 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_02.svg
1342 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_02.svg
1343
1343
1344 In[62]:
1344 In[62]:
1345
1345
@@ -1347,7 +1347,7 b' In[62]:'
1347
1347
1348 plt.plot(x, y, 'o', markersize=5, color='r');
1348 plt.plot(x, y, 'o', markersize=5, color='r');
1349
1349
1350 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_03.svg
1350 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_03.svg
1351
1351
1352 We will now see how to create a few other common plot types, such as a
1352 We will now see how to create a few other common plot types, such as a
1353 simple error plot:
1353 simple error plot:
@@ -1369,7 +1369,7 b' In[63]:'
1369 plt.errorbar(x, y, xerr=0.2, yerr=0.4)
1369 plt.errorbar(x, y, xerr=0.2, yerr=0.4)
1370 plt.title("Simplest errorbars, 0.2 in x, 0.4 in y");
1370 plt.title("Simplest errorbars, 0.2 in x, 0.4 in y");
1371
1371
1372 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_04.svg
1372 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_04.svg
1373
1373
1374 A simple log plot
1374 A simple log plot
1375
1375
@@ -1381,7 +1381,7 b' In[64]:'
1381 y = np.exp(-x**2)
1381 y = np.exp(-x**2)
1382 plt.semilogy(x, y);
1382 plt.semilogy(x, y);
1383
1383
1384 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_05.svg
1384 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_05.svg
1385
1385
1386 A histogram annotated with text inside the plot, using the ``text``
1386 A histogram annotated with text inside the plot, using the ``text``
1387 function:
1387 function:
@@ -1404,7 +1404,7 b' In[65]:'
1404 plt.axis([40, 160, 0, 0.03])
1404 plt.axis([40, 160, 0, 0.03])
1405 plt.grid(True)
1405 plt.grid(True)
1406
1406
1407 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_06.svg
1407 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_06.svg
1408
1408
1409 Image display
1409 Image display
1410 -------------
1410 -------------
@@ -1419,7 +1419,7 b' In[66]:'
1419 from matplotlib import cm
1419 from matplotlib import cm
1420 plt.imshow(np.random.rand(5, 10), cmap=cm.gray, interpolation='nearest');
1420 plt.imshow(np.random.rand(5, 10), cmap=cm.gray, interpolation='nearest');
1421
1421
1422 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_07.svg
1422 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_07.svg
1423
1423
1424 A real photograph is a multichannel image, ``imshow`` interprets it
1424 A real photograph is a multichannel image, ``imshow`` interprets it
1425 correctly:
1425 correctly:
@@ -1437,7 +1437,7 b' In[67]:'
1437 Dimensions of the array img: (375, 500, 3)
1437 Dimensions of the array img: (375, 500, 3)
1438
1438
1439
1439
1440 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_08.svg
1440 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_08.svg
1441
1441
1442 Simple 3d plotting with matplotlib
1442 Simple 3d plotting with matplotlib
1443 ----------------------------------
1443 ----------------------------------
@@ -1479,7 +1479,7 b' In[72]:'
1479 linewidth=0, antialiased=False)
1479 linewidth=0, antialiased=False)
1480 ax.set_zlim3d(-1.01, 1.01);
1480 ax.set_zlim3d(-1.01, 1.01);
1481
1481
1482 .. image:: tests/ipynbref/IntroNumPy.orig_files/IntroNumPy.orig_fig_09.svg
1482 .. image:: tests/ipynbref/IntroNumPy_orig_files/IntroNumPy_orig_fig_09.svg
1483
1483
1484 IPython: a powerful interactive environment
1484 IPython: a powerful interactive environment
1485 ===========================================
1485 ===========================================
General Comments 0
You need to be logged in to leave comments. Login now