Skip to content

Issue with drawing a constant line in a subplot #2023

Description

@melodyjulia

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions