Effacer les filtres
Effacer les filtres

Skipping plot entries on gscatter

2 vues (au cours des 30 derniers jours)
nicole
nicole le 3 Mar 2023
Commenté : nicole le 5 Mar 2023
Hello,
I would like to use gscatter
gscatter(ax, x, y, g ,clr ,sym, siz, isfilled)
I want to change x, y, g, and the size, but leave the color and symbols untouched (default) without having to specify anything:
(allpHs, allkds, alltemps, defaultcolor, defaultsymbol, size=40)
but when I try to do this:
gscatter(alldataoxides.pHs, alldataoxides.kds, alldataoxides.Temperature, 'size', 40)
I get an error saying that I must define the color and symbol, this is a hastle as I have a lot of data and dont want to define the color for each plot.
How do I keep the color and symbol default, but change the size of the markers?

Réponse acceptée

Cris LaPierre
Cris LaPierre le 3 Mar 2023
Modifié(e) : Cris LaPierre le 3 Mar 2023
You can use empty brackets to have those options use the default setting.
gscatter(alldataoxides.pHs, alldataoxides.kds, alldataoxides.Temperature, [],[],40);
Here's an example
load carsmall
gscatter(Displacement,Horsepower,Model_Year,[],[],40)
Just to show that it is using the default color and symbols
figure
gscatter(Displacement,Horsepower,Model_Year)
  1 commentaire
nicole
nicole le 5 Mar 2023
thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox 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!

Translated by