Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Winston.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ end
using IniFile
using Compat
using Dates

isdefined(Base, :Libc) && (strftime = Libc.strftime)
isdefined(Base, :Dates) && (datetime2unix = Dates.datetime2unix)

Expand Down Expand Up @@ -93,7 +92,7 @@ import Base: copy,
export get_context, device_to_data, data_to_device

if VERSION < v"0.3-"
typealias AbstractVecOrMat{T} (@compat Union{AbstractVector{T}, AbstractMatrix{T}})
typealias AbstractVecOrMat{T}(@compat Union{AbstractVector{T}, AbstractMatrix{T}})
extrema(x) = (minimum(x),maximum(x))
Base.push!(x, a, b) = (push!(x, a); push!(x, b))
elseif VERSION < v"0.4-"
Expand Down
2 changes: 1 addition & 1 deletion src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ function fplot(f::Function, limits, args...; kvs...)
pargs = [arg]
elseif typeof(arg) <: Integer
fopts[:min_points] = arg
elseif typeof(arg) <: FloatingPoint
elseif typeof(arg) <: @compat AbstractFloat
fopts[:tol] = arg
else
error("unrecognized argument ", arg)
Expand Down
2 changes: 1 addition & 1 deletion src/renderer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end
## state commands

color_to_rgb(i::Integer) = convert(RGB, RGB24(unsigned(i)))
color_to_rgb(s::AbstractString) = color(s)
color_to_rgb(s::AbstractString) =parse(Colorant,s)
color_to_rgb(rgb::@compat(Tuple{Real,Real,Real})) = RGB(rgb...)
color_to_rgb(cv::Color) = convert(RGB, cv)
color_to_rgb(cv::TransparentColor) = cv
Expand Down