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

No plotting available for some variables in Variable Explorer #10917

Closed
gerazov opened this issue Dec 3, 2019 · 5 comments · Fixed by #10929
Closed

No plotting available for some variables in Variable Explorer #10917

gerazov opened this issue Dec 3, 2019 · 5 comments · Fixed by #10929

Comments

@gerazov
Copy link

gerazov commented Dec 3, 2019

Spyder 4.0.0rc3

There's no plotting available for some of the variables in Variable Explorer. Neither on the pane's toolbar or on right click:

For most of the others it works:

Even though in this case one variable is made from the other one like so:

energy = 10**(logenergy/10)

Also there is no Plot button on the pane's toolbar.

It's hard to reproduce in a new IPython console though ...

@ccordoba12
Copy link
Member

@gerazov, please post some code that generates an array for which plotting is not available.

@gerazov
Copy link
Author

gerazov commented Dec 4, 2019

It's really elusive - I took down parts of my code and this is a minimum working example. If you take away anything, e.g. the mse, it starts working.

import numpy as np
import matplotlib.pyplot as plt

def get_mse(target, synth):
    weights = np.sum(target, axis=0)
    mse = None
    return mse, weights

spec = np.random.rand(128, 159)
mse, energy_mel = get_mse(spec, spec)
mse, energy_spec = get_mse(spec, spec)

If you run this then energy_spec cannot be plotted from the Variable Explorer.

This persists IPython Console restarts, and restarting Spyder. See if you can confirm.

@ccordoba12
Copy link
Member

@dalthviz, can you reproduce this one with @gerazov example above?

@dalthviz
Copy link
Member

dalthviz commented Dec 4, 2019

@ccordoba12 yep I can reproduce this, no plot action in shown in the context menu of the Variable Explorer

@dalthviz dalthviz self-assigned this Dec 4, 2019
@ccordoba12 ccordoba12 modified the milestones: 4.1.0, v4.0.0 Dec 4, 2019
@gerazov
Copy link
Author

gerazov commented Dec 5, 2019

Ok thanks!

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

Successfully merging a pull request may close this issue.

3 participants