How to plot an overlay curve on the figure attached here.

Hello,
The code for the attached/copied figure is
figure, p = pcolor(b,a,c); p.EdgeColor = 'none'; axis ij; ylim([500 2500]); colorbar; title('abc');
ylabel('Time (ms)'); colormap(jet); grid on
I want to plot a straight line or a curve between (showing relation) a vs. c at x axis where b = 6000. Suppose the curve a vs c has same dimension like the data plotted here as p = pcolor(b,a,c);. How can I plot here.

 Respuesta aceptada

Use
hold on
then plot the graph.
plot(x,y)

3 comentarios

@Kevin Holly thanks, but I want to plot a vs c at some particular value of b, then I can I add here
hold on
plot(a,c) but how to add d value/ position at x axis?
Kevin Holly
Kevin Holly el 31 de Ag. de 2021
Editada: Kevin Holly el 31 de Ag. de 2021
@Nisar Ahmed I'm not entirely sure what you are asking.
Are you trying to plot this?
plot(a,c(6000,:))
This would plot the values along the vertical line shown below.
figure
p = pcolor(b,a,c);
p.EdgeColor = 'none';
axis ij; ylim([500 2500]);
colorbar;
title('abc');
ylabel('Time (ms)');
colormap(jet);
grid on
hold on
xline(6000)
@Kevin Holly Thanks,
I ploted first by using hold on and then by adding some distance on x axis. just like
hold on
plot(b+2393.598,a);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Color and Styling en Centro de ayuda y File Exchange.

Preguntada:

el 27 de Ag. de 2021

Comentada:

el 1 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by