Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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

Respuesta aceptada

Image Analyst
Image Analyst el 5 de Abr. de 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.

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 5 de Abr. de 2014
Editada: Azzi Abdelmalek el 5 de Abr. de 2014
Just use
plot(d(:,1),d(:,2))
  4 comentarios
Jacob
Jacob el 5 de Abr. de 2014
Actually plot(d(1:end-1,1),d(1:end-1,2),'.') makes more sense! Thank you very much

Iniciar sesión para comentar.

Categorías

Más información sobre Airfoil tools en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by