Changeset 736


Ignore:
Timestamp:
07/30/14 15:59:17 (22 months ago)
Author:
mmckerns
Message:

fix: imports from scemtools; initial commit of generic contour plotter

Location:
mystic
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • mystic/examples/mpl_corana.py

    r713 r736  
    2929    pylab.plot(xx,yy,'r-',xx,yy,'ko',linewidth=2) 
    3030 
    31 pylab.title("Solution trajectories for scipy's fmin at different ICs") 
     31pylab.title("Solution trajectories for fmin at different initial conditions") 
    3232pylab.show() 
    3333 
  • mystic/examples/test_twistedgaussian.py

    r726 r736  
    2525 
    2626from mystic.scemtools import * 
    27  
     27from numpy import zeros, identity, array 
     28from numpy import random 
    2829 
    2930# dimension of density function 
     
    5152 
    5253def proposal(X): 
    53     return multivariate_normal(X, 10. * identity(n)) 
     54    return random.multivariate_normal(X, 10. * identity(n)) 
    5455 
    5556def initpop(npts, ndim): 
    56     from numpy import random 
    5757    return random.rand(npts, ndim) * 200. -1 
    5858 
Note: See TracChangeset for help on using the changeset viewer.