From 27933618681e9cdcc7b988a6bbc32b5232d43f4c Mon Sep 17 00:00:00 2001 From: Giorgio Calderone Date: Sun, 21 Oct 2018 18:26:10 +0200 Subject: [PATCH] Minor changes --- src/Gnuplot.jl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index 1d3aedd..2e5af49 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -2,7 +2,7 @@ __precompile__(true) module Gnuplot -using StatsBase, StructC14N, ColorTypes, Printf +using StructC14N, ColorTypes, Printf import Base.reset import Base.quit @@ -1003,13 +1003,13 @@ gpeval(id::Symbol, s::String) = gpeval(id, [s]) #--------------------------------------------------------------------- -function hist(v::Vector{T}; addright=false, closed::Symbol=:left, args...) where T <: AbstractFloat - i = findall(isfinite.(v)) - hh = fit(Histogram, v[i]; closed=closed, args...) - if addright == 0 - return PackedDataPlot([hh.edges[1], [hh.weights;0]], "", [], ["w steps"]) - end - return PackedDataPlot([hh.edges[1], [0;hh.weights]], "", [], ["w fsteps"]) -end +# function hist(v::Vector{T}; addright=false, closed::Symbol=:left, args...) where T <: AbstractFloat +# i = findall(isfinite.(v)) +# hh = fit(Histogram, v[i]; closed=closed, args...) +# if addright == 0 +# return PackedDataPlot([hh.edges[1], [hh.weights;0]], "", [], ["w steps"]) +# end +# return PackedDataPlot([hh.edges[1], [0;hh.weights]], "", [], ["w fsteps"]) +# end end #module