Hi all,
I am wondering how I can add a calibration bar to a plot in NEURON. I want to just show the trace without the axes (which I can do by clicking the 'hide axis' command) and have a small line segment in a corner illustrating the x and y scales. Can this be done easily? Thanks in advance! I really appreciate it.
Anthony
Adding a Calbar to Figures
-
- Site Admin
- Posts: 6394
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Adding a Calbar to Figures
Code: Select all
/*
$o1 objref that points to Graph that is to be marked with a vertical cal bar
$2,$3 origin of cal bar
$4 length of cal bar
$5 line style
*/
proc makecal() {
$o1.beginline(1,$5) // 1 for black
$o1.line($2,$3)
$o1.line($2,$3+$4)
$o1.flush()
}
makecal(g, 0,0, 1, 2)
draws a black vertical line with origin (0,0), length 1, and line style 2.