how to scatter datapoint into an existing semilogplot?

3 views (last 30 days)
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!

Accepted Answer

Johannes
Johannes on 19 Dec 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

More Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!