Is it possible to subplot confusion matrices?
4 views (last 30 days)
Show older comments
Gyorgy Levay
on 3 Jul 2016
Commented: Gyorgy Levay
on 3 Jul 2016
I'm plotting several confusion matrices using plot_confusion() function and want to put them in a subplot (2x5 figures), but it does not seem to work as it would with other figure types. Are there any restriction for plotting confusion? Thanks!
0 Comments
Accepted Answer
Walter Roberson
on 3 Jul 2016
If you refer to plotconfusion() from the Neural Network toolbox, then unfortunately No. I just checked the code for it: if there is a "current figure" then it always clears the entire figure with clf(); if there is no "current figure" then it always creates a new figure. There is no direct way to subplot() it.
What you might be able to do is ensure there is no current figure, then let it generate a new figure, and afterwards go into the figure and extract the parts of interest and move them into a subplot in the place you want, and then delete that figure that it generated.
More Answers (0)
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!