Hi community, I am ploting a figure and i want to center the figure in the plot

2 views (last 30 days)
When i plot my figure it apears like a little dot with gigantic scales, I want that when the plot opens up, it opens exactly where the figure is. Here is the example:
plot(d(:,1),d(:,2),'.')
d = 1.0e+03 *
0.0010 0
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0009 -0.0000
0.0009 -0.0000
0.0009 -0.0000
0.0009 -0.0000
0.0009 -0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0007 0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0 0
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0
9.9619 0.8716

Accepted Answer

Image Analyst
Image Analyst on 5 Apr 2014
What's up with the last value? It's like 10,000 times as big as any of the other values. So all your values are crammed into a microscopic area near the origin because it has to expand the axes to be able to show your last value of d. Are you sure that's how you want to do it? If that value is not there, it does plot stuff you can see.

More Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 5 Apr 2014
Edited: Azzi Abdelmalek on 5 Apr 2014
Just use
plot(d(:,1),d(:,2))
  4 Comments
Jacob
Jacob on 5 Apr 2014
Actually plot(d(1:end-1,1),d(1:end-1,2),'.') makes more sense! Thank you very much

Sign in to comment.

Categories

Find more on Airfoil tools in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!