Skip to content
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

How to apply the pair syntax? #310

Closed
bardo84 opened this issue Dec 13, 2021 · 1 comment
Closed

How to apply the pair syntax? #310

bardo84 opened this issue Dec 13, 2021 · 1 comment

Comments

@bardo84
Copy link

bardo84 commented Dec 13, 2021

Re https://discourse.julialang.org/t/algebraofgraphics-question/72982

To name axes or legends in this format you would use the pair syntax, that is x => "x" , y => "y" , grp => "group" .

How to apply the pair syntax?
data(df) * mapping(:bill_length_mm => (t -> t / 10) => "bill length (cm)")
appears again for the other data(df) form. (How can I understand this syntax though?)
I tried some possible places.
VSCode flags where the syntax is obviously wrong, other locations give run-time errors.
I searched but could not find code with => in the tutorial or gallery examples.

@jkrumbiegel
Copy link
Member

Closing as outdated, there are many places with pair syntax in the docs now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants