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

Unable to interact with pickled 3D plot #10843

Closed
@spokeydokeys

Description

@spokeydokeys

Bug report

A 3D line plot is created and pickled for reloading later. Loading the plot later results in a plot that cannot be interacted with.

Code for reproduction

import matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3Dimport pickle as pkimport numpy as npplt.ioff()t = np.linspace(0, 6*np.pi, 1000)x = np.sin(t)y = np.cos(t)z = t/100fig = plt.figure()ax = fig.add_subplot(111, projection='3d')ax.plot(x, y, z, label='3d plot')fo = open('test_file.pkl', 'wb')pk.dump(fig, fo)fo.close()

In a different python instance

import matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3Dimport pickle as pkplt.ioff()fi = open('test_file.pkl', 'rb')fig = pk.load(fi)fi.close()fig.show()

The figure is shown, but cannot be interacted with.

Expected outcome
The figure would be shown and the plot could be interacted with to show a different view.

Matplotlib version

  • Operating system: Win7
  • Matplotlib version: 2.1.2
  • Matplotlib backend: Qt5Agg
  • Python version: 3.6.4
  • Jupyter version (if applicable): N/A
  • Other libraries: iPython 6.2.1, Spyder 3.2.6

matplotlib installed by Anaconda from default channel.

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