Skip to content

Commit

Permalink
Fix plotting of empty morphology with set_range (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Apr 4, 2023
1 parent 33b107a commit 78a455b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsb/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def wrapper_function(
soma_radius=soma_radius,
**kwargs,
)
if set_range:
if set_range and len(morphology):
# Set the range to be the cube around the min and max of the
# morphology
rng = (
Expand Down

0 comments on commit 78a455b

Please sign in to comment.