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

Autoscale does not work for ax.arrow() #12712

Closed
Milestone
@CakeUser321

Description

@CakeUser321

Bug report

As already stated in thisstack overflow thread, when drawing arrows with the arrow()-method, the scale of the plot is not adjusted as expected. A workaround is to set the limits of the plot manually or to plot additional, invisible points near the arrows.

Code for Reproducing the bug

importmatplotlib.pyplotaspltimportmatplotlibimportsysprint(matplotlib.__version__)print(sys.version)fig,ax=plt.subplots()#ax.set_xlim(0, 5)#ax.set_ylim(0, 5)ax.arrow(1,1,1,1)plt.show()

Output:

3.0.13.7.0 (default, Oct  9 2018, 10:31:47) [GCC 7.3.0]

plot_issue

Outcome with setting limits manually

plot_right

Matplotlib version

  • Operating system: Xubuntu 18.04
  • Matplotlib version: 3.0.1
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version: 3.7.0
  • Jupyter version (if applicable):
  • Other libraries:

I installed matplotlib by using anaconda.

I didn't specify a channel, so I guess it was the main channel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp