Comments (4)
Thanks for the issue.
I can reproduce this.
With one dimensional DimArrays it is not running into a stack overflow error, but it ignores the units and the values of the Dimension but it correctly uses the Dimension label for the axis label.
julia> ddu = DimArray(rand(3), (Dim{:freq}((1.0:0.5:2.0)u"Hz")))
╭───────────────────────────────╮
│ 3-element DimArray{Float64,1} │
├───────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────── dims ┐
↓ freq Sampled{Quantity{Float64, 𝐓^-1, Unitful.FreeUnits{(Hz,), 𝐓^-1, nothing}}} (1.0:0.5:2.0) Hz ForwardOrdered Regular Points
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
1.0 Hz 0.406088
1.5 Hz 0.834368
2.0 Hz 0.0332971
julia> plot(ddu)
I expect that this related to by #720.
from dimensionaldata.jl.
[14] convert_arguments(::Type{Heatmap}, ::IntervalSets.ClosedInterval{Quantity{…}}, ::Vararg{Any}; kw::@Kwargs{})
This stuff is meant to be handled by expand_dimensions
, so implementing #720 may help here.
from dimensionaldata.jl.
Ah right, really need #720!
I am super busy currently I'm unlikely to have time for it soon. So if anyone wants to try to for it
from dimensionaldata.jl.
It only worked on 1-dim arrays because it ignored the lookup values of the axis with #714 I get the following error.
julia> plot(ddu)
ERROR: MethodError: no method matching convert_arguments(::PointBased, ::StepRange{Quantity{…}, Quantity{…}}, ::Vector{Float64})
Closest candidates are:
convert_arguments(::PointBased, ::AbstractVector{T} where T<:Number, ::AbstractVector{T} where T<:Number, ::AbstractVector{T} where T<:Number)
@ Makie ~/.julia/packages/Makie/iRM0c/src/conversions.jl:131
convert_arguments(::PointBased, ::AbstractArray, ::AbstractVector, ::AbstractArray)
@ Makie ~/.julia/packages/Makie/iRM0c/src/conversions.jl:112
convert_arguments(::PointBased, ::IntervalSets.ClosedInterval, ::AbstractVector{T} where T<:Number)
@ Makie ~/.julia/packages/Makie/iRM0c/src/conversions.jl:166
...
Stacktrace:
[1] convert_arguments(t::PointBased, A::DimVector{…})
@ DimensionalDataMakie ~/.julia/dev/DimensionalData/ext/DimensionalDataMakie.jl:353
[2] _pointbased1(A::DimVector{…}, attributes::@Kwargs{}; set_axis_attributes::Bool)
@ DimensionalDataMakie ~/.julia/dev/DimensionalData/ext/DimensionalDataMakie.jl:94
[3] _pointbased1
@ ~/.julia/dev/DimensionalData/ext/DimensionalDataMakie.jl:89 [inlined]
[4] plot(A::DimVector{…}; axislegendkw::@NamedTuple{}, attributes::@Kwargs{})
@ DimensionalDataMakie ~/.julia/dev/DimensionalData/ext/DimensionalDataMakie.jl:77
[5] plot(A::DimVector{…})
@ DimensionalDataMakie ~/.julia/dev/DimensionalData/ext/DimensionalDataMakie.jl:76
[6] top-level scope
@ REPL[43]:1
Some type information was truncated. Use `show(err)` to see complete types.
from dimensionaldata.jl.
Related Issues (20)
- friction in dimension-specific `mean` of a `groupby` HOT 4
- FR: Make `broadcast_dims` work with `DimArray`s and `Dimension`s HOT 3
- `mapslices` on `DimStack` HOT 3
- add `name` etc keywords to `DimArray` `similar` HOT 1
- Support `replace!` for `DimStack`s HOT 3
- typos HOT 6
- Explain difference of Interval and Range for Indexing HOT 1
- Weighted mean from `StatsBase` does not work on DimArray HOT 6
- Invalid assignment to DimArray indexed by DimSelectors HOT 3
- Use of `set` leads to error during display HOT 2
- improve `show`
- `similar` for `DimGroupByArray` should return a `DimArray`
- Stack overflow when using DimPoints with an empty tuple HOT 1
- Add a DiskArrays extension HOT 1
- Forward `eachindex` and/or `Generator` to the parent array?
- New type instability issues
- missing function in plot recipe HOT 1
- New logo? HOT 6
- image should use extrema of dimensions and not the full lookup
- `pairs` of DimVector do not reflect lookup values HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dimensionaldata.jl.