how to scatter datapoint into an existing semilogplot?

5 visualizaciones (últimos 30 días)
Johannes
Johannes el 19 de Dic. de 2018
Respondida: Johannes el 19 de Dic. de 2018
Hey,
I have got an existing semilogx plot with data from literature. Now i would like to scatter my own measurements into that existing figure. The problem is, that even two semilogx with hold on aren't possible without getting back to normal scaled axes. I need the scatter function to color my datapoints by a third variable. Is there a way to get this two plots in one figure?
Thanks!

Respuesta aceptada

Johannes
Johannes el 19 de Dic. de 2018
Ok, I found the answer by myself
hold on
plot(x1,y1,x2,y2);
scatter(x3,y3,[],z3);
set(gca,'xscale','log')
grid on

Más respuestas (0)

Categorías

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

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by