Specifying both marker type and marker size in a 'scatter' call

124 views (last 30 days)
z8080
z8080 on 9 Jan 2019
Commented: z8080 on 10 Jan 2019
From the documentation of the scatter command, it seems that markers can be specified in their type or in their size, but not in both, depending on which syntax is used to call the function. Indeed, there is no specific MarkerSize property to this command.
How can I specify the markers' type and size simultaneously, in the same scatter command, or what is an easy workaround if it cannot be done with one command?
Many thanks!

Accepted Answer

Adam Danz
Adam Danz on 9 Jan 2019
Edited: Adam Danz on 9 Jan 2019
Check out the 3rd input to scatter()
If you're changing the size after plotting,
h = scatter(x,y);
h.SizeData = 60;
  3 Comments

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2016a

Community Treasure Hunt

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

Start Hunting!