From 33ea6e84871a332385537d68570886374b25cd7d Mon Sep 17 00:00:00 2001 From: Misha Mikhasenko Date: Thu, 7 Nov 2024 15:11:26 +0100 Subject: [PATCH] Note in README, and an image (#74) * add the theme files * typo in include * fix dict of Vect of pairs * README: image and a note * README.md: same size, uploading instructions * remove image --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 983a33a..72bea61 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Currently the following themes are available: - `:solarized_light` - `:wong` - `:wong2` +- `:boxed` - `:gruvbox_dark` - `:gruvbox_light` - `:bright` @@ -81,6 +82,9 @@ Themes can be previewed using `Plots.showtheme(thm::Symbol)`: ### `:wong2` ![theme_wong2](https://user-images.githubusercontent.com/16589944/70847880-eaecac80-1e69-11ea-9b59-cdf937427121.png) +### `:boxed` +![theme_boxed](https://github.com/user-attachments/assets/ed1baaf1-4679-4d9a-9667-3118dc42200e) + ### `:gruvbox_dark` ![theme_gruvbox_dark](https://user-images.githubusercontent.com/16589944/70847882-f049f700-1e69-11ea-94f8-255f2cd17288.png) @@ -116,3 +120,10 @@ PRs for new themes very welcome! Adding a new theme (e.g. `mytheme`) is as easy _themes[:mytheme] = PlotTheme(; kwargs...) ``` The keyword arguments can be any collection of Plots attributes plus a colorgradient keyword argument. +For adding the `showtheme` figure to `README.md`, use +```julia +Plots.showtheme(:your_theme) +plot!(dpi=400) +savefig("your_theme.png") +``` +The image can be uploaded to the `README.md` file by pulling it in with the file-editing web interface.