O'Reilly logo

MATLAB Graphics and Data Visualization Cookbook by Swapnonil Banerjee, Nivedita Majumdar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Laying out long tick labels without overwriting

You used axis labels in the Making your first MATLAB plot recipe. Another kind of label used in graphs is tick labels, which are the numeric or alphanumeric labels associated with the tick marks on the axes. When the plotting-related commands are invoked, MATLAB sets a default positioning and numerical tick labels. As this recipe shows, you can customize the content and positioning of these labels. When you have long tick labels (such as dates), this recipe shows how to rotate the labels by an arbitrary angle to avoid overwriting.

Getting ready

In this recipe, you will use gene expression data from 16,063 genes on 14 types of cancer for 198 samples. This data is part of the code repository accompanying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required