In [1]:
using Plots
using Colors
gr()
Out[1]:
In [2]:
base03=parse(Colorant,"#002b36");
base02=parse(Colorant,"#073642");
base01=parse(Colorant,"#586e75");
base00=parse(Colorant,"#657b83");
base0=parse(Colorant,"#839496");
base1=parse(Colorant,"#839496");
base2=parse(Colorant,"#eee8d5");
base3=parse(Colorant,"#fdf6e3");
yellow=parse(Colorant,"#b58900");
orange=parse(Colorant,"#cb4b16");
red=parse(Colorant,"#dc322f");
magenta=parse(Colorant,"#d33682");
violet=parse(Colorant,"#6c71c4");
blue=parse(Colorant,"#268bd2");
cyan=parse(Colorant,"#3aa198");
green=parse(Colorant,"#859900");
display([base03, base02, base01,base00,base0,base1,base2,base3])
display([yellow,orange,red,magenta,violet,blue,cyan,magenta])
In [38]:
x=collect(0:.1:4π);
y1=sin.(x);
y2=cos.(x);
y3=sin.(2*x);
y4=cos.(2*x);
y5=sin.(x/2);
xp=rand(10);
yp=rand(10);
In [4]:
plot(x,y1,width=1)
plot!(x,y2,width=5)
plot!(x,y3,width=10)
Out[4]:
In [5]:
plot(x,y1,color=yellow)
plot!(x,y2,color=red)
plot!(x,y3,color=violet)
Out[5]:
In [37]:
plot(x,y1,width=10,linealpha=1)
plot!(x,y2,width=10,linealpha=.5)
plot!(x,y3,width=10,linealpha=.25)
Out[37]:
In [6]:
Plots.supported_styles()
Out[6]:
In [7]:
plot(x,y1,linetype=:path)
plot!(x,y2,linetype=:steppre)
plot!(x,y3,linetype=:steppost)
Out[7]:
In [8]:
plot(x,y4,linetype=:sticks)
plot!(x,y5,linetype=:scatter)
Out[8]:
In [9]:
#:solid,:dash,:dot,:dashdot,:dashdotdot
plot(x,y1,line=:solid)
plot!(x,y2,line=:dash)
plot!(x,y3,line=:dot)
Out[9]:
In [10]:
plot(x,y4,line=:dashdot)
plot!(x,y5,line=:dashdotdot)
Out[10]:
In [11]:
Plots.supported_markers()
Out[11]:
In [12]:
plot(x,y1,marker=:diamond)
plot!(x,y2,marker=:cross)
plot!(x,y3,marker=:star4)
Out[12]:
In [13]:
x=collect(1:5)
y_temp=ones(x)
plot()
for ii in 1:length(Plots.supported_markers())
plot!(x,ii*y_temp,marker=Plots.supported_markers()[ii])
end
plot!()
Out[13]:
In [40]:
custom_marker=[(-1,-1),
(-1,1),
(1,1),
(1,-1)]
scatter(xp,yp,marker=Shape(custom_marker))
Out[40]:
In [39]:
scatter(xp,yp,markershape=Shape(custom_marker),
markercolor=magenta,
markerstrokecolor=base03,
markerstrokewidth=5)
Out[39]:
In [44]:
scatter(x,y1,markeralpha=.25)
Out[44]:
:magma, :inferno, :plasma, :viridis
In [58]:
heatmap(z2d, seriescolor=:viridis)
Out[58]:
In [ ]: