I have two coordinates, say x & y. I want to plot them on XY plane, with each reading of x & y by a dot. Is it possible?
2 views (last 30 days)
Show older comments
I have coordinates value, say point(x,y). For each input of point I want to show it on XY plane by a single dot. I don't want to show it by line.
0 Comments
Answers (1)
Stephen23
on 13 May 2015
Edited: Stephen23
on 13 May 2015
You just need to specify the third option LineSpec:
plot(x,y,'.')
"LineSpec — Line style, marker symbol, and colorstring
Line style, marker symbol, and color, specified as a string..."
followed by a description of all of those options! The documentation really is very useful like that :)
2 Comments
Stephen23
on 14 May 2015
Edited: Stephen23
on 14 May 2015
@rohit: Your plot does not seem to use lines linking the nodes, and this seemed to be your goal: "...by a single dot. I don't want to show it by line"
What exactly is the problem with that plot, given that it a) does not have lines (as you wished), and b) uses some shape (which could be a dot)? Please explain in more detail, or use a graphics program to show us what you want.
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!