Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'matplotlib'

1863132 - Random colormap for matplotlib: python matplotlib colormap basemap
  1. import matplotlib,numpy
  2. import pylab
  3. # A random colormap for matplotlib
  4. cmap = matplotlib.colors.ListedColormap ( numpy.random.rand ( 256,3))
  5. pylab.imshow ( Z, cmap = cmap)
  6. pylab.show()
1511403 - Random colormaps with matplotlib: python matplotlib scipy pylab colormaps
  1. import matplotlib,numpy
  2. import pylab
  3.  
  4. #Generate some example data... From http://matplotlib.sourceforge.net/examples/pylab_examples/contourf_demo.html
  5. delta = 0.025
  6. x = numpy.arange(-3.0, 3.0, delta)
  7. y = numpy.arange(-2.0, 2.0, delta)
  8. X, Y = numpy.meshgrid(x, y)
  9.  
worth-right