[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

is it possible to reorder plots?

From: Leonardo
Subject: is it possible to reorder plots?
Date: Thu, 23 Jul 2020 21:38:42 +0000 (UTC)


if you run

>> clear all
>> x = 1:10;
>> y1 = x + 1;
>> y2 = -x + 10;
>> p1 = plot(x,y1,"r","LineWidth",5);
>> hold on
>> p2 = plot(x,y2,"k","LineWidth",5);

plot p2 will be over p1.

If I want p1 over p2 I could just reverse the sequence of commands (plot p2 and then plot p1).

But my question is:

Is it possible to put p1 over p2 without reversing the order of commands, I mean, if p1 and p2 are already plotted, is is possible to reorder the plots in a figure?

Is there a field that keeps the "children order" or "plot order"?

Kind regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]