File Exchange

image thumbnail

TickLogLocator

version 1.0.0 (35.3 KB) by Erick Martinez Loran
This function formats a log scale axis

1 Download

Updated 13 Jun 2019

From GitHub

View license on GitHub

Usage:

Generate data

`x = linspace(0,10,50);`
`y = exp(x);`

Plot data

`plot(x,y)`

Get the handle to the figure axis

`ax = gca;`
`set(ax,'yscale','log')`

Format the y axis with ticks separated every two decades:

`TickLogLocator(ax.YAxis,2);`

Cite As

Erick Martinez Loran (2021). TickLogLocator (https://github.com/erickmartinez/matlab_tickloglocator), GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!