The double display should be fixed if/when a PyPlot PR is merged:
https://github.com/stevengj/PyPlot.jl/pull/223

...But I think Steven's been busy. In the meantime you could clone my fork
and checkout my 'tb_dispfix' branch.

On Thursday, June 16, 2016, Henri Girard <henri.gir...@gmail.com> wrote:

> 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 Plots
> #pyplot(reuse=true)
> #plt=PyPlot
> R=40;L=1/pi*360E-2;C=1/(pi*360E+2);w=1/(sqrt(L*C))
> f=1/(2.*pi*sqrt(L*C))
> #omega=2*pi*f
> fr=linspace(20,80,100)
> y= abs(1 ./ (1+im*2*pi*fr*R*C-(2*pi*fr).^2*L*C))
> #using Plots
> #y=abs(1./(1+im.*fr.*R.*C-fr.*fr.*L.*C));
> plot(fr,y,title="Resonance frequency",
> bg=RGB(.2,.2,.2),xlabel ="Hz",ylabel = "Ω")
>
> Le jeudi 16 juin 2016 17:09:33 UTC+2, Henri Girard a écrit :
>>
>> 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, but before I hadn't this...
>>> w is the resoning frequency, but it should appear at 0 (zéro) not at
>>> extrem ?
>>> Any help, I already ask for help with pyplot, this link :
>>> https://groups.google.com/forum/#!topic/julia-users/EJSvutfdEus, which
>>> works fine for angular pulsation, but I want frequency resonance with Plots
>>> because I guess I can make more beautifull graphic (anyway I don't know
>>> well PyPlot or Plots). I succeeded once with pyplot but after an error I
>>> couldn't find it back !
>>> Bad luck :)
>>> Kind regards
>>> HG
>>>
>>> using Plots
>>> pyplot(reuse=true)
>>> z=10;u=0.02;s=0.02;w=1/(2*pi*sqrt(u*s))
>>> f=linspace(-30,30)
>>> y=abs(1./(1+im.*f.*z.*s-f.*f.*u.*s));
>>> #fig = figure("Angle")
>>> plot(f, y)
>>>
>>

Reply via email to