How to assign a reference point in graph?
Mostrar comentarios más antiguos
how to assign reference point(0,0) at left top corner like following figure?

Respuesta aceptada
Más respuestas (2)
Muhammad Usman Saleem
el 6 de Abr. de 2016
Editada: Muhammad Usman Saleem
el 6 de Abr. de 2016
UPDATE 1:
may try this
plot(1:10)
box off
axes('xlim', [1 10], 'ylim', [1 10], 'color', 'none', 'YAxisLocation', 'right', 'XAxisLocation', 'top')
or may try this
t=0:0.1:10;
y=sin(t);
plot(t,y)
set(gca,'XAxisLocation','top','YAxisLocation','left','ydir','reverse');
3 comentarios
LAKSHMANAN ADAIKKAPPAN
el 6 de Abr. de 2016
Walter Roberson
el 6 de Abr. de 2016
No, the key is YDir reverse
LAKSHMANAN ADAIKKAPPAN
el 6 de Abr. de 2016
Editada: LAKSHMANAN ADAIKKAPPAN
el 6 de Abr. de 2016
Steven Lord
el 6 de Abr. de 2016
plot(1:10, 1:10);
axis ij
Or if you have the handle of your axes object already, change its YDir property to 'reverse' as Walter showed.
1 comentario
LAKSHMANAN ADAIKKAPPAN
el 6 de Abr. de 2016
Categorías
Más información sobre Graphics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
