diff --git a/README.md b/README.md index 08f62b97..6a18cd9d 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,9 @@ iris = dataset("datasets", "iris"); # 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]) + +# save a png (equivalent to png("gadfly1.png") and savefig("gadfly1.png")) +png("gadfly1") ``` ![gadfly_plt](img/gadfly1.png) diff --git a/docs/readme_template.md b/docs/readme_template.md index feb10aa1..634f3e50 100644 --- a/docs/readme_template.md +++ b/docs/readme_template.md @@ -63,6 +63,9 @@ iris = dataset("datasets", "iris"); # 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]) + +# save a png (equivalent to png("gadfly1.png") and savefig("gadfly1.png")) +png("gadfly1") ``` ![gadfly_plt](img/gadfly1.png)