-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
making scatter plots with different shaped markers (issues) #1366
Comments
I'll get back to you about 3 and 5. |
For 5, try Guide.shapekey. |
thanks. I am passing around a theme:
but when I for example
to do as you say, it deletes all of the other settings in I can't seem to figure out how |
Gadfly.push_theme(hipster_theme)
plot(layer(x=rand(4), y=rand(4), Geom.point, shape=[Shape.cross]),
layer(x=rand(4), y=rand(4), Geom.point, shape=[Shape.star2]),
Guide.xlabel("Re"), Guide.ylabel("Im"),
Guide.shapekey(title="", labels=["zeros", "poles"]),
style(key_position=:none)
) Yes |
Here's an example of plot(layer(x=rand(4), y=rand(4), Geom.point, shape=["poles"]),
layer(x=rand(4), y=rand(4), Geom.point, shape=["zeros"]),
Scale.shape_discrete(levels=["zeros","poles"]),
Guide.xlabel("Re"), Guide.ylabel("Im"),
Guide.shapekey(title=""), style(point_shapes=[Shape.cross, Shape.star2])
)
|
issue 6When in layers, shape aesthetic levels don't auto-group in the same way as color aesthetic levels: pa = plot( Theme(point_size=6pt),
layer(x=rand(4), y=rand(4), color=["A level"]),
layer(x=rand(4), y=rand(4), color=["B level"]) )
pb = plot( Theme(point_size=6pt),
layer(x=rand(4), y=rand(4), shape=["A level"]),
layer(x=rand(4), y=rand(4), shape=["B level"]) )
hstack(pa, pb) |
issue 1
automatically includes a legend, which I don't want. this seems an odd default, and how can I remove the legend?
issue 2
this code results in no output
how can I make two layers with different symbols outside (without building a
DataFrame
)?issue 3
the markers in the key seem to be a different size than inside the plot. is it possible to make them the same size using
Theme.point_size
?issue 4
even in the
DataFrame
paradigm,how can I control which shapes are used, e.g. specify crosses and circles?
issue 5
is there a manual key (legend) I could make while specifying the shapes of the data? That way I could get rid of the title on the legend above, which is "z".
The text was updated successfully, but these errors were encountered: