Azzera filtri
Azzera filtri

How does one assign a different maker to each scatter without having to call scatter multiple times?

1 visualizzazione (ultimi 30 giorni)
How does one assign a different maker to each scatter without having to call scatter multiple times?
Is it possible to do this? Similar to the way lscatter works? I want to have a markers list that its index corresponds to data and marker (and color if possible).

Risposte (1)

Walter Roberson
Walter Roberson il 22 Lug 2018
Sorry, the internal objects only permit one shape for each scatter call.
To create the markers list, scatter() or plot() multiple times recording the handles, using nan as the coordinates, and legend() against the handles. The objects will not be visible on screen because of the nan coordinates, but the appropriate handles will be generated for legend purposes.

Categorie

Scopri di più su Specifying Target for Graphics Output in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by