Giter Site home page Giter Site logo

plotthemes.jl's Introduction

PlotThemes

Build Status

Primary author: Patrick Kofod Mogensen (@pkofod)

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

Pkg.add("PlotThemes")

Using PlotThemes

Currently the following themes are available:

  • :default
  • :dark
  • :ggplot2
  • :juno
  • :lime
  • :onedark
  • :orange
  • :sand
  • :solarized
  • :solarized_light
  • :wong
  • :wong2
  • :gruvbox_dark
  • :gruvbox_light
  • :bright
  • :vibrant
  • :mute

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

using Plots
theme(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

:gruvbox_dark

theme_gruvbox_dark

:gruvbox_light

theme_gruvbox_light

:bright

theme_bright

:vibrant

theme_vibrant

:mute

theme_mute

Contributing

A theme specifies default values for different Plots attributes. At the moment these are typically colors, palettes and colorgradients, 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:

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

The keyword arguments can be any collection of Plots attributes plus a colorgradient keyword argument.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.