rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
281 stars 41 forks source link

Print intervals in `show` rather than just values. #444

Closed rafaqz closed 5 days ago

rafaqz commented 1 year ago

It would be good to see the pixel intervals in show, but maybe only practical for the vertical axis.

This could look like:

11-element DimArray{NamedVector{(:native, :cleared, :abandoned, :urban), 4, Float64, NTuple{4, Float64}},1} with dimensions:
  Ti Sampled{Int64} Int64[1610, 1710, …, 1905, 1968] ForwardOrdered Irregular Intervals
 1610 [1610-1710) [0.978708, NaN, NaN, NaN]
 1710 [1710-1711) [1.0, 0.0, NaN, NaN]
 1711 [1711-1723) [1.0, NaN, 1.0, NaN]
 1723 [1723-1772) [0.878909, NaN, 0.349708, NaN]

But of course in :light_black so its less visible than the values.

rafaqz commented 1 week ago

This hasn't been done due to the amount of visual clutter it introduces.