Issue with drawing a constant line in a subplot

Open
#2,023 1 comment 0 reactions 0 assignees View on GitHub

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

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

  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.

More from GenericMappingTools/GMT.jl

All issues in GenericMappingTools/GMT.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.