MATLAB visualization layout problem

2 views (last 30 days)
Andrej DW
Andrej DW on 16 Dec 2019
Commented: Andrej DW on 16 Jan 2020
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?

Accepted Answer

Vinod
Vinod on 18 Dec 2019
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 Comments
Vinod
Vinod on 15 Jan 2020
Are you still seeing the issue?
Andrej DW
Andrej DW on 16 Jan 2020
no, it looks perfect now, thank you for your support.
Untitled1.jpg

Sign in to comment.

More Answers (0)

Communities

More Answers in the  ThingSpeak Community

Categories

Find more on ThingSpeak in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!