python - Error ImportError: No module named 'np_plots' -
i have next code in python
import np_plots npp import matplotlib.pyplot plt import numpy np import math m import scipy scipy.integrate import odeint def plotlimitcycle(bval): rhs = lambda x, t: [-x[0]+x[1]*x[0]**2, bval - x[1]*x[0]**2] xeq, yeq = bval, 1.0/bval cyclerad = m.sqrt(1-bval) nbh = min(cyclerad, 0.05) ic = [xeq-nbh/5.0, yeq-nbh/5.0] time_span = np.linspace(0,400,40000) fig = plt.figure() solution = odeint(rhs, ic, time_span) x, y = zip(*solution) plt.plot(x, y) axes = plt.gca() axxmin, axxmax = axes.get_xlim() axymin, axymax = axes.get_ylim() xmin = max(-15, axxmin) xmax = min(15, axxmax) ymin = max(-15, axymin) ymax = min(15, axymax) x,y,u,v = npp.ezdomainquiver2d([[xmin, xmax],[ymin, ymax]],[25,25],lambda x: rhs(x, 0),normalize=true) plt.quiver(x,y,u,v) plt.scatter([xeq],[yeq], color='red') plt.xlim([xmin, xmax]) plt.ylim([ymin, ymax]) plt.axes().set_aspect('equal', 'datalim') plt.show()
it work pretty on friend computer because showed me plots can't make run in mine, i'm using python 3.5.0cr1 shell run out came te next error:
**traceback (most recent call last): file "c:\users\pankepünke\desktop\limites.py", line 1, in <module> import np_plots npp importerror: no module named 'np_plots'**
i'm totally new in python programming , friend made program me in order make advances in thesis want continue working program , plots this. not know how install or kind of procceddure should follow in order want (the plots , graphics program make) so... i'll thankful if can me in not advance way, because how wrote i'm totally new in python, installed , all.
you friend had lib called np_plots
on computer, not part of standard lib need install/get on comp or code not run. friend wrote code cannot see mention of lib anywhere have them.
apart friends lib, scipy
, numpy
not in standard library, come distributions canopy if installed regular version of python need install also.
might worth checking out pip de-facto standard package manager python.
Comments
Post a Comment