Skip to content

Commit

Permalink
Merge pull request #9 from WIAS-PDELib/feature/concrete-region-numbers
Browse files Browse the repository at this point in the history
Use concrete number of grid regions
  • Loading branch information
j-fu authored Nov 23, 2024
2 parents 4187910 + 757ce18 commit d4f67f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GridVisualizeTools"
uuid = "5573ae12-3b76-41d9-b48c-81d0b6e61cc5"
authors = ["Jürgen Fuhrmann <juergen-fuhrmann@web.de>"]
version = "1.1.1"
version = "2.0.0"

[deps]
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"
Expand Down
12 changes: 4 additions & 8 deletions src/colors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ RGB{Float64}(0.85, 0.6, 0.6)
"""
function region_cmap(n)
ColorSchemes.distinguishable_colors(max(5, n),
[Colors.RGB{Float64}(0.85, 0.6, 0.6),
Colors.RGB{Float64}(0.6, 0.85, 0.6),
Colors.RGB{Float64}(0.6, 0.6, 0.85)];
ColorSchemes.distinguishable_colors(n,
[Colors.RGB(0.85, 0.6, 0.6), Colors.RGB(0.6, 0.85, 0.6), Colors.RGB(0.6, 0.6, 0.85)];
lchoices = range(70; stop = 80, length = 5),
cchoices = range(25; stop = 65, length = 15),
hchoices = range(20; stop = 360, length = 15))
Expand All @@ -40,10 +38,8 @@ RGB{Float64}(1.0, 0.0, 0.0)
"""
function bregion_cmap(n)
ColorSchemes.distinguishable_colors(max(5, n),
[Colors.RGB{Float64}(1.0, 0.0, 0.0),
Colors.RGB{Float64}(0.0, 1.0, 0.0),
Colors.RGB{Float64}(0.0, 0.0, 1.0)];
ColorSchemes.distinguishable_colors(n,
[Colors.RGB(1.0, 0.0, 0.0), Colors.RGB(0.0, 1.0, 0.0), Colors.RGB(0.0, 0.0, 1.0)];
lchoices = range(50; stop = 75, length = 10),
cchoices = range(75; stop = 100, length = 10),
hchoices = range(20; stop = 360, length = 30))
Expand Down

4 comments on commit d4f67f6

@j-fu
Copy link
Member Author

@j-fu j-fu commented on d4f67f6 Nov 23, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/120054

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.0.0 -m "<description of version>" d4f67f6210edb4106d075a02066b2a1c5d2d2634
git push origin v2.0.0

@j-fu
Copy link
Member Author

@j-fu j-fu commented on d4f67f6 Nov 24, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Error while trying to register: Version 2.0.0 already exists

Please sign in to comment.