Delete axis, keep legend
Afficher commentaires plus anciens
I need to have a subplot with an empty axis, but with a legend. My workaround to put a title on an empty subplot was:
if isempty(data) % Failsafe for empty section
pie(1); % Plots any pie chart
title(data_title);
cla; % Clears axis
end
But it does not work for the legend, it vanishes with it.
How can I deal with it?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Distribution Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
