Skip to content

Commit

Permalink
BUG: make sure marker_color is Cycler for built in Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon committed Nov 3, 2018
1 parent d8bd587 commit 8245a58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/styles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function fivethirtyeight_style()
titlefont_size=14)
colors = ["#008fd5", "#fc4f30", "#e5ae38", "#6d904f",
"#8b8b8b", "#810f7c"]
gta = attr(marker_color=colors)
gta = attr(marker_color=Cycler(colors))
Style(layout=layout, trace=ta, global_trace=gta)
end

Expand All @@ -171,7 +171,7 @@ function seaborn_style()
bgcolor="white", bordercolor="white"),
titlefont_size=14)
colors = ["#4C72B0", "#55A868", "#C44E52", "#8172B2", "#CCB974", "#64B5CD"]
gta = attr(marker_color=colors)
gta = attr(marker_color=Cycler(colors))
Style(trace=ta, layout=layout, global_trace=gta)
end

Expand Down Expand Up @@ -199,7 +199,7 @@ function gadfly_dark_style()
titlefont_size=14,
margin=attr(l=40, r=10, t=10, b=30))

gta = attr(marker_color=color_cycle)
gta = attr(marker_color=Cycler(color_cycle))
Style(layout=layout, global_trace=gta)
end

Expand Down Expand Up @@ -232,7 +232,7 @@ function tomorrow_night_eighties_style()
titlefont_size=14,
margin=attr(l=65, r=65, t=65, b=65))

gta = attr(marker_color=color_cycle)
gta = attr(marker_color=Cycler(color_cycle))
Style(layout=layout, global_trace=gta)
end

Expand Down

0 comments on commit 8245a58

Please sign in to comment.