JuliaPy / JuliaPy/PythonPlot.jl

Plotting multiple figures with subplots command only display the last figure in PythonPlot.jl

Open
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
85
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Plotting multiple figures with subplots command only display the last figure in both PythonPlot.jl and PyPlot.jl. Kindly run the program below.

using PythonPlot # Pyplot
pygui(true)

x = LinRange(0, 2*pi, 100)
f(x) = @. sin(x)
g(x) = @. cos(x)
h(x) = @. tan(x)

a1=subplots(3)
a1[1] = plot(x,f(x))
a1[2] = plot(x,g(x))
a1[3] = plot(x,h(x))

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

Start by running the Julia reproduction in issue #32 with PythonPlot.jl, then compare the same behavior in PyPlot.jl as requested. Trace the subplots and plot calls to determine why only the last figure is displayed; done means all three figures appear as intended.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.