Skip to content

Unaligned subplot axes using GridSpec geometry #679

@munechika-koyo

Description

@munechika-koyo

Summary

I found the previously correct behavior for subplots with gridspec geometry.
When using [[1, 2], [1, 3]] geometry for subplots and setting the left axis's aspect ratio to "equal", the right axes slightly stick out both up and down.
Does this seem to be a regression bug?
It appears after v2.0.1.

Minimal reproducer

import numpy as np
import ultraplot as uplt

x = np.linspace(0, 1)
y = x * x

fig, axs = uplt.subplots([[1, 2], [1, 3]])
axs[0].plot(x, y)
axs[0].format(aspect="equal")  # if "auto" is specified, it seems fine.

In v1.72.0
Image

In v2.0.1
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions