Skip to content
Snippets Groups Projects
Commit a5b2e553 authored by Stuart Layton's avatar Stuart Layton
Browse files

switched SpikeDisplayCanvas to Stereotrode plots from TetrodePlots as I...

switched SpikeDisplayCanvas to Stereotrode plots from TetrodePlots as I haven't figured out why the tetrodeplots aren't displaying the projection points yet
parent 7afdb8fb
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,8 @@ SpikeDisplayCanvas::~SpikeDisplayCanvas()
void SpikeDisplayCanvas::initializeSpikePlots(){
std::cout<<"Initializing Plots"<<std::endl;
int nPlots = 6;
int nCols = 2;
int nPlots = 8;
int nCols = 4;
int totalWidth = 1000; // This is a hack the width as the width isn't known before its drawn
......@@ -70,7 +70,7 @@ void SpikeDisplayCanvas::initializeSpikePlots(){
int rowCount = 0;
for (int i=0; i<nPlots; i++)
{
TetrodePlot p = TetrodePlot(
StereotrodePlot p = StereotrodePlot(
xBuffer + i%nCols * (plotWidth + xBuffer) ,
yBuffer + rowCount * (plotHeight + yBuffer),
plotWidth,
......
......@@ -65,7 +65,7 @@ private:
bool newSpike;
SpikeObject spike;
SpikeDisplayNode* processor;
std::vector<TetrodePlot> plots;
std::vector<StereotrodePlot> plots;
// AudioSampleBuffer* displayBuffer;
// ScopedPointer<AudioSampleBuffer> screenBuffer;
// MidiBuffer* eventBuffer;
......
......@@ -61,7 +61,7 @@ void ProjectionAxes::plot(){
// drawProjectionGrid(s.gain[d1], s.gain[d2]);
glColor3f(1.0, 1.0, 1.0);
glPointSize(10);
glPointSize(1);
glBegin(GL_POINTS);
glVertex2f(s.data[idx1], s.data[idx2]);
......
......@@ -132,7 +132,7 @@ void TetrodePlot::setPosition(int x, int y){
}
void TetrodePlot::setDimensions(double w, double h){
setPosition(BaseUIElement::xpos, BaseUIElement::yPixels, w, h);
setPosition(BaseUIElement::xpos, BaseUIElement::ypos, w, h);
}
int TetrodePlot::getNumberOfAxes(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment