Skip to content

Commit

Permalink
fix #3266, Cycled not working without explicit axis
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 4, 2023
1 parent bae821a commit 2b1e9d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/figureplotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ function plot(P::PlotFunc, args...; axis = NamedTuple(), figure = NamedTuple(),
ax = axtype(fig; axis...)
else
proxyscene = Scene()
attrs = Attributes(kw_attributes)
delete!(attrs, :show_axis)
delete!(attrs, :limits)
plot!(proxyscene, P, attrs, args...)
# We dont forward the attributes to the plot, since we only need the arguments to determine the axis type
plot!(proxyscene, P, Attributes(), args...)
if is2d(proxyscene)
ax = Axis(fig; axis...)
else
Expand Down
1 change: 0 additions & 1 deletion src/makielayout/blocks/axis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ function Makie.plot!(

_disallow_keyword(:axis, allattrs)
_disallow_keyword(:figure, allattrs)

cycle = get_cycle_for_plottype(allattrs, P)
add_cycle_attributes!(allattrs, P, cycle, la.cycler, la.palette)

Expand Down

0 comments on commit 2b1e9d0

Please sign in to comment.