Plotting very small values using bar command

8 visualizaciones (últimos 30 días)
Ahmad Bilal
Ahmad Bilal el 17 de Jul. de 2018
Comentada: Swati Sarangi el 4 de Dic. de 2020
Hi, I have a series of data such as 1.11134,0.01823643,0.08337726 and so on. Can anybody guide how can i plot this series of numbers using bar command. Thank you.
  3 comentarios
Ahmad Bilal
Ahmad Bilal el 17 de Jul. de 2018
i want to plot series of very small numbers using bar command. but when i try to execute the code the figure comes empty.
jonas
jonas el 17 de Jul. de 2018
Editada: jonas el 17 de Jul. de 2018
Can you show us your code so far? If possible, attach the data as well

Iniciar sesión para comentar.

Respuesta aceptada

Pawel Jastrzebski
Pawel Jastrzebski el 17 de Jul. de 2018
If you have a mix of relatively high and low values, you might want to consider using the logarithmic scale for the y-axis, i.e.:
y = [1.11134,0.01823643,0.08337726];
figure
ax = gca();
b = bar(y);
set(ax,...
'YScale','log');
  2 comentarios
Ahmad Bilal
Ahmad Bilal el 21 de Jul. de 2018
Thanks. It works
Swati Sarangi
Swati Sarangi el 4 de Dic. de 2020
Hi,
How can I set axis property for small values of the order 10^(-10)?

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by