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
chapter4 [2014-06-09 07:59]
yoko_nagai [Save a graph as PNG file (Original data from book)]
chapter4 [2014-06-09 08:00] (current)
yoko_nagai [Save a graph as PNG file]
Line 242: Line 242:
   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('​myfig1.png')
   ​   ​
 {{:​myfig.png?​nolink&​500|}} {{:​myfig.png?​nolink&​500|}}
chapter4.txt · Last modified: 2014-06-09 08:00 by yoko_nagai