-
Notifications
You must be signed in to change notification settings - Fork 62
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
Conversation
-distinguish args, kwargs -add missing kwargs
clarify that Cairo is required to visualize in vscode
Checking for System OS was outdated
Now matches gadfly.jl (https://github.com/GiovineItalia/Gadfly.jl/blob/master/src/open_file.jl)
-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
Codecov Report
@@ Coverage Diff @@
## master #178 +/- ##
=======================================
Coverage 32.92% 32.92%
=======================================
Files 9 9
Lines 565 565
=======================================
Hits 186 186
Misses 379 379
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` |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
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 |
Fixes #172