In [1]:
using Plots
using Colors
gr()


Out[1]:
Plots.GRBackend()

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]:
0.0 2.5 5.0 7.5 10.0 12.5 -0.5 0.0 0.5 1.0 y1 y2 y3

In [5]:
plot(x,y1,color=yellow)
plot!(x,y2,color=red)
plot!(x,y3,color=violet)


Out[5]:
0.0 2.5 5.0 7.5 10.0 12.5 -0.5 0.0 0.5 1.0 y1 y2 y3

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]:
0.0 2.5 5.0 7.5 10.0 12.5 -0.5 0.0 0.5 1.0 y1 y2 y3

In [6]:
Plots.supported_styles()


Out[6]:
6-element Array{Symbol,1}:
 :auto      
 :solid     
 :dash      
 :dot       
 :dashdot   
 :dashdotdot

In [7]:
plot(x,y1,linetype=:path)
plot!(x,y2,linetype=:steppre)
plot!(x,y3,linetype=:steppost)


Out[7]:
0.0 2.5 5.0 7.5 10.0 12.5 -0.5 0.0 0.5 1.0 y1 y2 y3

In [8]:
plot(x,y4,linetype=:sticks)
plot!(x,y5,linetype=:scatter)


Out[8]:
0 5 10 -1 0 1 y1 y2

In [9]:
#:solid,:dash,:dot,:dashdot,:dashdotdot
plot(x,y1,line=:solid)
plot!(x,y2,line=:dash)
plot!(x,y3,line=:dot)


Out[9]:
0.0 2.5 5.0 7.5 10.0 12.5 -0.5 0.0 0.5 1.0 y1 y2 y3

In [10]:
plot(x,y4,line=:dashdot)
plot!(x,y5,line=:dashdotdot)


Out[10]:
0.0 2.5 5.0 7.5 10.0 12.5 -0.5 0.0 0.5 1.0 y1 y2

In [11]:
Plots.supported_markers()


Out[11]:
24-element Array{Symbol,1}:
 :none     
 :auto     
 :circle   
 :rect     
 :star5    
 :diamond  
 :hexagon  
 :cross    
 :xcross   
 :utriangle
 :dtriangle
 :rtriangle
 :ltriangle
 :pentagon 
 :heptagon 
 :octagon  
 :star4    
 :star6    
 :star7    
 :star8    
 :vline    
 :hline    
 :+        
 :x        

In [12]:
plot(x,y1,marker=:diamond)
plot!(x,y2,marker=:cross)
plot!(x,y3,marker=:star4)


Out[12]:
0 5 10 -1 0 1 y1 y2 y3

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]:
1 2 3 4 5 5 10 15 20 y1 y2 y3 y4 y5 y6 y7 y8 y9 y10 y11 y12 y13 y14 y15 y16 y17 y18 y19 y20 y21 y22 y23 y24

In [40]:
custom_marker=[(-1,-1),
        (-1,1),
        (1,1),
        (1,-1)]        
scatter(xp,yp,marker=Shape(custom_marker))


Out[40]:
0.25 0.50 0.75 0.0 0.5 y1

In [39]:
scatter(xp,yp,markershape=Shape(custom_marker),
        markercolor=magenta,
        markerstrokecolor=base03,
        markerstrokewidth=5)


Out[39]:
0.25 0.50 0.75 0.0 0.5 y1

In [44]:
scatter(x,y1,markeralpha=.25)


Out[44]:
0 5 10 -1 0 1 y1

:magma, :inferno, :plasma, :viridis


In [58]:
heatmap(z2d, seriescolor=:viridis)


Out[58]:
50 100 50 100 - 1.00 - 0.75 - 0.50 - 0.25 0 0.25 0.50 0.75 1.00

In [ ]: