TickLogLocator
Version 1.0.0 (35.3 KB) by
Erick Martinez Loran
This function formats a log scale axis
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 (2023). TickLogLocator (https://github.com/erickmartinez/matlab_tickloglocator), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2019a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Find more on Subplots in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
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.