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

Allow setting a background color for a gplot (included in PR #186) #178

Closed
wants to merge 11 commits into from

Conversation

hdavid16
Copy link
Contributor

@hdavid16 hdavid16 commented Jul 26, 2022

Fixes #172

-distinguish args, kwargs
-add missing kwargs
clarify that Cairo is required to visualize in vscode
Checking for System OS was outdated
-allow gplothtml to accept same arguments as gplot
-allow x/y-locs to be of different type (<: Real)
and minor changes to plots.jl
update README
@hdavid16 hdavid16 changed the title Allow setting a background color for a gplot (see #172) Allow setting a background color for a gplot Jul 26, 2022
@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #178 (074ce86) into master (52f4aae) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #178   +/-   ##
=======================================
  Coverage   32.92%   32.92%           
=======================================
  Files           9        9           
  Lines         565      565           
=======================================
  Hits          186      186           
  Misses        379      379           
Impacted Files Coverage Δ
src/plot.jl 62.63% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us.

README.md Outdated
@@ -183,6 +183,7 @@ gplot(h)
+ `arrowangleoffset` Angular width in radians for the arrows. Default: `π/9 (20 degrees)`
+ `linetype` Type of line used for edges ("straight", "curve"). Default: "straight"
+ `outangle` Angular width in radians for the edges (only used if `linetype = "curve`). Default: `π/5 (36 degrees)`
+ `backgroundc` Color for the plot background. Default: `nothing`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that for other params we alse use the c postfix, but maybe we should just call it background_color.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes! Should we think about changing the kwargs to being more verbose? nodefill_color, etc.

@simonschoelly
Copy link
Contributor

Would it be possible to add a test for the background color option?

@hdavid16
Copy link
Contributor Author

Would it be possible to add a test for the background color option?

I just added a fourth test in the karate test, where the background color is set to lightyellow

@hdavid16 hdavid16 mentioned this pull request Aug 5, 2022
@hdavid16 hdavid16 changed the title Allow setting a background color for a gplot Allow setting a background color for a gplot (included in PR #186) Aug 5, 2022
@hdavid16 hdavid16 closed this Aug 10, 2022
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.

Feature request: add background color
2 participants