Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ENH]: AxLine xy1/xy2 setters should take xy as single parameters, (possibly) not separate ones #28800

Closed
@anntzer

Description

@anntzer

Problem

Currently, AxLine.set_xy1 and set_xy2 take x and y as separate parameters. They should also take them as a singlexy parameter, which is consistent with most other setters and would in particular allow the idiomline.set(xy1=..., xy2=...) (orline.set(xy1=..., slope=...).

Proposed solution

Given that the setters were only introduced only in Matplotlib 3.8, we could even consider just deprecating the split (x, y) form out and ultimately only supporting a single xy tuple (tagging this issue for 3.10 as we probably don't want to wait too long in that case); or we can support both forms with the standard dance present e.g. in Axes.set_xlim.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp