Matlab Scatter Plot: Adding Colored Point

  • Context: MATLAB 
  • Thread starter Thread starter Poisonous
  • Start date Start date
  • Tags Tags
    Matlab Plot
Click For Summary
SUMMARY

The discussion focuses on adding a colored point to an existing scatter plot in MATLAB. The user initially attempted to use the scatter function with incorrect parameters, specifically omitting the size parameter. The correct usage of the scatter function is highlighted, emphasizing the need for specifying the size of the point. The official MATLAB documentation link is provided for further reference.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of scatter plot functions in MATLAB
  • Knowledge of MATLAB syntax for plotting
  • Basic grasp of data visualization concepts
NEXT STEPS
  • Review the MATLAB scatter function documentation at http://www.mathworks.com/help/techdoc/ref/scatter.html
  • Practice using the scatter function with various size parameters
  • Explore MATLAB's hold on/off functionality for layering plots
  • Learn about customizing plot colors and markers in MATLAB
USEFUL FOR

This discussion is beneficial for MATLAB users, data analysts, and anyone involved in data visualization who seeks to enhance their scatter plot presentations.

Poisonous
Messages
26
Reaction score
0
I have a scatter plot of data already created. I want to add a different colored point to the plot at specific coordinates. How can I do this? I tried using hold on, plotting my data, then writing scatter(1,0,r) hold off to plot a red point at (1,0) but its not working.
 
Physics news on Phys.org

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 14 ·
Replies
14
Views
4K