Skip to content

Commit

Permalink
instead of legend --> false use label --> :none
Browse files Browse the repository at this point in the history
  • Loading branch information
rush42 authored and visr committed Jan 14, 2022
1 parent fec01a2 commit 2d60c43
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/plotrecipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,63 +69,63 @@ function shapecoords(geom::AbstractGeometry)
end

RecipesBase.@recipe function f(geom::AbstractPoint)
label --> :none
if plotattributes[:plot_object].n == 0
aspect_ratio --> 1
legend --> :false
end
seriestype --> :scatter
shapecoords(geom)
end

RecipesBase.@recipe function f(geom::AbstractMultiPoint)
label --> :none
if plotattributes[:plot_object].n == 0
aspect_ratio --> 1
legend --> :false
end
seriestype --> :scatter
shapecoords(geom)
end

RecipesBase.@recipe function f(geom::AbstractLineString)
label --> :none
if plotattributes[:plot_object].n == 0
aspect_ratio --> 1
legend --> :false
end
seriestype --> :path
shapecoords(geom)
end

RecipesBase.@recipe function f(geom::AbstractMultiLineString)
label --> :none
if plotattributes[:plot_object].n == 0
aspect_ratio --> 1
legend --> :false
end
seriestype --> :path
shapecoords(geom)
end

RecipesBase.@recipe function f(geom::AbstractPolygon)
label --> :none
if plotattributes[:plot_object].n == 0
aspect_ratio --> 1
legend --> :false
end
seriestype --> :shape
shapecoords(geom)
end

RecipesBase.@recipe function f(geom::AbstractMultiPolygon)
label --> :none
if plotattributes[:plot_object].n == 0
aspect_ratio --> 1
legend --> :false
end
seriestype --> :shape
shapecoords(geom)
end

RecipesBase.@recipe function f(geom::AbstractGeometry)
label --> :none
if plotattributes[:plot_object].n == 0
aspect_ratio --> 1
legend --> :false
end
gtype = geotype(geom)
if gtype == :Point || gtype == :MultiPoint
Expand All @@ -141,9 +141,9 @@ RecipesBase.@recipe function f(geom::AbstractGeometry)
end

RecipesBase.@recipe function f(geom::Vector{<:Union{Missing, AbstractGeometry}})
label --> :none
if plotattributes[:plot_object].n == 0
aspect_ratio --> 1
legend --> :false
end
for g in skipmissing(geom)
@series begin
Expand Down

0 comments on commit 2d60c43

Please sign in to comment.