MATLAB visualization layout problem

조회 수: 2 (최근 30일)
Andrej DW
Andrej DW 2019년 12월 16일
댓글: Andrej DW 2020년 1월 16일
I have created very simple MATLAB visualization for my ThingSpeak channel, I have changed visualization background color and added this vocalization to my channel, for some reason which I don't understand I have here one white area which I can't disable:
My code:
hold on
h1 = histogram(allData(:,1));
h2 = histogram(allData(:,2));
h1.NumBins = 10;
h2.NumBins = 10;
title('Temperature');
grid on
set(gca,'color',uint8([238,238,238]))
set(gcf,'color',uint8([238,238,238]))
Do you know how to disable this area or at least change color of the area?

채택된 답변

Vinod
Vinod 2019년 12월 18일
The white bar is because the window color does not match the background color of the window in which the figure is displayed. We'll look into addressing this on the server side in an upcoming release.
In the mean time, you can comment the last two lines:
set(gca,'color',uint8([238,238,238]))
set(gcf,'color',uint8([238,238,238]))
and it should look better.
  댓글 수: 3
Vinod
Vinod 2020년 1월 15일
Are you still seeing the issue?
Andrej DW
Andrej DW 2020년 1월 16일
no, it looks perfect now, thank you for your support.
Untitled1.jpg

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

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by