Skip to content

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

Closed
hdavid16 wants to merge 11 commits into
JuliaGraphs:masterfrom
hdavid16:master
Closed

Allow setting a background color for a gplot (included in PR #186)#178
hdavid16 wants to merge 11 commits into
JuliaGraphs:masterfrom
hdavid16:master

Conversation

@hdavid16

@hdavid16hdavid16 commented Jul 26, 2022

Copy link
Copy Markdown
Contributor

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
@hdavid16hdavid16 changed the title Allow setting a background color for a gplot (see #172)Allow setting a background color for a gplotJul 26, 2022
@codecov

codecovBot commented Jul 26, 2022

Copy link
Copy Markdown

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 FilesCoverage Δ
src/plot.jl62.63% <100.00%> (ø)

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

Comment threadREADME.md Outdated
+ `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
Copy Markdown
Member

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
Copy Markdown
ContributorAuthor

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
Copy Markdown
Member

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

@hdavid16

Copy link
Copy Markdown
ContributorAuthor

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

@hdavid16hdavid16 mentioned this pull request Aug 5, 2022
@hdavid16hdavid16 changed the title Allow setting a background color for a gplotAllow setting a background color for a gplot (included in PR #186)Aug 5, 2022
Sign up for freeto 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

@hdavid16@simonschoelly