Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 15 commits into from

Conversation

hdavid16
Copy link
Contributor

@hdavid16 hdavid16 commented Jul 28, 2022

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
Copy link

codecov bot commented Jul 28, 2022

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%) ⬇️
src/plot.jl 60.22% <81.81%> (-2.42%) ⬇️
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.

-Allow add title
-Set title color and size
-Set font family for entire plot
-Remove unneded Compose objects (the ones with `nothing` as the arg)
behavior is regardless of the linetype
-relevant for plots with curved self-loops and long node labels
@hdavid16 hdavid16 changed the title support changing plot size (fixes #94, #147) support changing plot size Aug 2, 2022
@hdavid16 hdavid16 mentioned this pull request Aug 5, 2022
@hdavid16 hdavid16 changed the title support changing plot size support changing plot size (included in PR #186) Aug 5, 2022
@hdavid16 hdavid16 closed this Aug 10, 2022
@hdavid16 hdavid16 deleted the set_size branch February 10, 2023 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How can I control the output plot size in Juno's Plots pane?
1 participant