How do you add math symbols in colorbar ticks
问题 I can get the colorbar ticks as figure; hbar=colorbar; ticks=get(hbar,'ytick'); Now how do I set the tick labels at tick(end) to be ∞ ? 回答1: This is tricky. Normally, for axes labels and titles you can use TeX or LaTeX formatting since they are text objects and thus have an 'Interpreter' property: xlabel('\infty'); %# Label the x axis with an infinity However, axes objects themselves don't appear to have a way to use Tex or LaTeX formatting for their tick labels. One solution is to download