File Exchange

image thumbnail

simpleAxis

version 1.0.0.0 (1.95 KB) by Matthew Kelly
Replaces default axis with two lines, at specified locations.

0 Downloads

Updated 30 Dec 2015

View License

% simpleAxis(extents, yLevel, xLevel, lineWidth, lineColor)
%
% This function replaces the current (labeled) axis with a simplified axis
% made up of two straight lines. This is designed to be used when
% generating figures for papers where the axis labels are not important or
% will be added through post processing.
%
% INPUTS:
% extents = [xLow, xUpp, yLow, yUpp] = axis extents
% yLevel = y-intercept for the x-axis. Default behavior: ( set to [] )
% if yLow < 0 < yUpp --> yLevel = 0
% else yLevel = yLow
% xLevel = x-intercept for the y-axis. Default behavior: ( set to [] )
% if xLow < 0 < xUpp --> xLevel = 0
% else xLevel = xLow
% lineWidth = axis line width. Default: 1
% lineColor = axis line color. Default: [0,0,0]
%

Cite As

Matthew Kelly (2019). simpleAxis (https://www.mathworks.com/matlabcentral/fileexchange/54676-simpleaxis), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux