Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Use data labels for axis labels by default #108

Open
sethaxen opened this issue Mar 6, 2020 · 1 comment
Open

Use data labels for axis labels by default #108

sethaxen opened this issue Mar 6, 2020 · 1 comment
Labels

Comments

@sethaxen
Copy link
Member

sethaxen commented Mar 6, 2020

When using Data and passing property names, it would be convenient if StatsMakie defaulted to using those property names for the corresponding axis labels if the user has not already set the axis labels. Here's an example:

using Makie, StatsMakie, RDatasets
mtcars = RDatasets.dataset("datasets", "mtcars")
p = violin(Data(mtcars), :VS, :MPG)

What we get:
test1

What I would like to get:
test2

@piever
Copy link
Member

piever commented Mar 6, 2020

This is definitely planned functionality. The problem right now is that StatsMakie is mostly implemented with the convert_arguments functionality that converts arguments into list of plot types, with converted arguments and new attributes. The problem is that the axis labels belong to scene[Axis] so are not readily acceptable here. We should probably discuss at VizCon what is the correct implementation.

@piever piever added the vizcon label Mar 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants