Borrar filtros
Borrar filtros

Missing One entry in Legend while using Plotyy function

4 visualizaciones (últimos 30 días)
Hi everyone, I am plotting multiple graph using plotyy function. All the graphs are plotted but the legend section is not displaying the way i want to display it. Also there is one entry missing as well. I am doing it in this way. Any help guys?
set(get(AX1(1),'Ylabel'),'String','Blocking Probability Pb');
set(get(AX1(2),'Ylabel'),'String','System Throughput (Mbps)');
title('Blocking Probability & System Throughput vs Offered Traffic');
xlabel('Offered Traffic (Mbps)');
legend('System Blocking Probability','Erlang-B Model','System Throughput','Arbitary line','Location','NorthWest');

Respuesta aceptada

Star Strider
Star Strider el 21 de Abr. de 2015
I can’t get legend to work correctly with your plot either. It might be worthwhile to experiment with an annotation object to create something similar. Everything I tried — hold, tweaking the legend properties, tweaking the plots — failed.
I would Contact Support at MathWorks to see if they have a solution. Include the URL to your post here in the message.

Más respuestas (0)


Más información sobre Two y-axis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by