editing neuron skeletons generated in rgl.plot3d

20 views
Skip to first unread message

Arthur Zhao

unread,
Oct 29, 2019, 4:56:47 PM10/29/19
to nat-user
Hi all,

i plotted (rgl.plot3d) a neuron in R and exported it (rgl.postscript) as a pdf file. But when i opened it in Adobe illustrator, it appeared as a large number of small segments (not all connected). This makes further editing rather difficult. 

What's the common or preferred method for making nice neuron figures ? 

Best,
arthur

Gregory Jefferis

unread,
Oct 29, 2019, 5:40:36 PM10/29/19
to Arthur Zhao, nat-user
I always generate pngs with plot3d / snapshot3d. You have to watch out for antialias settings for your graphics system or you can get staircase artefacts. Note that you can set a large and defined plot size with par3d. See also nview3d for some examples of setting viewpoints.

Unfortunately the vector output has limitations. I have used it in the past with neurons alone but rendering surfaces as well was not that reliable. Furthermore you are then at the mercy of the pdf viewer (these are not always consistent in my experience for this kind of scene) and if you have a complex scene they can blow up trying to render all your neuron segments. So my conclusion is to render the scene to a raster image.

When I want to make prettier visualisations, I send the neurons to Amira and then render them in volumetric mode (ie cylinders rather than lines). There is a package nat.amira which helps. Alternatives include paraview (which can open Vtk and obj files for neurons and surfaces) and blender. 

Best,

Greg. 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "nat-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nat-user+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nat-user/4db7a841-235a-40a7-9e49-b01b830e2c92%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages