[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
Tom I forked your github and now it's working ok only one window Le jeudi 16 juin 2016 09:22:12 UTC+2, Henri Girard a écrit : > > Hi, > When I make my plots I have two plots, but before I hadn't this... > w is the resoning frequency, but it should appear at 0 (zéro) not at > extrem ? > Any help,

[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
Thanks... I am very happy because with these graphs (Plots and PyPlot) I do better understand how it works and I have a lot from python to translate, but now I know it's faisable. I will try to clone your fork but I am not in hurry. I just wanted to be confirmed it wasn't a problem of config on

[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
Thanks to all, it's solved for the frequency resonance graphic(I change x and y value to 20,80 to put it in the center( I will look for doing it automatically). I will make a new one to get rid of all remarks I have done. But I have still problem with double graphic each time, I run it. using Pl

[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
Tom, I have double graph each time in jupyter, before I didn't have this problem with plots ? one is white without grid and the second on is right with black theme ? Any help about this ? Le jeudi 16 juin 2016 09:22:12 UTC+2, Henri Girard a écrit : > > Hi, > When I make my plots I have two plots

[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
Tom, Yes it works but that's not what I want ... I send you what I want but I have to modify it so it's not so picky ! Le jeudi 16 juin 2016 09:22:12 UTC+2, Henri G

[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
Yes I know, I don't mix both, but in julia I don't know how to do it ! With your explaination I am very near, but I have this very pick, I am trying to reduce it I guess it's the resistance which is to high ? : using Plots #pyplot(reuse=true) #plt=PyPlot R=1;L=1/pi*360E-2;C=1/(pi*360E+2);w=1/(sqr

Re: [julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Michele Zaffalon
Henri, you gave two examples with two different values of R: 40 in the first case and 1000 in the second. In the case with R=1000, the resonance is so damped that the peak at 1 / sqrt(LC) has disappeared, and the curve simply bends downwards. You should define your frequency correctly, like fr= 2

Re: [julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Tom Breloff
I just copy/pasted your code into IJulia and it seems to work: ​ Is the function wrong? I'm a little confused. On Thu, Jun 16, 2016 at 9:13 AM, Henri Girard wrote: > My new tentative (which is not working) > using Plots > R=1000;L=1/pi*360E-2;C=1/(pi*360E+2) > w=1/sqrt(L*C) > f=1/(2*pi*sqrt(L

[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
My new tentative (which is not working) using Plots R=1000;L=1/pi*360E-2;C=1/(pi*360E+2) w=1/sqrt(L*C) f=1/(2*pi*sqrt(L*C)) omega=linspace(-f,f) y=abs(1./(1+im.*omega.*R.*C-omega.*omega.*L.*C)); plot(omega,y,title="Fréquence de résonance", bg=RGB(.2,.2,.2),xlabel ="Hz",ylabel = "Ω") ---

Re: [julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Michele Zaffalon
2*pi*R*C does not have the same value as z*s. On Thu, Jun 16, 2016 at 10:36 AM, Henri Girard wrote: > Angular pulsation with pyplot works as whishes : > > using PyPlot > plt=PyPlot > R=40;L=1/pi*360E-2;C=1/(pi*360E+2);ω=1/(sqrt(L*C)) > fr=linspace(0,2ω) > y=abs(1./(1+im.*fr.*R.*C-fr.*fr.*L.*C));

[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
Angular pulsation with pyplot works as whishes : using PyPlot plt=PyPlot R=40;L=1/pi*360E-2;C=1/(pi*360E+2);ω=1/(sqrt(L*C)) fr=linspace(0,2ω) y=abs(1./(1+im.*fr.*R.*C-fr.*fr.*L.*C)); fig = figure("Angle") plt.plot(omega, y); plt.ylabel("z"); plt.xlabel("w"); ax = plt.gca() # get current axes ax[:s

[julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Henri Girard
Sorry I don't understand what you mean ? Could you show me what you are suggesting? Le jeudi 16 juin 2016 09:22:12 UTC+2, Henri Girard a écrit : > > Hi, > When I make my plots I have two plots, but before I hadn't this... > w is the resoning frequency, but it should appear at 0 (zéro) not at > ex