How to plot the maximum regions given several functions in a 2D plot?
Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
0 votes
Partagez un lien vers cette question

Réponse acceptée
0 votes
10 commentaires
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- We create one extra graphics object for each legend entry we wish to add
- We pass only the handles for those exttra graphics objects to legend(). When you pass legend() a series of graphics objects, it will create legend entries only for the handles you pass in -- in particular in this case, it would not create a legend entry for the surface created by pcolor, just for the plot handles stored in the fake vector
- We give Nan coordinates for the extra graphics objects that we are creating just for the purpose of creating legend entries. Graphics objects such as lines and surfaces are only visible if they have some finite coordinates (and in some cases at least multiple adjacent finite coordinates.) You could use inf or -inf for the coordinates instead of NaN, but NaN tends to be used as a matter of informal convention (using NaN instead of -inf or inf makes it easier to do some calculations on the data.)
- We do not simply use graphics objects with regular finite coordinates but set Visible off for them, because the finite coordinates can influence what MATLAB picks for the tick positions and how much data is to be visible; non-finite coordinates are ignored for the purpose of calculating such things
Partagez un lien vers ce commentaire

Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire

Partagez un lien vers ce commentaire
Plus de réponses (0)
Catégories
En savoir plus sur Data Distribution Plots dans Centre d'aide et File Exchange
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
