This repository was archived by the owner on Feb 26, 2025. It is now read-only.
[Bug report] show_plot=False outputs blank image for view.neuron #99
Labels
bug
Something isn't working
Describe the bug
When using
view.neuron(neu, output_path=output_path, output_name= output_name, neurite_type=ntype_view,xlim=xlim,ylim=ylim,show_plot=False)
, the image saved is blank.Optional link from https://TMD.readthedocs.io which documents the behavior that is expected
No response
To Reproduce
Error
Additional context
The view.neuron function is calling several times common.plot_style. Therefore, with
show_plot=False
, the image is erased at each step.Proposed solution
In https://github.com/BlueBrain/TMD/blob/master/tmd/view/view.py#L356-#L358, replace by
The idea is simply to pass show_plot at the end of the neuron plot
tmd Version in Use
bb32da1
Python Version
3.10.14
Operating system
MacOS
The text was updated successfully, but these errors were encountered: