diff --git a/docs/winston_examples.md b/docs/winston_examples.md index 4b5bd22e..85079ec8 100644 --- a/docs/winston_examples.md +++ b/docs/winston_examples.md @@ -1,8 +1,8 @@ # Examples for backend: winston -- Supported arguments: `args`, `axis`, `color`, `kwargs`, `label`, `legend`, `linestyle`, `linetype`, `marker`, `markersize`, `nbins`, `reg`, `size`, `title`, `width`, `windowtitle`, `xlabel`, `ylabel`, `yrightlabel` +- Supported arguments: `args`, `axis`, `color`, `foreground_color`, `group`, `kwargs`, `label`, `legend`, `linestyle`, `linetype`, `marker`, `markersize`, `nbins`, `reg`, `ribbon`, `show`, `size`, `title`, `width`, `windowtitle`, `xlabel`, `xticks`, `ylabel`, `yrightlabel`, `yticks` - Supported values for axis: `:auto`, `:left` -- Supported values for linetype: `:none`, `:line`, `:sticks`, `:scatter`, `:hist`, `:bar` +- Supported values for linetype: `:none`, `:line`, `:path`, `:sticks`, `:scatter`, `:hist`, `:bar` - Supported values for linestyle: `:solid`, `:dash`, `:dot`, `:dashdot` - Supported values for marker: `:none`, `:ellipse`, `:rect`, `:diamond`, `:utriangle`, `:dtriangle`, `:cross`, `:xcross`, `:star1` - Is `subplot`/`subplot!` supported? No @@ -19,7 +19,7 @@ winston!() A simple line plot of the 3 columns. ```julia -plot(rand(100,3)) +plot(rand(50,5),w=3) ``` ![](../img/winston/winston_example_1.png) @@ -51,7 +51,7 @@ Or make a parametric plot (i.e. plot: (fx(u), fy(u))) with plot(fx, fy, umin, um ```julia plot(sin,(x->begin # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 33: sin(2x) - end),0,2π,legend=false) + end),0,2π,legend=false,fillto=0) ``` ![](../img/winston/winston_example_4.png) @@ -61,7 +61,7 @@ plot(sin,(x->begin # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, li Change the guides/background without a separate call. ```julia -plot(rand(10); title="TITLE",xlabel="XLABEL",ylabel="YLABEL",background_color=RGB(0.5,0.5,0.5)) +plot(rand(10); title="TITLE",xlabel="XLABEL",ylabel="YLABEL",background_color=RGB(0.2,0.2,0.2)) ``` ![](../img/winston/winston_example_5.png) @@ -73,7 +73,7 @@ Use the `axis` or `axiss` arguments. Note: Currently only supported with Qwt and PyPlot ```julia -plot(Vector[randn(100),randn(100) * 100]; axiss=[:left,:right],ylabel="LEFT",yrightlabel="RIGHT") +plot(Vector[randn(100),randn(100) * 100]; axis=[:l,:r],ylabel="LEFT",yrightlabel="RIGHT") ``` ![](../img/winston/winston_example_6.png) @@ -103,7 +103,7 @@ plot(rand(100) / 3; reg=true,fillto=0) and add to it later. ```julia -scatter!(rand(100); markersize=6,color=:blue) +scatter!(rand(100); markersize=6,c=:blue) ``` ![](../img/winston/winston_example_9.png) @@ -113,11 +113,11 @@ scatter!(rand(100); markersize=6,color=:blue) ```julia -types = intersect(supportedTypes(),[:line,:step,:stepinverted,:sticks,:scatter]) +types = intersect(supportedTypes(),[:line,:path,:steppre,:steppost,:sticks,:scatter]) n = length(types) x = Vector[sort(rand(20)) for i = 1:n] y = rand(20,n) -plot(x,y; linetypes=types,labels=map(string,types)) +plot(x,y; t=types,lab=map(string,types)) ``` ![](../img/winston/winston_example_11.png) @@ -128,7 +128,7 @@ plot(x,y; linetypes=types,labels=map(string,types)) ```julia styles = setdiff(supportedStyles(),[:auto]) -plot(rand(20,length(styles)); linestyle=:auto,labels=map(string,styles)) +plot(cumsum(randn(20,length(styles)),1); style=:auto,label=map(string,styles),w=5) ``` ![](../img/winston/winston_example_12.png) @@ -139,7 +139,7 @@ plot(rand(20,length(styles)); linestyle=:auto,labels=map(string,styles)) ```julia markers = setdiff(supportedMarkers(),[:none,:auto]) -scatter(0.5:9.5,[fill(i - 0.5,10) for i = length(markers):-1:1]; marker=:auto,labels=map(string,markers),markersize=10) +scatter(0.5:9.5,[fill(i - 0.5,10) for i = length(markers):-1:1]; marker=:auto,label=map(string,markers),markersize=10) ``` ![](../img/winston/winston_example_13.png) @@ -156,10 +156,10 @@ bar(randn(1000)) ### Histogram -note: fillto isn't supported on all backends + ```julia -histogram(randn(1000); nbins=50,fillto=20) +histogram(randn(1000); nbins=50) ``` ![](../img/winston/winston_example_15.png) diff --git a/img/winston/winston_example_1.png b/img/winston/winston_example_1.png index d5fa409e..b2fc313f 100644 Binary files a/img/winston/winston_example_1.png and b/img/winston/winston_example_1.png differ diff --git a/img/winston/winston_example_11.png b/img/winston/winston_example_11.png index 1be9caae..f1b80d23 100644 Binary files a/img/winston/winston_example_11.png and b/img/winston/winston_example_11.png differ diff --git a/img/winston/winston_example_12.png b/img/winston/winston_example_12.png index de348cbf..039997a2 100644 Binary files a/img/winston/winston_example_12.png and b/img/winston/winston_example_12.png differ diff --git a/img/winston/winston_example_13.png b/img/winston/winston_example_13.png index e2abddad..d5ada60a 100644 Binary files a/img/winston/winston_example_13.png and b/img/winston/winston_example_13.png differ diff --git a/img/winston/winston_example_14.png b/img/winston/winston_example_14.png index 78890831..bb4bc9a9 100644 Binary files a/img/winston/winston_example_14.png and b/img/winston/winston_example_14.png differ diff --git a/img/winston/winston_example_15.png b/img/winston/winston_example_15.png index fd0d6046..61072f7a 100644 Binary files a/img/winston/winston_example_15.png and b/img/winston/winston_example_15.png differ diff --git a/img/winston/winston_example_2.png b/img/winston/winston_example_2.png index a1b85587..e039367b 100644 Binary files a/img/winston/winston_example_2.png and b/img/winston/winston_example_2.png differ diff --git a/img/winston/winston_example_3.png b/img/winston/winston_example_3.png index bab4213c..d088f844 100644 Binary files a/img/winston/winston_example_3.png and b/img/winston/winston_example_3.png differ diff --git a/img/winston/winston_example_4.png b/img/winston/winston_example_4.png index c14366b0..bec12644 100644 Binary files a/img/winston/winston_example_4.png and b/img/winston/winston_example_4.png differ diff --git a/img/winston/winston_example_5.png b/img/winston/winston_example_5.png index 52f731fa..debe69a9 100644 Binary files a/img/winston/winston_example_5.png and b/img/winston/winston_example_5.png differ diff --git a/img/winston/winston_example_6.png b/img/winston/winston_example_6.png index 029517a5..05f1b60c 100644 Binary files a/img/winston/winston_example_6.png and b/img/winston/winston_example_6.png differ diff --git a/img/winston/winston_example_7.png b/img/winston/winston_example_7.png index ce5808d5..cc01cb4e 100644 Binary files a/img/winston/winston_example_7.png and b/img/winston/winston_example_7.png differ diff --git a/img/winston/winston_example_8.png b/img/winston/winston_example_8.png index 2a56eb6a..a59694fe 100644 Binary files a/img/winston/winston_example_8.png and b/img/winston/winston_example_8.png differ diff --git a/img/winston/winston_example_9.png b/img/winston/winston_example_9.png index 29dc586f..34751cc4 100644 Binary files a/img/winston/winston_example_9.png and b/img/winston/winston_example_9.png differ