More type information

This commit is contained in:
Chris Rackauckas 2019-08-21 12:39:19 -04:00
parent d111c2ba91
commit 7185e36795
3 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
const _arg_desc = KW( const _arg_desc = Dict{Symbol,String}(
# series args # series args
:label => "String type. The label for a series, which appears in a legend. If empty, no legend entry is added.", :label => "String type. The label for a series, which appears in a legend. If empty, no legend entry is added.",

View File

@ -9,7 +9,7 @@ export GR
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
const gr_linetype = KW( const gr_linetype = Dict{Symbol,Int}(
:auto => 1, :auto => 1,
:solid => 1, :solid => 1,
:dash => 2, :dash => 2,
@ -18,7 +18,7 @@ const gr_linetype = KW(
:dashdotdot => -1 :dashdotdot => -1
) )
const gr_markertype = KW( const gr_markertype = Dict{Symbol,Int}(
:auto => 1, :auto => 1,
:none => -1, :none => -1,
:circle => -1, :circle => -1,
@ -45,19 +45,19 @@ const gr_markertype = KW(
:hline => -31 :hline => -31
) )
const gr_halign = KW( const gr_halign = Dict{Symbol,Int}(
:left => 1, :left => 1,
:hcenter => 2, :hcenter => 2,
:right => 3 :right => 3
) )
const gr_valign = KW( const gr_valign = Dict{Symbol,Int}(
:top => 1, :top => 1,
:vcenter => 3, :vcenter => 3,
:bottom => 5 :bottom => 5
) )
const gr_font_family = Dict( const gr_font_family = Dict{String,Int}(
"times" => 1, "times" => 1,
"helvetica" => 5, "helvetica" => 5,
"courier" => 9, "courier" => 9,
@ -84,7 +84,7 @@ gr_set_transparency(c, α) = gr_set_transparency(α)
gr_set_transparency(c::Colorant, ::Nothing) = gr_set_transparency(c) gr_set_transparency(c::Colorant, ::Nothing) = gr_set_transparency(c)
gr_set_transparency(c::Colorant) = GR.settransparency(alpha(c)) gr_set_transparency(c::Colorant) = GR.settransparency(alpha(c))
const _gr_arrow_map = Dict( const _gr_arrow_map = Dict{Symbol,Int}(
:simple => 1, :simple => 1,
:hollow => 3, :hollow => 3,
:filled => 4, :filled => 4,
@ -1580,7 +1580,7 @@ end
# ---------------------------------------------------------------- # ----------------------------------------------------------------
const _gr_mimeformats = Dict( const _gr_mimeformats = Dict{String,String}(
"application/pdf" => "pdf", "application/pdf" => "pdf",
"image/png" => "png", "image/png" => "png",
"application/postscript" => "ps", "application/postscript" => "ps",

View File

@ -137,7 +137,7 @@ const _shape_keys = Symbol[
:x, :x,
] ]
const _shapes = KW( const _shapes = Dict{Symbol,Shape}(
:circle => makeshape(20), :circle => makeshape(20),
:rect => makeshape(4, offset=-0.25), :rect => makeshape(4, offset=-0.25),
:diamond => makeshape(4), :diamond => makeshape(4),