JuliaPy / JuliaPy/PyPlot.jl

hist2D requires capitalization of the "D", but axis.hist2d needs to be lowercase

Open
#599 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
488
Forks
90
PR merge metrics
No merged PRs in 30d

Description

commit 40632c7 explains that in PyPlot the "D"s in `hist2D` and the like are capitalized in PyPlot.
The `pyplot wrapper` requires capitalization, but when the function is called on/by an axis object, the opposite is true:
```
hist2D(...) # works
hist2d(...) # throws ERROR: UndefVarError: `hist2d` not defined in `Main`
fig, ax = plt.sublots()
ax.hist2D(...) # throws ERROR: KeyError: key :hist2D not found
ax.hist2d(...) # works
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare the pyplot wrapper and axis-object handling for the hist2D/hist2d calls demonstrated in the issue. Reproduce both forms in PyPlot.jl, then trace the wrapper and axis lookup paths to identify the capitalization mismatch. Done means both pyplot and axis-object calls work with the expected spelling.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.