Is it possible to subplot confusion matrices?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gyorgy Levay
le 3 Juil 2016
Commenté : Gyorgy Levay
le 3 Juil 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 commentaires
Réponse acceptée
Walter Roberson
le 3 Juil 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Axis Labels dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!