yyaxis right : no scientific notation
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
vijay rs
el 6 de Feb. de 2021
Comentada: Star Strider
el 6 de Feb. de 2021
Hi,
I am new to matlab. Trying to plot grap with 2 yaxis. I am trying to remove the scientific notation from yyaxis right using gca command but unable to do it. As shown in attached figure I need simple number format in yyaxis right. Can advice how to remove the scientific notation from yyaxis right.
My code is below
------
gdp = readtable(‘Zgdp’);
gdpx = gdp.DateTime;
gdpy = gdp.Value;
pop = readtable(‘ZPop’);
popy = pop.Value;
popx = pop.DateTime;
ax = gca;
ax.FontSize = 15;
yyaxis left
ar = area(gdpx, popy);
set(gca,'YLim', [0 2200])
yyaxis right
p2 = plot(gdpx,gdpy,'k');
set(gca,'YLim',[0 22000])

0 comentarios
Respuesta aceptada
Star Strider
el 6 de Feb. de 2021
4 comentarios
Star Strider
el 6 de Feb. de 2021
As always, my pleasure!
In most instances, MATLAB is case-sensitive. There are a few exceptions with respect to the get and set function arguments (there may be a few others), however those are very rare exceptions.
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots 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!