Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when Selecting Fig from Variable Explorer #5213

Closed
PowerPlum opened this issue Sep 12, 2017 · 3 comments
Closed

Error when Selecting Fig from Variable Explorer #5213

PowerPlum opened this issue Sep 12, 2017 · 3 comments

Comments

@PowerPlum
Copy link

Description

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Please provide any additional information below

File "c:\python36-32\lib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 519, in createEditor
readonly=readonly)
File "c:\python36-32\lib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 1308, in setup
self.data_copy = copy.deepcopy(data)
File "c:\python36-32\lib\copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)
File "c:\python36-32\lib\copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "c:\python36-32\lib\copy.py", line 150, in deepcopy
y = copier(x, memo)
File "c:\python36-32\lib\copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "c:\python36-32\lib\copy.py", line 161, in deepcopy
y = copier(memo)
File "c:\python36-32\lib\site-packages\matplotlib\transforms.py", line 125, in copy
"Consider using frozen() instead.")
NotImplementedError: TransformNode instances can not be copied. Consider using frozen() instead.

Version and main components

  • Spyder Version: 3.2.3
  • Python Version: 3.6.2
  • Qt Versions: 5.9.1, PyQt5 5.9 on Windows

Dependencies

pyflakes
@ccordoba12
Copy link
Member

What do you mean by selecting Fig? Please be more specific.

@PowerPlum
Copy link
Author

Hi,
Sorry - this was an automated error code generated by Spyder, and I presed OK before reading it properly.
The error occured when creating a plot using Matplotlib within Spyder. The code was as follows:

import matplotlib.pyplot as plt
fig = plt.figure(figsize=(20, 10))

A variable appeared in Variable Explorer called fig. I double clicked on it to examine, and this caused an error.
I've added a screen shot to this note.
spyder and matplotlib error
Let me know if there is anything else I can provide
Thanks

@ccordoba12
Copy link
Member

Thanks for the reproducible example. @dalthviz, please take a look at this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants