This commit is contained in:
Thomas Breloff 2015-10-07 18:18:44 -04:00
parent 894a4a5567
commit 29471a7aac
3 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ using RDatasets
iris = dataset("datasets", "iris"); iris = dataset("datasets", "iris");
# This will bring up a browser window with the plot. Add a semicolon at the end to skip display. # This will bring up a browser window with the plot. Add a semicolon at the end to skip display.
scatter(iris, :SepalLength, :SepalWidth, group=:Species, ms=12, m=[:+,:d,:s]) scatter(iris, :SepalLength, :SepalWidth, group=:Species, m=([:+ :d :s], 12))
# save a png (equivalent to png("gadfly1.png") and savefig("gadfly1.png")) # save a png (equivalent to png("gadfly1.png") and savefig("gadfly1.png"))
png("gadfly1") png("gadfly1")

View File

@ -64,7 +64,7 @@ using RDatasets
iris = dataset("datasets", "iris"); iris = dataset("datasets", "iris");
# This will bring up a browser window with the plot. Add a semicolon at the end to skip display. # This will bring up a browser window with the plot. Add a semicolon at the end to skip display.
scatter(iris, :SepalLength, :SepalWidth, group=:Species, ms=12, m=[:+,:d,:s]) scatter(iris, :SepalLength, :SepalWidth, group=:Species, m=([:+ :d :s], 12))
# save a png (equivalent to png("gadfly1.png") and savefig("gadfly1.png")) # save a png (equivalent to png("gadfly1.png") and savefig("gadfly1.png"))
png("gadfly1") png("gadfly1")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 77 KiB