Skip to content

Colorbar scale for Probe Placement Variation #14

@morrisvanegas

Description

@morrisvanegas

Although the colorbar in the second figure (Standard Deviation Across Digitized Probes) generated by Tools -> Probe Placement Variability is scaled to the variability of the optodes, the circles don't take advantage of the full color bar.

When attempting to get the colormap [colors = colormap], this results in a 256 row vector. Therefore line 491 in Probe/plotProbePlacementVariation.m should scale to 256, not 64. Scaling to 64 results in the optode colors to be scaled to 1/4th of the color bar, incorrectly indicating that the variability is lower than expected.

Line 491 here:

color = 1+round(63*(p2sd(i)-min(p2sd))/(max(p2sd)-min(p2sd))); % This picks the most appropriate of the 64 colormap colors

Should be replaced with
color = 1+round(255*(p2sd(i)-min(p2sd))/(max(p2sd)-min(p2sd)));

Here, I intentionally added variability on one side of the head when digitizing my modules. The original code (64 based), shows very little variability in the left and right modules, despite the figure 1 (Digitized Probe Positions) clearly showing variability.
Screen Shot 2021-10-05 at 11 11 51 AM

When I change Line 491 to scale to 256 (the full size of the color matrix), the colors more effectively demonstrate the increased variability and use the full colormap scale.
Screen Shot 2021-10-05 at 11 11 19 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions