Well... It's here I got your examples :
https://github.com/tbreloff/ExamplePlots.jl/blob/master/notebooks/apply_recipe.ipynb
I just wanted to try it...
My next aim is to use ODE with plots to do my portrait phase and RLC from
pyplot to Plots --------------------------------------pyplot---------
w0=1/sqrt(L*C)
Q=sqrt(L/C)/R
tau=2*Q/w0
E=6;
function rlc(y,t)
return([y[2],-w0^2*y[1]-(w0/Q)*y[2]])
end;
y0=[E,0];
listet=linspace(0,5*tau,1000)
liste_u_uprime=integrate.odeint(rlc,y0,listet)
listeu=liste_u_uprime[:,1]
listeuprime=liste_u_uprime[:,2];
plt.clf()
plt.plot(listet,listeu,label="U(t)")
plt.title("RLC")
plt.xlabel("t (s)")
plt.ylabel("U(v)")
plt.grid()
plt.legend(loc=4);
--------------------------------------
plt.clf()
plt.plot(listeu,listeuprime,label="U\'=fct(U)")
plt.xlabel("U (V)")
plt.ylabel("U' (V/s)")
plt.title("Portrait de phase RLC regime libre")
plt.grid()
plt.legend(loc=4);
-------------------------------------
this with ODE in Plots
I thaught it would be easy but I was wrong !
Plots has nicer environment than pyplot (I like your dark one with black
background I can't make it with pyplot
Le vendredi 24 juin 2016 17:37:15 UTC+2, Tom Breloff a écrit :
>
> I just uploaded the IJulia notebook which was my JuliaCon workshop:
> https://github.com/tbreloff/ExamplePlots.jl/blob/master/notebooks/plotswithplots.ipynb
> .
>
> You'll need to be on master or dev to follow along until I tag 0.7.3. The
> documentation is getting more and more complete, so I recommend giving it a
> quick read if you're curious about Plots:
> http://plots.readthedocs.io/en/latest/
>
> -Tom
>