Skip to content

Commit

Permalink
improve CSS for catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion committed Oct 29, 2024
1 parent 323e274 commit 431c3c3
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 25 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
# Changelog

## [v3.27.0] - forthcoming
## [v3.28.0] -

### Added
### Changed
### Removed
### Deprecated

###################################################################

## [v3.27.0] - 2024-10-22

### Added

- resample
- add flare and crest to seaborn.jl (#134) (thanks @sebastiantk)

### Changed

- missing colors in discrete scientific colorschemes (#131) (thanks @kdyrhage)

### Removed

Expand Down
4 changes: 3 additions & 1 deletion docs/src/assets/colorschemes-docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ html.theme--documenter-dark .modal-card-head {

.schemename {
font-family: "JuliaMono";
font-size: 0.7em;
margin-top: 1em;
}

/*
Expand Down Expand Up @@ -150,7 +152,7 @@ html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input.is-
width: 500px;
background-color: black;
color: #fff;
text-align: center;
text-align: left;
border-radius: 5px;
padding: 5px 0;
transition: opacity 1s ease-in-out;
Expand Down
50 changes: 27 additions & 23 deletions docs/src/catalogue.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ function generate_scheme_svg(schemename;

# fill the template
schemetemplate = """
<span class="hovertext" data-hover=
"category: $(colorschemes[schemename].category),
notes: $(colorschemes[schemename].notes)">
<div class="schemename">:$(schemename)</div>
</span>
<div class="schemename"><h2>$(schemename)

<span class="hovertext" data-hover=
"name: $(schemename),
length: $(length(colorschemes[schemename])),
category: $(colorschemes[schemename].category), notes: $(colorschemes[schemename].notes).">※</span>

</h2>
<div class="swatch">$(swatch)</div>
</div>
"""
return schemetemplate
end
Expand Down Expand Up @@ -96,7 +100,7 @@ At the REPL you can search for colorschemes by name:
findcolorscheme("julia")
```

## cmocean
# cmocean

From "Beautiful colormaps for oceanography": [cmocean](https://matplotlib.org/cmocean/)

Expand All @@ -105,7 +109,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("cmocean") # hide
```

## scientific
# scientific

From [Scientific colormaps](http://www.fabiocrameri.ch/colourmaps.php)

Expand All @@ -114,7 +118,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("scientific") # hide
```

## matplotlib
# matplotlib

From [matplot](https://matplotlib.org)

Expand All @@ -123,7 +127,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("matplotlib") # hide
```

## colorbrewer
# colorbrewer

From [ColorBrewer](http://colorbrewer2.org/)

Expand All @@ -132,7 +136,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("colorbrewer") # hide
```

## gnuplot
# gnuplot

From [GNUPlot](http://www.gnuplot.info)

Expand All @@ -141,7 +145,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("gnuplot") # hide
```

## colorcet
# colorcet

From ["collection of perceptually accurate colormaps"](https://colorcet.holoviz.org)

Expand All @@ -150,7 +154,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("colorcet") # hide
```

## Seaborn
# Seaborn

From ["colorschemes used by Seaborn, a Python data visualization library based on matplotlib."](http://seaborn.pydata.org/tutorial/color_palettes.html)

Expand All @@ -159,7 +163,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("seaborn") # hide
```

## ggthemes/tableau
# ggthemes/tableau

From ["ggthemes tableau palettes"](https://github.com/jrnold/ggthemes)

Expand All @@ -168,7 +172,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("tableau") # hide
```

## Color-Vision Deficient-friendly schemes
# Color-Vision Deficient-friendly schemes

Colorschemes designed with color-vision deficient users in mind, by authors such as Paul Tol, Masataka Okabe, Kei Ito, and Martin Krzywinski. This list also includes schemes with "cvd" in the Notes field.

Expand All @@ -178,7 +182,7 @@ ColorSchemeCategory("cvd") # hide
ColorSchemeGroup("cvd") # hide
```

## Flags
# Flags

Colors extracted from flags of different countries and regions, downloaded from
[Flagpedia](https://flagpedia.net). Intended to represent these regions in
Expand All @@ -191,7 +195,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("flags") # hide
```

## MetBrewer
# MetBrewer

Palettes inspired by works at the Metropolitan Museum of Art
in New York. See [Blake Mills' github
Expand All @@ -202,7 +206,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("MetBrewer") # hide
```

## Pacific North West
# Pacific North West

The colors of Washington State and the Pacific Northwest of the USA. See [Jake Lawlor's github
repository](https://github.com/jakelawlor/PNWColors).
Expand All @@ -212,7 +216,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("PNW Pacific North West") # hide
```

## Wes Anderson
# Wes Anderson

Palettes derived from the films of Wes Anderson. See [Karthik's github
repository](https://github.com/karthik/wesanderson).
Expand All @@ -222,7 +226,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("Wes Anderson") # hide
```

## Ghibli
# Ghibli

Palettes derived from the films of Studio Ghibli. See [Ewenme's github
repository](https://github.com/ewenme/ghibli).
Expand All @@ -232,7 +236,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("Ghibli") # hide
```

## + Feathers
# + Feathers
Palattes derived from the plumage of Australian birds. See [Shandiya's github
repository](https://github.com/shandiya/feathers).

Expand All @@ -241,7 +245,7 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("Feathers") # hide
```

## general and miscellaneous
# general and miscellaneous

```@example catalog
using Luxor, ColorSchemes # hide
Expand All @@ -258,14 +262,14 @@ using Luxor, ColorSchemes # hide
ColorSchemeCategory("kindlmann") # hide
```

## Julia logo colorschemes
# Julia logo colorschemes

```@example catalog
using Luxor, ColorSchemes # hide
ColorSchemeCategory("julia") # hide
```

## Pride colorschemes
# Pride colorschemes

```@example catalog
using Luxor, ColorSchemes # hide
Expand Down

0 comments on commit 431c3c3

Please sign in to comment.