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

[Bug]: Streamplot produces unconnected lines, gaps #24946

Open
@gokberkgunes

Description

@gokberkgunes

Bug summary

When a stream plot is drawn, curvature to the lines given by using smaller lines. However, these lines are never connected to each other. When the curvature is high the non-connection becomes visible if user saves the figure for later usage.

The visibility problem does not seem to be existent using show function. I have tested the pdf, svg, eps, png file types and all have the same issue.

Code for reproduction

importnumpyasnpimportmatplotlib.pyplotaspltw=3Y,X=np.mgrid[-w:w:100j,-w:w:100j]U=-1-X**2+YV=1+X-Y**2fig=plt.figure(1)plt.streamplot(X,Y,U,V)plt.show()fig.savefig("streamline.pdf")

Actual outcome

Below is a screenshot of single line when selected in Inkscape.

image

Expected outcome

A random plot produced with matplotlib. In this picture, Inkscape shows the line is connected through its nodes.

image

Operating system

Arch

Matplotlib Version

3.6.2

Matplotlib Backend

QtAgg

Python version

3.10.8

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp