Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
"Fix" Viridis example
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Nov 8, 2019
1 parent 2cc5929 commit 3169601
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/.gitignore
Expand Up @@ -17,4 +17,4 @@ tmax
prec
Manifest.toml

!src/assets/logo.png
!src/assets/*
Binary file added docs/src/assets/viridis.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/src/colors.md
Expand Up @@ -13,7 +13,7 @@ Any color symbol supported by Color.jl is supported, check out their page on [na

Colormaps are mappings of values to colors. You can supply the coloring values using the `color` keyword argument, and the colormap will automatically be adjusted to fit those values. THe default colormap is `viridis`, which looks like this:

@example_database("Viridis color scheme", plot)
![Viridis colormap](assets/viridis.png)

You can copy this code and substitute `cmap` with any `Colormap` to show the colormap.

Expand Down
6 changes: 4 additions & 2 deletions examples/examples2d.jl
Expand Up @@ -597,7 +597,9 @@ end
0..10, # x range
0..1, # y range
hcat(c, c), # reshape this to a matrix for the colors
show_axis = false # don't show axes
show_axis = false, # don't show axes
scale_plot = false, # maintain aspect ratio,
resolution = (1000, 200)
)

end
Expand Down Expand Up @@ -678,7 +680,7 @@ end
f(x) = f(x, P)
streamplot(f, -1.5..1.5, -1.5..1.5, colormap = :magma)
end

@cell "Categorical heatmap" [heatmap, categorical, string] begin
x = ["a", "b", "c"]
y = ["α", "β", "γ"]
Expand Down

0 comments on commit 3169601

Please sign in to comment.