Skip to content

Commit

Permalink
Merge pull request #83 from AndyGreenwell/patch-1
Browse files Browse the repository at this point in the history
Update for support of IJulia
  • Loading branch information
tedsteiner committed Jul 14, 2016
2 parents 5850e18 + d7328c0 commit 9102e36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ function plotMap(nodes::@compat(Union{Dict{Int,LLA},Dict{Int,ENU}}) ;
else
height = isa(bounds, @compat(Void)) ? width : round(Int, width / aspectRatio(bounds))
end

# Create the figure
fignum = Winston.figure(name="OpenStreetMap Plot", width=width, height=height)

if Winston.output_surface != :none # Allow for plotting in IJulia/Jupyter to work
# Create the figure
fignum = Winston.figure(name="OpenStreetMap Plot", width=width, height=height)
end

if isa(bounds, @compat(Void))
p = Winston.FramedPlot("xlabel", xlab, "ylabel", ylab)
Expand Down

0 comments on commit 9102e36

Please sign in to comment.