JuliaGraphs / GraphPlot.jl

Graph visualization for Julia.
http://JuliaGraphs.github.io/GraphPlot.jl/
Other
201 stars 62 forks source link

support changing plot size (included in PR #186) #182

Closed hdavid16 closed 2 years ago

hdavid16 commented 2 years ago

Fix #94 #147 #161

plot size can be controlled with keyword argument plot_size (added to docstring and README). plot_size is either nothing (default), or a tuple of Measures (width, height)

uses Compose.set_default_graphic_size as suggested by @simonschoelly in #94

Also, plot margins can be controlled with padding kwargs.

codecov[bot] commented 2 years ago

Codecov Report

Merging #182 (68cbd0a) into master (52f4aae) will increase coverage by 0.24%. The diff coverage is 53.19%.

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
+ Coverage   32.92%   33.16%   +0.24%     
==========================================
  Files           9        8       -1     
  Lines         565      591      +26     
==========================================
+ Hits          186      196      +10     
- Misses        379      395      +16     
Impacted Files Coverage Δ
src/layout.jl 48.42% <16.66%> (ø)
src/lines.jl 51.87% <50.00%> (-0.36%) :arrow_down:
src/plot.jl 60.22% <81.81%> (-2.42%) :arrow_down:
src/GraphPlot.jl

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.