Borrar filtros
Borrar filtros

I need to add error bars to the "scatter" portion of the scatterhistogram plot.

2 visualizaciones (últimos 30 días)
I need to add error bars to the "scatter" portion of the scatterhistogram plot, but scatterhistogram does not support "hold on". Is there a way I can overcome this?
  1 comentario
Star Strider
Star Strider el 10 de Nov. de 2022
I created a scatterhistogram plot using data from the documentation and then looked at its properties. It doesn’t have a separately-addressable scatter plot that I can see by looking through them.
However if you use the older scatterhist function, it does have a distinct scatter plot you could probably plot the error bars on. I haven’t tried that, so I can’t be certain.
load fisheriris
x = meas(:,1);
y = meas(:,2);
hs = scatterhist(x,y)
hs =
1×3 Axes array: Axes Axes Axes
scp = hs(1)
ans =
Axes (scatter) with properties: XLim: [3.7560 8.2440] YLim: [1.6353 4.6647] XScale: 'linear' YScale: 'linear' GridLineStyle: '-' Position: [0.3500 0.3500 0.5500 0.5500] Units: 'normalized' Show all properties
.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by