-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1411 from Mattriks/guide_shapekey
Guide.shapekey updates
- Loading branch information
Showing
5 changed files
with
59 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# Shapes | ||
|
||
## [`Shape.square`](@ref) | ||
## [`Shape.square`](@ref) and friends | ||
|
||
```@example | ||
using Gadfly, RDatasets | ||
set_default_plot_size(14cm, 8cm) | ||
plot(dataset("HistData","DrinksWages"), | ||
x="Wage", y="Drinks", shape=[Shape.square], | ||
Geom.point, Scale.y_log10) | ||
set_default_plot_size(21cm, 8cm) | ||
p1 = plot(dataset("HistData","DrinksWages"), x="Wage", y="Drinks", | ||
shape=[Shape.square], Scale.y_log10) | ||
aww, mws = dataset("MASS", "Animals"), dataset("quantreg", "Mammals") | ||
p2 = plot( layer(aww, x=:Body, y=:Brain, shape=["Brain weight"]), | ||
layer(mws, x=:Weight, y=:Speed, shape=["Run speed"]), | ||
Scale.x_log10, Scale.y_log10, Guide.xlabel("Body weight"), | ||
Guide.ylabel("Brain weight and Run speed"), | ||
Theme(point_shapes=[Shape.circle, Shape.star1], alphas=[0.0], | ||
discrete_highlight_color=identity) ) | ||
hstack(p1, p2) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters