Double X-axis code

조회 수: 1 (최근 30일)
Steve
Steve 2011년 7월 19일
I have created a graph with the Xticklabels of 1,3,5,7,9,1,3,5,7,9.
These ticks represent blocks 1,3,5,7,9, for both of days 1 and 2 of an experiment. I am looking to create a label for each of these sets of blocks separately, with a label of "Day 1" and "Day 2" under each section. If possible I would like to have a line in between in order to visually separate these days. I would then need a centered line below simply saying "Response Blocks". I have been able to do this using the xlabel function and inserting many spaces in between the Days, but I want to be able to keep this spacing consistent and relative to the graph if I decide to alter the size of the graph.
Any Ideas?
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2011년 7월 19일
Post some code or upload a sketch on tinypic and post it here with <<url>>

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

답변 (1개)

Sean de Wolski
Sean de Wolski 2011년 7월 20일
This could be done using annotation and text though it won't be fun
doc annotate
doc text

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by