how can I adjust the axes for the table

3 visualizaciones (últimos 30 días)
rohail khan
rohail khan el 29 de Mzo. de 2018
Comentada: rohail khan el 2 de Abr. de 2018
Hi, I have the following two objects.
I have plotted them as :
How can I change the dimensions of the axes so that the plot can fit normally. Thanks
  2 comentarios
Peter Perkins
Peter Perkins el 2 de Abr. de 2018
Nothing to do with your question, but you might find this more convenient to make the plot:
plot(nzpopulation.VarName1,nzpopulation.VarName2,'o')
There's no reason to create Nx1 tables, and dot subscripting is simpler than braces when referring to one variable.
rohail khan
rohail khan el 2 de Abr. de 2018
thanks.Yes its more convenient.I will try that

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Mzo. de 2018
ax = gca;
ax.YRuler.Exponent = 0;
This will cause the "x 10^6" to turn off, giving whole numbers on the y axes.
  2 comentarios
rohail khan
rohail khan el 29 de Mzo. de 2018
Editada: rohail khan el 29 de Mzo. de 2018
thank you so much Walter. Can I use 'AXIS' command?
Walter Roberson
Walter Roberson el 29 de Mzo. de 2018
There is no axis command that can turn off that exponent.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Properties 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