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]: Plot window not shown in Mac OS with backend set to default MacOSX #26869

Closed
Labels
GUI: MacOSXRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
@CarrascoCesar

Description

@CarrascoCesar

Bug summary

Under version 3.8.0 the plot window does not appear when using MacOSX as the backend (default under Mac OS). This is not an issues with the previous 3.7.3 version or when backend is set to TkAgg.

Code for reproduction

importmatplotlibimportmatplotlib.pyplotaspltimportnumpyasnpfrommatplotlibimportcm# matplotlib.use(backend="TkAgg")plt.style.use("_mpl-gallery")# Make dataX=np.arange(-5,5,0.25)Y=np.arange(-5,5,0.25)X,Y=np.meshgrid(X,Y)R=np.sqrt(X**2+Y**2)Z=np.sin(R)# Plot the surfacefig,ax=plt.subplots(subplot_kw={"projection":"3d"})ax.plot_surface(X,Y,Z,vmin=Z.min()*2,cmap=cm.Blues)ax.set(xticklabels=[],yticklabels=[],zticklabels=[])plt.show(block=False)input("Hit [return] to end")plt.close("all")

Actual outcome

No plot is generated.

Expected outcome

Figure_1

Additional information

If the code line

matplotlib.use(backend="TkAgg")

is uncommented the code will work as expected.

Operating system

Mac OS 13.5.2

Matplotlib Version

3.8.0

Matplotlib Backend

MacOSX

Python version

3.11.5

Jupyter version

No response

Installation

conda

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUI: MacOSXRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp