Skip to content

Commit

Permalink
add number of elements to categorical axis
Browse files Browse the repository at this point in the history
see #81.
  • Loading branch information
gdkrmr authored Oct 26, 2018
1 parent b881439 commit 8b4044d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cubes/Cubes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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," ")
Expand Down

0 comments on commit 8b4044d

Please sign in to comment.