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

Effect plot does not display the Y-axis name #86

Closed
Reulguen opened this issue Dec 12, 2024 · 2 comments
Closed

Effect plot does not display the Y-axis name #86

Reulguen opened this issue Dec 12, 2024 · 2 comments

Comments

@Reulguen
Copy link

Reulguen commented Dec 12, 2024

Hi,

I created a plot as in this example:

plt = data(refgrid) * mapping(:age, :weight; color=:sex) *
      (visual(Lines) + mapping(; lower=:lower, upper=:upper) * visual(LinesFill))
draw(plt)

Mine looks as following:

plt1 =  data(eff_interac) * mapping(:number => "number", :uV => "fitted mean amplitude";  color = :condition, col=:ROI) * 
  (visual(Lines) + visual(Scatter) + mapping(;lower=:lower, upper=:upper) * visual(LinesFill))
draw(plt1)

When I add + mapping(; lower=:lower, upper=:upper) * visual(LinesFill), the Y-axis name "fitted mean amplitude" is not displayed in the plot. Do you have a solution?

Thank you!

@palday
Copy link
Member

palday commented Dec 12, 2024

This is more of an issue with AlgebraOfGraphics than Effects...but I believe you could specify the axis to draw into or pass appropriate keyword arguments, e.g.

draw(plt1; axis=(;ylabel="fitted mean amplitude")

@Reulguen
Copy link
Author

Great! This solved it, thank you.

@palday palday closed this as completed Dec 13, 2024
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