Merge pull request #1269 from daschw/tests

use new StatPlots df syntax in testexamples
This commit is contained in:
Daniel Schwabeneder 2017-11-30 11:16:10 +01:00 committed by GitHub
commit 7f3780a20d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ PlotExample("DataFrames",
[:(begin [:(begin
import RDatasets import RDatasets
iris = RDatasets.dataset("datasets", "iris") iris = RDatasets.dataset("datasets", "iris")
scatter(iris, :SepalLength, :SepalWidth, group=:Species, @df iris scatter(:SepalLength, :SepalWidth, group=:Species,
title = "My awesome plot", xlabel = "Length", ylabel = "Width", title = "My awesome plot", xlabel = "Length", ylabel = "Width",
marker = (0.5, [:cross :hex :star7], 12), bg=RGB(.2,.2,.2)) marker = (0.5, [:cross :hex :star7], 12), bg=RGB(.2,.2,.2))
end)] end)]
@ -301,8 +301,8 @@ PlotExample("Boxplot and Violin series recipes",
[:(begin [:(begin
import RDatasets import RDatasets
singers = RDatasets.dataset("lattice", "singer") singers = RDatasets.dataset("lattice", "singer")
violin(singers, :VoicePart, :Height, line = 0, fill = (0.2, :blue)) @df singers violin(:VoicePart, :Height, line = 0, fill = (0.2, :blue))
boxplot!(singers, :VoicePart, :Height, line = (2,:black), fill = (0.3, :orange)) @df singers boxplot!(:VoicePart, :Height, line = (2,:black), fill = (0.3, :orange))
end)] end)]
), ),