Mirror about Y axis

4 visualizaciones (últimos 30 días)
juan sanchez
juan sanchez el 11 de Mayo de 2022
Comentada: juan sanchez el 11 de Mayo de 2022
How can I plot this axis to the mirror about the y axis and x axis pointing the opposite direction? Thank you.
a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
plot (a, b,'.')

Respuesta aceptada

DGM
DGM el 11 de Mayo de 2022
Something like this:
a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
plot(a,b);
hax = gca;
hax.XDir = 'reverse'; % flip axis direction
hax.YAxisLocation = 'right'; % move ticks & labels to the other side
  1 comentario
juan sanchez
juan sanchez el 11 de Mayo de 2022
Thank you very much. This is very helpful.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by