JuliaPlots / JuliaPlots/PlotlyJS.jl
PlotlyJS.image incorrectly serializes to json the z array of size (d, rows, cols) , d=3, 4
- Dominant language
- Julia
- Stars
- 444
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
Example:
```
plt=Plot(image(z=rand(0:255, (3, 6, 4)), colormodel="rgb", x0=1, y0=1),
Layout(width=500, height=335))
```

To get the right image the following `permutedims` of the array of size (d, rows, cols) = (3, 6, 4) must be performed:
```
Plot(image(z=permutedims(rand(0:255, (3, 6, 4)), (1, 3,2)), colormodel="rgb", x0=1, y0=1))
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the provided Plot(image(...)) example and compare its output with the permutedims workaround. Trace how the image z array is serialized for a (d, rows, cols) shape, and consider the issue done when the original (3, 6, 4) RGB input produces the correct image without manual permutation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, julia
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100