JuliaPlots/PlotThemes.jl

Name: PlotThemes.jl

Owner: JuliaPlots

Description: Themes for the Julia plotting package Plots.jl

Created: 2016-05-04 17:54:28.0

Updated: 2018-05-18 16:10:28.0

Pushed: 2018-03-01 18:58:00.0

Homepage:

Size: 41

Language: Julia

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

PlotThemes

Build Status

Primary author: Patrick Kofod Mogensen (@pkofod)

PlotThemes is a package to spice up the plots made with Plots.jl. To install:

add("PlotThemes")
Using PlotThemes

Currently the following themes are available:

When using Plots, a theme can be set using the theme function:

g Plots
e(thm::Symbol; kwargs...)

theme accepts any Plots attribute as keyword argument and sets its value as default for subsequent plots.

Themes can be previewed using Plots.showtheme(thm::Symbol):

:default

theme_default

:dark

theme_dark

:ggplot2

theme_ggplot2

:juno

theme_juno

:lime

theme_lime

:orange

theme_orange

:sand

theme_sand

:solarized

theme_solarized

:solarized_light

theme_solarized_light

:wong

theme_wong

:wong2

theme_wong2

Contributing

A theme specifies default values for different Plots attributes. At the moment these are typically colors, palettes and gradients, but any Plots attribute can be controlled by a theme in general. PRs for new themes very welcome! Adding a new theme (e.g. mytheme) is as easy as adding a new file (mytheme.jl) that contains at least the following line:

mes[:mytheme] = PlotTheme(; kwargs...)

The keyword arguments can be any collection of Plots attributes.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.