Dear Ted,
What is the hoc command to export a PlotShape from NEURON into a publication-ready figure ?
For instance, like the Figure 3a in one of Magee's recent papers ?
http://www.nature.com/nature/journal/v4 ... 11554.html
Thanks.
Export PlotShape
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Export PlotShape
Good question. The PlotShape class, like all other graph classes (e.g. the Graph class), has a method called printfile() that generates an encapsulated PostScript file--read about it in the Programmer's Reference entry on the PlotShape class
http://www.neuron.yale.edu/neuron/stati ... class.html
http://www.neuron.yale.edu/neuron/stati ... class.html
-
- Posts: 41
- Joined: Sun Aug 08, 2010 11:09 am
Re: Export PlotShape
thank you Ted, it shapes :)
-
- Posts: 41
- Joined: Sun Aug 08, 2010 11:09 am
Re: Export PlotShape
Is there a way to specify the resolution in printfile() ? The default one is pretty coarse :)
-
- Posts: 41
- Joined: Sun Aug 08, 2010 11:09 am
Re: Export PlotShape
and aside from export resolution, how to specify "ShapeStyle" in hoc code which can be done by GUI ?
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Export PlotShape
More good questions.
http://www.neuron.yale.edu/neuron/stati ... .exec_menu
If foo is an objref that points to a particular instance of Shape or PlotShape,
foo.exec_menu("Show Diam")
will redraw the figure with line widths proportional to local diameter.
I don't understand the question. Encapsulated PostScript is a vector format, not a bitmap format. Resolution is not an issue with vector formats, since vector format images are completely rescalable. Perhaps your image editing or word processing software is converting the PostScript to a bitmap format, without you knowing about it.Is there a way to specify the resolution in printfile() ? The default one is pretty coarse
Shapes and PlotShapes are graph classes, and Graphs have an exec_menu method. Read about it herehow to specify "ShapeStyle" in hoc code
http://www.neuron.yale.edu/neuron/stati ... .exec_menu
If foo is an objref that points to a particular instance of Shape or PlotShape,
foo.exec_menu("Show Diam")
will redraw the figure with line widths proportional to local diameter.
-
- Posts: 41
- Joined: Sun Aug 08, 2010 11:09 am
Re: Export PlotShape
thank you, exec_menu() is good !