On that topic thread above I learned that in NEURON (or I guess more correctly InterViews) as in Matlab there are ways of peeking into the low level objects that make up a graphic. In Matlab they call this "handle graphics", and for all I know this term is ubiquitous. Here is the piece of advice that got me thinking.
So when a Shape/Space Plot is set up, a new object appears called RangeVarPlot[0], and by using the 'dot' notation I can address different properties of the object. I took a look here https://www.neuron.yale.edu/neuron/stat ... rence.html and found that if I want to I could pluck the x and y values on the plot and stick them in some new vectors that I could then manipulate.1 is easy. Use hoc code or the GUI to set up your shape plot, and run a simulation to
make sure that what you're seeing is what you want to record.
Then type
allobjects()
at the oc> prompt, and look for a mention of RangeVarPlot. You should see
RangeVarPlot[0] with 1 refs
The first thing I would like to learn is how I could change the color scaling in a Shape/Shape Plot. So if I use the pyramidal neuron in neurondemo, make the default Shape Plot into a Shape/Shape Plot and hit Init & Run, I am treated to a lovely display of colors.
But I'm picky and I don't want to use all the color bandwidth on voltages above spike threshold, I'd rather just make all voltages >-30 bright yellow and use the rest of the scale to watch subthreshold changes in voltage in more detail.
1) How do I figure out which objects listed by oc>allobjects() are associated with a particular graph?
2) What does the term "with 1 refs" or "with 2 refs" mean exactly? If this information is already in a written form somewhere, just point me to it and I will do some homework.
3) How could I retrieve all the voltage data used in the Shape/Shape Plot and use some logarithmic scaling (for example) to change the color mapping?
I could go on and on, but I guess I will leave it there for now.
Kelvin