JuliaAcademy / JuliaAcademy/DataScience

Visualization notebook throws an error when annotating both sides of violin plots

Open
#34 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
533
Forks
266
PR merge metrics
No merged PRs in 30d

Description

When executing the last cell of the "Plot 1: Symmetric violin plots and annotations" section, the notebook throws the following error:

MethodError: no method matching Shape(::Vector{Any}, ::Vector{Any})
Closest candidates are:
  Shape(::AbstractVector{T} where T) at /opt/julia/packages/Plots/FKcum/src/components.jl:30

Stacktrace:
 [1] top-level scope
   @ In[15]:23
 [2] eval
   @ ./boot.jl:360 [inlined]
 [3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1094

I'm using Julia 1.6.0. Same happens to you apparently :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the notebook section titled “Plot 1: Symmetric violin plots and annotations” and reproduce the failure in its last cell with Julia 1.6. Start at the annotation code around the reported In[15]:23 and inspect the Plots Shape call; done means the cell runs successfully while annotating both sides of the violin plots.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.