'Linewidth' property with Histogram function

11 visualizaciones (últimos 30 días)
Arla
Arla el 17 de Sept. de 2015
Respondida: Thorsten el 17 de Sept. de 2015
I am trying to change the LineWidth property of a histogram function with DisplayStyle 'stairs', however h.LineWidth does not exist and gives an error:
Error using matlab.graphics.chart.primitive.Histogram/set There is no LineWidth property on the Histogram class.
  1 comentario
Adam
Adam el 17 de Sept. de 2015
So far as I can see there is no option to change the line width for a histogram.

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 17 de Sept. de 2015
Get the counts with your favorite histogram function, then use bar(), plot(), or something to plot it.

Thorsten
Thorsten el 17 de Sept. de 2015
stairs(counts, 'LineWidth', 2)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by