Plotconfusion - How to adjust size?

8 ビュー (過去 30 日間)
Christopher
Christopher 2015 年 5 月 8 日
コメント済み: DGM 2021 年 3 月 22 日
Hello,
I am using the plotconfusion command to plot a confusion matrix. There are approximately 23 classes and the result of the plotconfusion command is a graphical confusion matrix, but the numbers are all scrunched up and on top of each other (impossible to read). I am ultimately trying to save the confusion matrix displayed to a png file, I really don't care about the display of it.
The closest I have found to a solution is to do something like: set(gca,'Units','normalized'); set(gca,'Position',[0 0 1 1]);
And then to save the confusion matrix that displays to a PNG file.
On my work computer, this still doesn't even give acceptable results because my screen simply isn't big enough. It also cuts off the bottom X axis labels. But on my home computer, the screen is bigger and the resized confusion matrix is almost acceptable, but still the numbers are not aligned. I have also been successful at making the font smaller (~6pt) and this works, but really I don't want to have to do that. I want to just produce a big image that we can scroll around on. To do this, do I really need to have a monitor the size of the image I want to produce?
My question is how can I save the PNG file and make the confusion matrix an arbitrary size without having to resort to maximizing the figure on my home computer and resizing the figure?
Thank you,
C

回答 (1 件)

AMAL targhi
AMAL targhi 2016 年 6 月 11 日
hi i have the same problem did u found the solution ?
  2 件のコメント
Viet Pham
Viet Pham 2021 年 3 月 22 日
Hi all, this is late but if you're still curious, use the Windowstate property like figure('WindowState','maximized') to get it maximized after calling the plotconfusion function.
DGM
DGM 2021 年 3 月 22 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by