help-octave
[Top][All Lists]
Advanced

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

Bug in plot, with code


From: GoSim
Subject: Bug in plot, with code
Date: Wed, 15 Jan 2020 16:27:15 -0600 (CST)

I am trying to accomplish to plot and then hold the plot and then add more
data to the plot. It doesn't work when I have this legend:

legend("wh","location","eastoutside")


only this legend works:
legend("wh")

when using the first one even if i use hold on before I plot, the old data
disappears. 

It only happens when using subplot, code:


close all
figure(1)
subplot(211)
hold
grid
plot([1 2],[1 2])
subplot(212)
hold
grid
plot([1 2],[1 2])

legend("wh","location","eastoutside")

subplot(211)
plot([4 5],[4 5])
subplot(212)
hold on
plot([4 5],[4 5])





--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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