-
-
Notifications
You must be signed in to change notification settings - Fork 372
Open
Description
Details
I tried to write a recipe to plot data on a sphere and noticed a slight inconsistency
Take the following code
φ_range = range(0,stop=2*π,length=33)
λ_range = range(0,stop=π,length=33)
x = [cos(φ) * sin(λ) for φ ∈ φ_range, λ ∈ λ_range]
y = [sin(φ) * sin(λ) for φ ∈ φ_range, λ ∈ λ_range]
z = [cos(λ) for φ ∈ φ_range, λ ∈ λ_range]
wireframe(x,y,z)This yields o plotly() (not the best of exports, but to illustrate

I am a little surprised to not get 33 lines each, but ok, it works.
using gr() (i.e. keep it default after using Plots) yields
Arrays have incorrect length or dimension.Backends
This bug occurs on ( insert x below )
| Backend | yes | no | untested |
|---|---|---|---|
| gr (default) | x | ||
| pyplot | x | ||
| plotly | x | ||
| plotlyjs | x | ||
| pgfplotsx | x | ||
| inspectdr | x |
Versions
Plots.jl version: v1.7.3
Backend version (]st -m): GR v0.52.0 (unsure, where I can find plotly backend)
Output of versioninfo():
julia> versioninfo()
Julia Version 1.5.2
Commit 539f3ce943 (2020-09-23 23:17 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
``