Skip to content

Commit

Permalink
missed one index variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rdboyes committed Mar 23, 2024
1 parent 27560af commit 26f1a7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/addplots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ function get_options(geom_list)
end

function Base.:+(x::GGPlot, y...)::GGPlot
theme = [i for i in y if t isa Attributes]
theme = [i for i in y if i isa Attributes]

if length(theme) == 0
theme = Makie.theme_ggplot2()
theme = Makie.theme_ggplot2() # default is to look like a ggplot
else
theme = theme[end]
theme = theme[end] # use only the last specified theme
end

result = GGPlot(
Expand Down

0 comments on commit 26f1a7f

Please sign in to comment.