Effacer les filtres
Effacer les filtres

How to display Multiple Strings and a Pie Diagram on the MATLAB figure

3 vues (au cours des 30 derniers jours)
jupiter
jupiter le 16 Déc 2016
Commenté : the cyclist le 16 Déc 2016
I need to display multiple strings and a pie chart on the same MATLAB figure. Is it possible ? I know how to display them separately.

Réponse acceptée

the cyclist
the cyclist le 16 Déc 2016
rng default
figure
hold on
pie(rand(7,1))
axis equal
text(0.2,-0.6,'Do you mean')
text(0.2,-0.7,'like this?')
  3 commentaires
the cyclist
the cyclist le 16 Déc 2016
That would have been good information to put in your original question.
the cyclist
the cyclist le 16 Déc 2016
rng default
figure
hold on
pie(rand(7,1))
axis equal
text(-1.2,1.3,'You can create some text anywhere')
text(0.2,1.3,'But you might need to adjust the figure size like I did')
set(gcf,'OuterPosition',[400 200 600 600])
set(gca,'visible','off')

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by