I am regenerating cscan TOF data ( contourf(xscale, yscale, cscan, 40,'linestyle','–') ) and I would am trying to display a histogram of the data such that the bar colors will be the same a shown in the histogram (say red in the contour = 400 ns would have the histogram bar at 400 also be red). Is there an easy way to assign the bars using the colormap?
MATLAB: Using a colormap to match a contour to a histogram
histogram contourf colormapMATLAB
Related Question
- Barh with colored bars: differences between 2012b and 2014b
- Assign mean and max value to a heatmap color bar
- Ii want to know about, How to find a histogram of an uint8 image with 16 amplitude bins
- Colormap based on contour values
- How to change the line color in the output of imhist
- Map from value to colormap
Best Answer