Code: Select all
create soma, dend
connect dend(0), soma(1)
objref ss
ss = new Shape()
ss.label(0.1,.1,"100 um")
Code: Select all
create soma, dend
connect dend(0), soma(1)
objref ss
ss = new Shape()
ss.label(0.1,.1,"100 um")
Code: Select all
// set up xyz scale bars
create xScale, yScale, zScale
proc anatscale() {
if ($4>0) { // if length arg is <= 0 then do nothing
xScale {
pt3dclear()
pt3dadd($1, $2, $3, 1)
pt3dadd($1+$4, $2, $3, 1)
}
yScale {
pt3dclear()
pt3dadd($1, $2, $3, 1)
pt3dadd($1, $2+$4, $3, 1)
}
zScale {
pt3dclear()
pt3dadd($1, $2, $3, 1)
pt3dadd($1, $2, $3+$4, 1)
}
}
}
anatscale(100,0,0,100) // xyz coords of origin, and length