Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

errors = 0.5*np.random.normal(size=len(yn))

Save numpy arrays

Code Block

    np.savetxt(fname, array) # , fmt='%f')
    np.save(fname, array)
    np.savez(fname, [array1, array2,...])

Save image in TIFF file

Code Block
bgColor#DDFFFF
import scipy.misc as scim
    scim.imsave('fname.tiff', arr2d)

Other supported formats: gif, pdf, png, jpeg, eps

Read image from TIFF file

...