navis-org / navis

Python library for analysis of neuroanatomical data.
https://navis.readthedocs.io
GNU General Public License v3.0
80 stars 29 forks source link

Bug changing connector size in navis.2d_plot() #93

Closed mwinding closed 2 years ago

mwinding commented 2 years ago

It seems the cn_size argument doesn't work as expected in navis.plot2d() anymore. See the below example where I change cn_size=1 to cn_size=100 with no effect. This is using navis 1.2.1 with Python 3.9.7 and macOS Big Sur 11.6.4.

Example nl = navis.example_neurons() fig, ax = navis.plot2d(nl, method='3d_complex', connectors=True, cn_size=1, view=('x', '-y')) plt.show()

cn_size1

nl = navis.example_neurons() fig, ax = navis.plot2d(nl, method='3d_complex', connectors=True, cn_size=100, view=('x', '-y')) plt.show()

cn_size100
schlegelp commented 2 years ago

Yeah not sure why/when that happened but it's already fixed on Github (6441b7c7eae6cd6c5758aaca7e0425a57cc48ad3). I haven't released a new version since that fix so you'd need to re-install from Github for now.

mwinding commented 2 years ago

Oh perfect. I'll give that a go then, thanks!

Edit: yep that worked