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)
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.

Answers (1)

Stephen23
Stephen23 on 13 May 2015
Edited: Stephen23 on 13 May 2015
You just need to specify the third option LineSpec:
plot(x,y,'.')
The LineSpec option is described in the plot documentation:
"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
Rohit
Rohit on 13 May 2015
Edited: Rohit on 13 May 2015
I meant, i don't want to relate values, & second thing is, if values are present on all four quadrants. So I don't want to show it by any line.
Image will help you what I'm trying to plot.
Stephen23
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.

Sign in to comment.

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!