double labels on x axis on a tiledlayout plot

Hi,
I would like to have two series of label on a tile in a tileled layout plot.
One axis would indicate time and another would indicate position.
How can I achive that?

답변 (1개)

Chidvi Modala
Chidvi Modala 2021년 3월 12일
편집: Walter Roberson 2024년 8월 18일

0 개 추천

You can put both axes in a "tiledlayout" (overlapping in the same tile), and then add the "axestoolbar" to the layout.
tl = tiledlayout(1,1)
axextoolbar(tl, 'default')
ax1 = axes(tl)
ax2= axes(tl)
ax2.Color = 'none'
ax2.YAxis.Visible = 'off'
ax2.XAxisLocation = 'top'

댓글 수: 1

What about 2 x-axes on only one of multiple tiled subplots?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

질문:

2021년 3월 9일

편집:

2024년 8월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by