Axes Appearance - MATLAB & Simulink (2024)

Modify axis limits and tick values, add grid lines, combine multiple plots

You can customize axes by changing the limits, controlling the locations of the tick marks, formatting the tick labels, or adding grid lines. You also can combine multiple plots, either using separate axes in the same figure, or by combining the plots in the same axes, with the option to add a second y-axis.

Functions

expand all

Limits

xlimSet or query x-axis limits
ylimSet or query y-axis limits
zlimSet or query z-axis limits

Scale

xscaleSet or query x-axis scale (linear or logarithmic) (Since R2023b)
yscaleSet or query y-axis scale (linear or logarithmic) (Since R2023b)
zscaleSet or query z-axis scale (linear or logarithmic) (Since R2023b)

Plot Box and Aspect Ratio

boxDisplay axes outline
tightPositionPosition of axes plotting area (Since R2022b)
axisSet axis limits and aspect ratios
daspectControl data unit length along each axis
pbaspectControl relative lengths of each axis

Tick Values

xticksSet or query x-axis tick values
yticksSet or query y-axis tick values
zticksSet or query z-axis tick values
xtickformatSpecify x-axis tick label format
ytickformatSpecify y-axis tick label format
ztickformatSpecify z-axis tick label format
ruler2numConvert data from specific ruler to numeric data
num2rulerConvert numeric data for use with specific ruler

Grid Lines and Tick Marks

gridDisplay or hide axes grid lines
xtickangleRotate x-axis tick labels
ytickangleRotate y-axis tick labels
ztickangleRotate z-axis tick labels

Labels

xticklabelsSet or query x-axis tick labels
yticklabelsSet or query y-axis tick labels
zticklabelsSet or query z-axis tick labels
xsecondarylabelSet x-axis secondary label (Since R2023b)
ysecondarylabelSet y-axis secondary label (Since R2023b)
zsecondarylabelSet z-axis secondary label (Since R2023b)

Combining Plots

holdRetain current plot when adding new plots
yyaxisCreate chart with two y-axes
legendAdd legend to axes

Customizing Multiple Data Series

colororderSet or query color order palette (Since R2019b)
orderedcolorsColor palettes for visualizing multiple data series (Since R2023b)
linestyleorderSet or query line style order (Since R2024a)

Tiling Plots

tiledlayoutCreate tiled chart layout for displaying subplots (Since R2019b)
nexttileCreate axes in tiled chart layout (Since R2019b)
tilenumTile location numbers in tiled chart layout (Since R2022b)
tilerowcolRow and column numbers in tiled chart layout (Since R2022b)
subplotCreate axes in tiled positions
claClear axes
clfClear figure
axesCreate Cartesian axes
figureCreate figure window

Properties

Axes Properties Axes appearance and behavior
Legend PropertiesLegend appearance and behavior
TiledChartLayout PropertiesTiled chart layout appearance and behavior (Since R2019b)

Topics

Limits, Ticks, and Grids

  • Specify Axis Limits
    Control where data appears in the axes by setting the axis limits.
  • Specify Axis Tick Values and Labels
    Customize the tick values and labels along an axis, such as editing the tick value placement or modifying the tick label text and formatting.
  • Add Grid Lines and Edit Placement
    Add grid lines to a graph and modify their placement and appearance.
  • Using Graphics Smoothing
    This example shows how to use graphics and font smoothing in your plots.

Multiple Plots

  • Combine Multiple Plots
    Show multiple plots together in the same figure, either by combining the plots in the same axes or by creating a tiled chart layout. (Since R2019b)
  • Create Chart with Two y-Axes
    Create a chart with y-axes on both the left and right sides.
  • Modify Properties of Charts with Two y-Axes
    Modify charts with two y-axes by setting axes properties or by accessing the underlying ruler objects.
  • Display Data with Multiple Scales and Axes Limits
    Learn about techniques for visualizing data with multiple x- and y-axes, multiple colorbars, or with an x-axis that is broken into intervals.
  • Customized Presentations and Special Effects with Tiled Chart Layouts
    Explore the different ways you can use a tiled chart layout to arrange the elements in a visualization.

Size and Aspect Ratio

  • Control Ratio of Axis Lengths and Data Unit Lengths
    Control the axis and data unit lengths by setting the plot box aspect ratio and the data aspect ratio.
  • Control Axes Layout
    Control the axes size and position, the layout of titles and labels, and the axes resize behavior.
  • Clipping in Plots and Graphs
    This example shows how MATLAB® uses clipping in plots and how to control clipping.

MATLAB Command

You clicked a link that corresponds to this MATLAB command:

 

Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

Axes Appearance- MATLAB & Simulink (1)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
  • 日本 (日本語)
  • 한국 (한국어)

Contact your local office

Axes Appearance
- MATLAB & Simulink (2024)
Top Articles
Exohydrax Kick
She Got Me Up All Night Singing These Love Songs
Craigslist Myrtle Beach Motorcycles For Sale By Owner
Forozdz
Metra Union Pacific West Schedule
7 Verification of Employment Letter Templates - HR University
The Daily News Leader from Staunton, Virginia
Santa Clara College Confidential
Seething Storm 5E
Tabler Oklahoma
Fallout 4 Pipboy Upgrades
Lantana Blocc Compton Crips
Sitcoms Online Message Board
What Does Dwb Mean In Instagram
Urban Dictionary Fov
Programmieren (kinder)leicht gemacht – mit Scratch! - fobizz
Immediate Action Pathfinder
Nitti Sanitation Holiday Schedule
Arboristsite Forum Chainsaw
The Superhuman Guide to Twitter Advanced Search: 23 Hidden Ways to Use Advanced Search for Marketing and Sales
Truck Trader Pennsylvania
623-250-6295
Gia_Divine
18889183540
Today Was A Good Day With Lyrics
THE FINALS Best Settings and Options Guide
What Individuals Need to Know When Raising Money for a Charitable Cause
Trinket Of Advanced Weaponry
Remnants of Filth: Yuwu (Novel) Vol. 4
By.association.only - Watsonville - Book Online - Prices, Reviews, Photos
Delta Math Login With Google
Duke University Transcript Request
LG UN90 65" 4K Smart UHD TV - 65UN9000AUJ | LG CA
Earthy Fuel Crossword
Cbs Trade Value Chart Week 10
new haven free stuff - craigslist
Joplin Pets Craigslist
Tgh Imaging Powered By Tower Wesley Chapel Photos
Cvb Location Code Lookup
Devotion Showtimes Near Mjr Universal Grand Cinema 16
Tugboat Information
Spn-523318
2020 Can-Am DS 90 X Vs 2020 Honda TRX90X: By the Numbers
Lacy Soto Mechanic
LumiSpa iO Activating Cleanser kaufen | 19% Rabatt | NuSkin
Rocket Lab hiring Integration & Test Engineer I/II in Long Beach, CA | LinkedIn
Zipformsonline Plus Login
Poster & 1600 Autocollants créatifs | Activité facile et ludique | Poppik Stickers
300 Fort Monroe Industrial Parkway Monroeville Oh
King Fields Mortuary
Volstate Portal
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 6264

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.