Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

Image Analyst
Image Analyst il 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.

Più risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su Airfoil tools in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by