User Tools

Site Tools


chapter4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
chapter4 [2014-06-09 07:56]
yoko_nagai [Output graph to PNG file (Original data from book)]
chapter4 [2014-06-09 07:59]
yoko_nagai [Save a graph as PNG file (Original data from book)]
Line 255: Line 255:
   plt.imshow(z,​ cmap=plt.cm.gray);​ plt.colorbar()   plt.imshow(z,​ cmap=plt.cm.gray);​ plt.colorbar()
   plt.title("​Image plot of $\sqrt{x^2 + y^2}$ for a grid of values"​)   plt.title("​Image plot of $\sqrt{x^2 + y^2}$ for a grid of values"​)
-  plt.savefig('​myfig.png')+  plt.savefig('​myfig2.png')
   ​   ​
 {{:​myfig2.png?​nolink500|}} {{:​myfig2.png?​nolink500|}}
chapter4.txt · Last modified: 2014-06-09 08:00 by yoko_nagai