Skip to content

Commit 4b64eda

Browse files
committed
generalize plot recipes
1 parent 9a9f2c4 commit 4b64eda

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/plotrecipes.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
function aspect_ratio(g::OSMGraph)
1+
function aspect_ratio(g::AbstractOSMGraph)
22
max_y, min_y = extrema(first, g.node_coordinates)
33
mid_y = (max_y + min_y)/2
44
return 1/cos(mid_y * pi/180)
55
end
6-
aspect_ratio(sg::SimplifiedOSMGraph) = aspect_ratio(sg.parent)
7-
86

97
RecipesBase.@recipe function f(g::AbstractOSMGraph)
108
color --> :black

0 commit comments

Comments
 (0)