Thanks, I am doing yin-yang but have problems to color,
I want it red and grey :
using Plots
function h(x)
if x<0
return sqrt(-x^2-2*x)
else
return -sqrt(-x^2+2*x)
end
end;
x=linspace(-2,2)
t=linspace(-pi/3,pi/3)
f(x) = sqrt(4-x^2)
g(x) = -sqrt(4-x^2);
d=plot(h, -2,2,aspect_ratio=1)
a=plot(h,fill=g, -2,2,aspect_ratio=1)
b=plot(h,fill=f, -2,2,aspect_ratio=1)
plot([h,g,f], -2,2,aspect_ratio=1)
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
>