🌐 AI搜索 & 代理 主页
Skip to content

set_aspect option for changing just the x or or just the y data limits #20380

@cdfredrick

Description

@cdfredrick

Setting the 'adjustable' keyword of Axes.set_aspect to 'datalim' changes the x or y data limits, but I would like an option that explicitly changes only the x or only the y data limits. This would allow one to achieve a desired aspect ratio while leaving the data limits of one of the two axes unchanged. This could be similar to the 'axis ' keyword of Axes.autoscale. As an example use case, this would allow set_aspect and autoscale to work together if autoscale were applied to the x axis and set_aspect were applied to the y axis.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions