Change typealias to const
This commit is contained in:
parent
698d583d1d
commit
10f214fbb4
2
NEWS.md
2
NEWS.md
@ -364,7 +364,7 @@
|
|||||||
- z-axis keywords
|
- z-axis keywords
|
||||||
- 3D indexing overhaul: `push!`, `append!` support
|
- 3D indexing overhaul: `push!`, `append!` support
|
||||||
- matplotlib colormap constants (`:inferno` is the new default colormap for Plots)
|
- matplotlib colormap constants (`:inferno` is the new default colormap for Plots)
|
||||||
- `typealias KW Dict{Symbol,Any}` used in place of splatting in many places
|
- `const KW = Dict{Symbol,Any}` used in place of splatting in many places
|
||||||
- png generation for plotly backend using wkhtmltoimage
|
- png generation for plotly backend using wkhtmltoimage
|
||||||
- `normalize` and `weights` keywords
|
- `normalize` and `weights` keywords
|
||||||
- background/foreground subcategories for fine-tuning of looks
|
- background/foreground subcategories for fine-tuning of looks
|
||||||
|
|||||||
@ -108,7 +108,7 @@ export
|
|||||||
|
|
||||||
import Measures
|
import Measures
|
||||||
import Measures: Length, AbsoluteLength, Measure, BoundingBox, mm, cm, inch, pt, width, height, w, h
|
import Measures: Length, AbsoluteLength, Measure, BoundingBox, mm, cm, inch, pt, width, height, w, h
|
||||||
typealias BBox Measures.Absolute2DBox
|
const BBox = Measures.Absolute2DBox
|
||||||
export BBox, BoundingBox, mm, cm, inch, pt, px, pct, w, h
|
export BBox, BoundingBox, mm, cm, inch, pt, px, pct, w, h
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
typealias P2 FixedSizeArrays.Vec{2,Float64}
|
const P2 = FixedSizeArrays.Vec{2,Float64}
|
||||||
typealias P3 FixedSizeArrays.Vec{3,Float64}
|
const P3 = FixedSizeArrays.Vec{3,Float64}
|
||||||
|
|
||||||
nanpush!(a::AbstractVector{P2}, b) = (push!(a, P2(NaN,NaN)); push!(a, b))
|
nanpush!(a::AbstractVector{P2}, b) = (push!(a, P2(NaN,NaN)); push!(a, b))
|
||||||
nanappend!(a::AbstractVector{P2}, b) = (push!(a, P2(NaN,NaN)); append!(a, b))
|
nanappend!(a::AbstractVector{P2}, b) = (push!(a, P2(NaN,NaN)); append!(a, b))
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
# This should cut down on boilerplate code and allow more focused dispatch on type
|
# This should cut down on boilerplate code and allow more focused dispatch on type
|
||||||
# note: returns meta information... mainly for use with automatic labeling from DataFrames for now
|
# note: returns meta information... mainly for use with automatic labeling from DataFrames for now
|
||||||
|
|
||||||
typealias FuncOrFuncs @compat(Union{Function, AVec{Function}})
|
const FuncOrFuncs = @compat(Union{Function, AVec{Function}})
|
||||||
|
|
||||||
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :contourf, :heatmap, :surface, :wireframe, :contour3d, :image), get(d, :seriestype, :none))
|
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :contourf, :heatmap, :surface, :wireframe, :contour3d, :image), get(d, :seriestype, :none))
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# This should cut down on boilerplate code and allow more focused dispatch on type
|
# This should cut down on boilerplate code and allow more focused dispatch on type
|
||||||
# note: returns meta information... mainly for use with automatic labeling from DataFrames for now
|
# note: returns meta information... mainly for use with automatic labeling from DataFrames for now
|
||||||
|
|
||||||
typealias FuncOrFuncs{F} Union{F, Vector{F}, Matrix{F}}
|
const FuncOrFuncs{F} = Union{F, Vector{F}, Matrix{F}}
|
||||||
|
|
||||||
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :contourf, :heatmap, :surface, :wireframe, :contour3d, :image), get(d, :seriestype, :none))
|
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :contourf, :heatmap, :surface, :wireframe, :contour3d, :image), get(d, :seriestype, :none))
|
||||||
|
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
# TODO: I declare lots of types here because of the lacking ability to do forward declarations in current Julia
|
# TODO: I declare lots of types here because of the lacking ability to do forward declarations in current Julia
|
||||||
# I should move these to the relevant files when something like "extern" is implemented
|
# I should move these to the relevant files when something like "extern" is implemented
|
||||||
|
|
||||||
typealias AVec AbstractVector
|
const AVec = AbstractVector
|
||||||
typealias AMat AbstractMatrix
|
const AMat = AbstractMatrix
|
||||||
typealias KW Dict{Symbol,Any}
|
const KW = Dict{Symbol,Any}
|
||||||
|
|
||||||
immutable PlotsDisplay <: Display end
|
immutable PlotsDisplay <: Display end
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ Extrema() = Extrema(Inf, -Inf)
|
|||||||
|
|
||||||
# -----------------------------------------------------------
|
# -----------------------------------------------------------
|
||||||
|
|
||||||
typealias SubplotMap Dict{Any, Subplot}
|
const SubplotMap = Dict{Any, Subplot}
|
||||||
|
|
||||||
# -----------------------------------------------------------
|
# -----------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user