Skip to content

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

@xupinjie

Description

@xupinjie

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```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions