Issue with drawing a constant line in a subplot
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- julia
- Domain
- data-visualization
Research direction
Reproduce the two snippets from the issue in GMT.jl 1.41.2, first with the constant line in subplot panel 1 and then with the explicit limits workaround. Start by tracing the subplot and lines entry points and compare how constant-valued data are handled; done means the first example runs without requiring limits.
Written by the indexing model from the issue text.
Description
Please try the following code:
subplot(grid="2x1")
lines(1:10, repeat([1],10), panel=1)
lines(1:10, sin.(1:10), panel=2)
subplot(:show)
The code above fails in GMT 1.41.2. However, adding a limits option resolves the issue.
subplot(grid="2x1")
lines(1:10, repeat([1],10), panel=1, limits=(1,10,0,2))
lines(1:10, sin.(1:10), panel=2)
subplot(:show)
- Dominant language
- Julia
- Stars
- 222
- Forks
- 35
- Avg merge
- 8h 1m
- Merged PRs (30d)
- 9
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenericMappingTools/GMT.jl
-
Register v"1.44.1"Open
Difficulty 1/5 Under an hour Newbie friendliness 35/100
GenericMappingTools/GMT.jl#2071 · 1 comment ·
-
Register v"1.44.0"Open
Difficulty 1/5 Under an hour Newbie friendliness 5/100
GenericMappingTools/GMT.jl#2066 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
GenericMappingTools/GMT.jl#2030 · 14 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
GenericMappingTools/GMT.jl#1893 · 11 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
GenericMappingTools/GMT.jl#1875 · 1 comment ·
All issues in GenericMappingTools/GMT.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
brown-ccv/Chamber.jl#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAstro/SolarPosition.jl#143 ·
-
distributions
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaBayes/Wren.jl#404 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAI/MLJTransforms.jl#113 ·
Maintainers usually reply within 1 day