Page 1 of 1

Saving Graphs automatically

Posted: Tue Dec 10, 2013 8:40 am
by srene
Hello Ted,

i wanted to ask if it is possible to write s.th. in my .hoc file so that the graphs that will be plotted, while the hoc file runs, will be saved automatically. i mean I know that I can save data from the run like explained in the Tutorial:

http://www.anc.ed.ac.uk/school/neuron/

But is there a code that I can write maybe in the session file, give a path and the plots will be saved after the run.

Best regards,
srene

Re: Saving Graphs automatically

Posted: Tue Dec 10, 2013 11:38 am
by ted
The most appropriate advice depends on whether you plan to do this once, a few times, or many times.

Re: Saving Graphs automatically

Posted: Tue Dec 10, 2013 3:06 pm
by srene
Thanks Ted for your quick response.

I plan to do this many times. That´s why I don´t want to click so much in the Print & File Manager Window on Select -> Move -> Print -> and so on.

srene

Re: Saving Graphs automatically

Posted: Tue Dec 10, 2013 8:20 pm
by ted
The PWManager class has a method called printfile that may do what you want--see the Programmer's Reference. If you just want screenshot-quality bitmaps, you could use the system() procedure (see Programmer's Reference) to call a separate program that does that; such programs are OS-specific, but you might get some ideas from
Destexhe methods for creating movies from NEURON
and
Carnevale methods for creating movies under NEURON
in SimToolDB
https://senselab.med.yale.edu/SimToolDB ... =94&lin=-1