• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

JuliaPlots/PlotThemes.jl: Themes for the Julia plotting package Plots.jl

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

JuliaPlots/PlotThemes.jl

开源软件地址:

https://github.com/JuliaPlots/PlotThemes.jl

开源编程语言:

Julia 100.0%

开源软件介绍:

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
  • :orange
  • :sand
  • :solarized
  • :solarized_light
  • :wong
  • :wong2
  • :gruvbox_dark
  • :gruvbox_light
  • :bright
  • :vibrant
  • :mute
  • :dao
  • :dracula

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

:dao

theme_dao

:dracula

theme_dracula

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
oscar-system/Singular.jl: Julia package for the Singular library发布时间:2022-07-09
下一篇:
shashi/Patchwork.jl: Virtual DOM for Julia发布时间:2022-07-09
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap