Question about plotting same network multiple times in subplot with same color range
1 view (last 30 days)
Hello, thanks for looking at this,
I have a question about plotting a patched line network multiple times (one reference, one slightly different, etc) and have the color range for the second one be reflective of the first in terms of its caxis.
This is sort of what I mean, look here. All of the ranges of values are different for each of the subplots, but the colormaps are determined by each individual subplot. What I want to have is one colormap that all subplots reference and color for accordingly
This is what I do currently:
For each subplot, I
- Determine a colormap (this is probably the problem here, as the colormap is unique to each subplot)
- patch('Vertices', ptMx, 'Faces', faceMx, 'FaceVertexCData', color_array, 'EdgeColor', 'interp');
where the color_array is the indexed coordinates of the colormap depending on the values. I do this because this is more or less what I grew up learning.
So for the 800Hz plot earlier, the maxes are lower and the mins are lower. But the maxes are just as red as any other subplot reds.
Any advice? Thanks!
Star Strider on 7 Jun 2016
I don’t completely understand what you’re doing.
You can define the levels of your colormap. The default jet colormap is colormap(jet(64)), but I believe you can go to colormap(jet(256)). That would provide you a greater range or colours. Experiment!