Sunday, November 22, 2015

Matlab: Pointy Ends for Colorbars

Cbarrow

The cbarrow function places triangle-shaped endmembers on colorbars to indicate that data values exist beyond the extents of the values shown in the colorbar.
This function works by creating a set of axes atop the current figure and placing patch objects on the new axes. Thus, editing a figure after calling cbarrow may cause some glitches. Therefore, it is recommended to call cbarrow last when creating plots.
This function only works once per figure. If you have multiple subplots, you can only use it once, and you'll have to call cbarrow last. Also, editing plots after calling cbarrow can sometimes be a bit glitchy.
Fig. 1
Fig. 2
Cbarrow函数要求Matlab版本至少是2014b才能运行。

Cabrf

Fig. 3

References

No comments:

Post a Comment