# how to plot clearer angle yticklabels at whole fractions of 360° (and/or fractions of pi, for radians) in stead of decimal

3 views (last 30 days)

Show older comments

##### 0 Comments

### Answers (1)

Iain
on 20 Oct 2014

Edited: Iain
on 20 Oct 2014

You can change where the ticks go:

set(axishandle,'YTick', [0 4 6 8 ...] )

You can change the labels as you like:

set(axishandle,'YTickLabel', {'Five' 'Banana' .... } )

##### 2 Comments

Iain
on 20 Oct 2014

Ok, what you CAN do is:

1. Determine the X/Y limits of the chart.

2. Figure out where you want your ticks to go. - Say every 8th of the range, rounded to the nearest nice value?

3. Issue the set tick location & label commands.

4. Attach that code to the zoom, pan & rotate callbacks...

### See Also

### Categories

### Products

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!