Code: Select all
create soma
objref g
g = new PlotShape(0)
g.variable("v")
g.view(-199.999, -147.615, 399.998, 295.23, 49, 151, 467.1, 344.8)
g.exec_menu("Shape Plot")
Code: Select all
create soma
objref g
g = new PlotShape(0)
g.variable("v")
g.view(-199.999, -147.615, 399.998, 295.23, 49, 151, 467.1, 344.8)
g.exec_menu("Shape Plot")
Code: Select all
.variable("v")
True because the Shape class doesn't have a variable() method.neuromau wrote:If I create a Shape instead, I won't be able to use themethodCode: Select all
.variable("v")
Can't say that I've ever seen a PlotShape whose variable name wasn't displayed close to the root section; you can try changing the location of the cell, but I'd be surpised if that does anything useful. On those occasions when I need something aesthetic, e.g. a false color plot of v over an entire cell, it's easy to use the PFWM to generate an Idraw file, then edit that with idraw or Corel Draw to remove the variable name.I still want the PlotShape functionality, I just don't want the label text to appear directly on top of the plotted cell.
Okay, hmm. My problem now is that I have many dozens of those occasions so I will have to stick with something programmatic. The variable I am plotting is not actually "v", but one that is 10-18 characters long and tends to obscure a good portion of my cell. I may make a dummy variable with a one-character name, set the other variable equal to it, and plot that one instead.On those occasions when I need something aesthetic