How can I add axes on top and right?

Exactely like this.
Not different axes, I just want to add on top and right same x and y axes to make a kind of "cornice", same colour, same axis and no label!
Thank you very much.

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 8 de Jun. de 2023
Editada: KALYAN ACHARJYA el 8 de Jun. de 2023
This way
legend('Case 1', 'case 2');
legend_data= legend('Line 1', 'Line 2');
legend_data.Location = 'northwest';

6 comentarios

Martina Artioli
Martina Artioli el 8 de Jun. de 2023
Thanks for the answer. I'm sorry but I didn't understand, I'm referring to axis and not to legend. I want to make a "square" with my x and y axis adding axis on top and on right.
KALYAN ACHARJYA
KALYAN ACHARJYA el 8 de Jun. de 2023
Are you talking about ticker?
Martina Artioli
Martina Artioli el 8 de Jun. de 2023
I want to make this plot:
similar to the one posted above
Martina Artioli
Martina Artioli el 11 de Jun. de 2023
Yes!!!!! Many tthanks
KALYAN ACHARJYA
KALYAN ACHARJYA el 12 de Jun. de 2023
Glad to know that it worked.

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 8 de Jun. de 2023

Comentada:

el 12 de Jun. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by