필터 지우기
필터 지우기

Can not add box and ticks to a colorbar

조회 수: 4 (최근 30일)
qaqcvc
qaqcvc 2020년 8월 17일
답변: qaqcvc 2020년 8월 23일
Hi guys, I can not add box and ticks to my colorbar. My code is
surf(xx,yy,zz)
cb = colorbar;
cb.Ticks = [13 15 17 19];
cb.TickDirection = 'out';
cb.TickLabelInterpreter = 'latex';
cb.Box = 'on';
cb.Position = [0.88 0.15 0.03 0.7];
cb.FontSize = 8;
Then I got this figure
I have tried to make the box on the changed the ticks length, but nothing happened.
If I use export_fig to output pdf files. I got:
You seem to be using axes that have overlapping/hidden graphic elements.
Setting axes.SortMethod='ChildOrder' may solve potential problems in EPS/PDF export.
But I don't understand the meaning.
The output pdf file has ticks and the box as shown:
Any idea?
Thanks!
  댓글 수: 4
Adam Danz
Adam Danz 2020년 8월 17일
편집: Adam Danz 2020년 8월 17일
I have r2019b but you'll need to provide a complete example that I can copy-paste (and perhaps load variables) so I can run it. Make sure the example produces the problem on your end.
Also, check that you're using the most up-do-date version of export_fig. The author has recently made updates.
qaqcvc
qaqcvc 2020년 8월 23일
This problem is from my AMD graphic driver.
After updating my AMD graphic driver, the problem is solved.

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

채택된 답변

qaqcvc
qaqcvc 2020년 8월 23일
This problem is from my AMD graphic driver.
After updating my AMD graphic driver, the problem is solved.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by