arg defaults
This commit is contained in:
parent
c89e9c5f73
commit
b75db9e473
141
src/args.jl
141
src/args.jl
@ -116,95 +116,96 @@ const _allScales = [:identity, :ln, :log2, :log10, :asinh, :sqrt]
|
||||
const _series_defaults = KW()
|
||||
|
||||
# series-specific
|
||||
_series_defaults[:axis] = :left
|
||||
_series_defaults[:label] = "AUTO"
|
||||
_series_defaults[:seriescolor] = :auto
|
||||
_series_defaults[:seriesalpha] = nothing
|
||||
_series_defaults[:axis] = :left
|
||||
_series_defaults[:label] = "AUTO"
|
||||
_series_defaults[:seriescolor] = :auto
|
||||
_series_defaults[:seriesalpha] = nothing
|
||||
_series_defaults[:seriestype] = :path
|
||||
_series_defaults[:linestyle] = :solid
|
||||
_series_defaults[:linewidth] = :auto
|
||||
_series_defaults[:linecolor] = :match
|
||||
_series_defaults[:linealpha] = nothing
|
||||
_series_defaults[:fillrange] = nothing # ribbons, areas, etc
|
||||
_series_defaults[:fillcolor] = :match
|
||||
_series_defaults[:fillalpha] = nothing
|
||||
_series_defaults[:markershape] = :none
|
||||
_series_defaults[:markercolor] = :match
|
||||
_series_defaults[:markeralpha] = nothing
|
||||
_series_defaults[:markersize] = 6
|
||||
_series_defaults[:linestyle] = :solid
|
||||
_series_defaults[:linewidth] = :auto
|
||||
_series_defaults[:linecolor] = :match
|
||||
_series_defaults[:linealpha] = nothing
|
||||
_series_defaults[:fillrange] = nothing # ribbons, areas, etc
|
||||
_series_defaults[:fillcolor] = :match
|
||||
_series_defaults[:fillalpha] = nothing
|
||||
_series_defaults[:markershape] = :none
|
||||
_series_defaults[:markercolor] = :match
|
||||
_series_defaults[:markeralpha] = nothing
|
||||
_series_defaults[:markersize] = 6
|
||||
_series_defaults[:markerstrokestyle] = :solid
|
||||
_series_defaults[:markerstrokewidth] = 1
|
||||
_series_defaults[:markerstrokecolor] = :match
|
||||
_series_defaults[:markerstrokealpha] = nothing
|
||||
_series_defaults[:bins] = 30 # number of bins for hists
|
||||
_series_defaults[:smooth] = false # regression line?
|
||||
_series_defaults[:group] = nothing # groupby vector
|
||||
_series_defaults[:x] = nothing
|
||||
_series_defaults[:y] = nothing
|
||||
_series_defaults[:z] = nothing # depth for contour, surface, etc
|
||||
_series_defaults[:marker_z] = nothing # value for color scale
|
||||
_series_defaults[:levels] = 15
|
||||
_series_defaults[:orientation] = :vertical
|
||||
_series_defaults[:bar_position] = :overlay # for bar plots and histograms: could also be stack (stack up) or dodge (side by side)
|
||||
_series_defaults[:xerror] = nothing
|
||||
_series_defaults[:yerror] = nothing
|
||||
_series_defaults[:ribbon] = nothing
|
||||
_series_defaults[:quiver] = nothing
|
||||
_series_defaults[:arrow] = nothing # allows for adding arrows to line/path... call `arrow(args...)`
|
||||
_series_defaults[:normalize] = false # do we want a normalized histogram?
|
||||
_series_defaults[:weights] = nothing # optional weights for histograms (1D and 2D)
|
||||
_series_defaults[:contours] = false # add contours to 3d surface and wireframe plots
|
||||
_series_defaults[:match_dimensions] = false # do rows match x (true) or y (false) for heatmap/image/spy? see issue 196
|
||||
# this ONLY effects whether or not the z-matrix is transposed for a heatmap display!
|
||||
_series_defaults[:subplot] = :auto # which subplot(s) does this series belong to?
|
||||
_series_defaults[:bins] = 30 # number of bins for hists
|
||||
_series_defaults[:smooth] = false # regression line?
|
||||
_series_defaults[:group] = nothing # groupby vector
|
||||
_series_defaults[:x] = nothing
|
||||
_series_defaults[:y] = nothing
|
||||
_series_defaults[:z] = nothing # depth for contour, surface, etc
|
||||
_series_defaults[:marker_z] = nothing # value for color scale
|
||||
_series_defaults[:levels] = 15
|
||||
_series_defaults[:orientation] = :vertical
|
||||
_series_defaults[:bar_position] = :overlay # for bar plots and histograms: could also be stack (stack up) or dodge (side by side)
|
||||
_series_defaults[:xerror] = nothing
|
||||
_series_defaults[:yerror] = nothing
|
||||
_series_defaults[:ribbon] = nothing
|
||||
_series_defaults[:quiver] = nothing
|
||||
_series_defaults[:arrow] = nothing # allows for adding arrows to line/path... call `arrow(args...)`
|
||||
_series_defaults[:normalize] = false # do we want a normalized histogram?
|
||||
_series_defaults[:weights] = nothing # optional weights for histograms (1D and 2D)
|
||||
_series_defaults[:contours] = false # add contours to 3d surface and wireframe plots
|
||||
_series_defaults[:match_dimensions] = false # do rows match x (true) or y (false) for heatmap/image/spy? see issue 196
|
||||
# this ONLY effects whether or not the z-matrix is transposed for a heatmap display!
|
||||
_series_defaults[:subplot] = :auto # which subplot(s) does this series belong to?
|
||||
|
||||
|
||||
const _plot_defaults = KW()
|
||||
|
||||
_plot_defaults[:title] = ""
|
||||
_plot_defaults[:legend] = :best
|
||||
_plot_defaults[:colorbar] = :legend
|
||||
_plot_defaults[:title] = ""
|
||||
_plot_defaults[:legend] = :best
|
||||
_plot_defaults[:colorbar] = :legend
|
||||
_plot_defaults[:background_color] = colorant"white" # default for all backgrounds
|
||||
_plot_defaults[:background_color_outside] = :match # background outside grid
|
||||
_plot_defaults[:foreground_color] = :auto # default for all foregrounds
|
||||
_plot_defaults[:size] = (600,400)
|
||||
_plot_defaults[:pos] = (0,0)
|
||||
_plot_defaults[:windowtitle] = "Plots.jl"
|
||||
_plot_defaults[:show] = false
|
||||
_plot_defaults[:layout] = :auto
|
||||
_plot_defaults[:num_subplots] = -1
|
||||
_plot_defaults[:num_rows] = -1
|
||||
_plot_defaults[:num_cols] = -1
|
||||
_plot_defaults[:color_palette] = :auto
|
||||
_plot_defaults[:link] = false
|
||||
_plot_defaults[:linkx] = false
|
||||
_plot_defaults[:linky] = false
|
||||
_plot_defaults[:linkfunc] = nothing
|
||||
_plot_defaults[:overwrite_figure] = false
|
||||
_plot_defaults[:foreground_color] = :auto # default for all foregrounds, and title color
|
||||
_plot_defaults[:size] = (600,400)
|
||||
_plot_defaults[:pos] = (0,0)
|
||||
_plot_defaults[:windowtitle] = "Plots.jl"
|
||||
_plot_defaults[:show] = false
|
||||
_plot_defaults[:layout] = :auto
|
||||
_plot_defaults[:num_subplots] = -1
|
||||
_plot_defaults[:num_rows] = -1
|
||||
_plot_defaults[:num_cols] = -1
|
||||
_plot_defaults[:color_palette] = :auto
|
||||
_plot_defaults[:link] = false
|
||||
_plot_defaults[:linkx] = false
|
||||
_plot_defaults[:linky] = false
|
||||
_plot_defaults[:linkfunc] = nothing
|
||||
_plot_defaults[:overwrite_figure] = false
|
||||
|
||||
|
||||
const _subplot_defaults = KW()
|
||||
|
||||
_subplot_defaults[:title] = ""
|
||||
_subplot_defaults[:background_color_legend] = :match # background of legend
|
||||
_subplot_defaults[:background_color_inside] = :match # background inside grid
|
||||
_subplot_defaults[:foreground_color_legend] = :match # foreground of legend
|
||||
_subplot_defaults[:foreground_color_grid] = :match # grid color
|
||||
_subplot_defaults[:legendfont] = font(8)
|
||||
_subplot_defaults[:grid] = true
|
||||
_subplot_defaults[:annotation] = nothing # annotation tuple(s)... (x,y,annotation)
|
||||
_subplot_defaults[:polar] = false
|
||||
_subplot_defaults[:aspect_ratio] = :none # choose from :none or :equal
|
||||
_subplot_defaults[:title] = ""
|
||||
_subplot_defaults[:background_color_subplot] = :match # default for other bg colors... match takes plot default
|
||||
_subplot_defaults[:background_color_legend] = :match # background of legend
|
||||
_subplot_defaults[:background_color_inside] = :match # background inside grid
|
||||
_subplot_defaults[:foreground_color_subplot] = :match # default for other fg colors... match takes plot default
|
||||
_subplot_defaults[:foreground_color_legend] = :match # foreground of legend
|
||||
_subplot_defaults[:foreground_color_grid] = :match # grid color
|
||||
_subplot_defaults[:legendfont] = font(8)
|
||||
_subplot_defaults[:grid] = true
|
||||
_subplot_defaults[:annotation] = nothing # annotation tuple(s)... (x,y,annotation)
|
||||
_subplot_defaults[:polar] = false
|
||||
_subplot_defaults[:aspect_ratio] = :none # choose from :none or :equal
|
||||
|
||||
const _axis_defaults = KW()
|
||||
|
||||
_axis_defaults[:label] = :auto
|
||||
_axis_defaults[:xlims] = :auto
|
||||
_axis_defaults[:xticks] = :auto
|
||||
_axis_defaults[:xscale] = :identity
|
||||
_axis_defaults[:xrotation] = 0
|
||||
_axis_defaults[:xflip] = false
|
||||
# _axis_defaults[:axis] = :auto
|
||||
_axis_defaults[:lims] = :auto
|
||||
_axis_defaults[:ticks] = :auto
|
||||
_axis_defaults[:scale] = :identity
|
||||
_axis_defaults[:rotation] = 0
|
||||
_axis_defaults[:flip] = false
|
||||
_axis_defaults[:tickfont] = font(8)
|
||||
_axis_defaults[:guidefont] = font(11)
|
||||
_axis_defaults[:foreground_color_axis] = :match # axis border/tick colors
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user