From 8b4044d2190fdb61be090ae22e24a83c0ee1300d Mon Sep 17 00:00:00 2001 From: Guido Kraemer Date: Fri, 26 Oct 2018 12:40:49 +0200 Subject: [PATCH] add number of elements to categorical axis see #81. --- src/Cubes/Cubes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cubes/Cubes.jl b/src/Cubes/Cubes.jl index 6926e001..e32eea5b 100644 --- a/src/Cubes/Cubes.jl +++ b/src/Cubes/Cubes.jl @@ -268,7 +268,7 @@ end import Base.Iterators: take, drop Base.show(io::IO,a::RangeAxis)=print(io,rpad(Axes.axname(a),20," "),"Axis with ",length(a)," Elements from ",first(a.values)," to ",last(a.values)) function Base.show(io::IO,a::CategoricalAxis) - print(io,rpad(Axes.axname(a),20," "), "Axis with elements: ") + print(io,rpad(Axes.axname(a),20," "), "Axis with ", length(a), " elements: ") if length(a.values)<10 for v in a.values print(io,v," ")