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

Commit

Permalink
fix JuliaPlots/Makie#617
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jun 2, 2020
1 parent f8bcfd1 commit a060273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/basic_recipes/basic_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ function plot!(plot::Mesh{<: Tuple{<: AbstractVector{P}}}) where P <: AbstractMe
else
to_color.(colors)
end
empty!(real_colors[])

# Map one single color per mesh to each vertex
for (mesh, color) in zip(meshes, single_colors)
append!(real_colors[], Iterators.repeated(RGBAf0(color), length(coordinates(mesh))))
Expand Down Expand Up @@ -1263,7 +1265,7 @@ function plot!(plot::Histogram)
return bins
end
end

points = lift(edges, plot.relative) do edges, relative
range = last(edges) - first(edges)

Expand Down
2 changes: 0 additions & 2 deletions src/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ function convert_arguments(
(m,)
end



function convert_arguments(P::PlotFunc, r::AbstractVector, f::Function)
ptype = plottype(P, Lines)
to_plotspec(ptype, convert_arguments(ptype, r, f.(r)))
Expand Down

0 comments on commit a060273

Please sign in to comment.