View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.0 | 3 ratings Rate this file 4 Downloads (last 30 days) File Size: 2.56 KB File ID: #27010 Version: 1.1
image thumbnail



Alan B (view profile)


18 Mar 2010 (Updated )

Automatically replaces xticklabels with rational multiples of pi.

| Watch this File

File Information

- picks reasonable limits and ticks
- uses latex for pretty fractions if necessary
- replaces old labels produced by previous calls
- does NOT autocorrect on zoom/pan/resize

- choose limits as smallest n such that pi/n < x_data_range
- optional: increase n to next smallest "round" number
  - "round" means "power of 2" right now; could be a*b^n with a<b, 2^a*3^b, etc
- choose step size as smallest d that ensures at least L tick marks

I'm sure there are plenty of bugs

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
24 Nov 2014 Chris FUNG

24 Nov 2014 Chris FUNG

19 Mar 2010 Jonas Lundgren

Jonas Lundgren (view profile)

I like this! It would be nice if the y-labels got the same font. Some parameters should be arguments, e.g. FONT_SIZE and MIN_TICKS.

18 Mar 2010 1.1

added tags

Contact us