When you use the Data Cursor tool on a histogram plot, it customizes the data tips it displays in an appropriate way. Instead of providing x-, y-,z- coordinates, the datatips display the following information:
Number of observations falling into the selected bin
The lower and upper x values for the bin
For example, The following figures show a line plot
and a histogram of
count.dat, a data set that contains
three columns, giving hourly traffic counts at three different locations.
The plots depict the sum the values over the locations. Each graph
displays two datatips, but the datatips in the right-hand plot give
information specific to histograms.
load count.dat subplot(1,2,1); plot(count(:)) subplot(1,2,2); histogram(count(:),5) datacursormode on
When you add a datatip to a histogram, you can move the datatip to any other bar by clicking inside that bar. If you use the cursor keys to shift the datatip back or forth across the graph, the datatip moves to the preceding or succeeding bar.