TickLogLocator

This function formats a log scale axis
7 Downloads
Updated 13 Jun 2019

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 (2024). TickLogLocator (https://github.com/erickmartinez/matlab_tickloglocator), GitHub. Retrieved .

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!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.