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

Do not know how to plot object of type <class 'brian2.core.variables.VariableView'> #11

Open
xupinjie opened this issue Mar 7, 2019 · 1 comment

Comments

@xupinjie
Copy link

xupinjie commented Mar 7, 2019

When i want to plot the results with brian_plot(connections['XeAe'].w)`, following error appeared.
Would you please give me some advisers, thanks

INFO:matplotlib.backends._backend_tk:Could not load matplotlib icon: can't use "pyimage19" as iconphoto: not a photo image
INFO:matplotlib.backends._backend_tk:Could not load matplotlib icon: can't use "pyimage28" as iconphoto: not a photo image
INFO:matplotlib.backends._backend_tk:Could not load matplotlib icon: can't use "pyimage38" as iconphoto: not a photo image
INFO:matplotlib.backends._backend_tk:Could not load matplotlib icon: can't use "pyimage47" as iconphoto: not a photo image
ERROR Brian 2 encountered an unexpected error. If you think this is bug in Brian 2, please report this issue either to the mailing list at http://groups.google.com/group/brian-development/, or to the issue tracker at https://github.com/brian-team/brian2/issues. Please include this file with debug information in your report: c:\users\licecv\appdata\local\temp\brian_debug_cvd6ww.log Additionally, you can also include a copy of the script that was run, available at: c:\users\licecv\appdata\local\temp\brian_script_983vzt.py You can also include a copy of the redirected std stream outputs, available at c:\users\licecv\appdata\local\temp\brian_stdout_jransm.log and c:\users\licecv\appdata\local\temp\brian_stderr_duu1ut.log Thanks! [brian2]
Traceback (most recent call last):
File "D:/1-xpj/8-bishe/code/Brian2STDPMNIST/Diehl&Cook_spiking_MNIST_Brian2.py", line 553, in 
brian_plot(connections['XeAe'].delay)
File "C:\Anaconda3\envs\py27\lib\site-packages\brian2tools\plotting\base.py", line 154, in brian_plot
'%s' % type(brian_obj))
NotImplementedError: Do not know how to plot object of type <class 'brian2.core.variables.VariableView'>

Process finished with exit code 1```
@JBrauns
Copy link

JBrauns commented Jun 21, 2019

The issue was addressed in brian-team/brian2tools#21 and may come in the next update. Up to then it might help to uncomment the calls to brian_plot and subplot which is what i did.

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

No branches or pull requests

2 participants