Skip to content

Commit

Permalink
move using statements
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Sep 24, 2022
1 parent c902e9d commit ebe8928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/Plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ function _check_compat(sim::Module)
end

using Dates, Printf, Statistics, Base64, LinearAlgebra, Random, Unzip
using RelocatableFolders
using SnoopPrecompile
using SparseArrays
using Base.Meta
using Requires
using Reexport
using Scratch
using FFMPEG
using REPL
@reexport using RecipesBase
@reexport using PlotThemes
@reexport using PlotUtils
Expand Down
6 changes: 1 addition & 5 deletions src/init.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using REPL
using Scratch
using RelocatableFolders

const plotly_local_file_path = Ref{Union{Nothing,String}}(nothing)
const BACKEND_PATH_GASTON = @path joinpath(@__DIR__, "backends", "gaston.jl")
const BACKEND_PATH_HDF5 = @path joinpath(@__DIR__, "backends", "hdf5.jl")
Expand Down Expand Up @@ -159,7 +155,7 @@ function __init__()
# Lists of tuples and GeometryBasics.Points
# --------------------------------------------------------------------
@recipe f(v::AVec{<:GeometryBasics.Point}) = RecipesPipeline.unzip(v)
@recipe f(p::GeometryBasics.Point) = [p]# Special case for 4-tuples in :ohlc series
@recipe f(p::GeometryBasics.Point) = [p] # Special case for 4-tuples in :ohlc series
@recipe f(xyuv::AVec{<:Tuple{R1,R2,R3,R4}}) where {R1,R2,R3,R4} =
get(plotattributes, :seriestype, :path) === :ohlc ?
OHLC[OHLC(t...) for t in xyuv] : RecipesPipeline.unzip(xyuv)
Expand Down

0 comments on commit ebe8928

Please sign in to comment.