How to change the order of lines in a Matlab figure?

后端 未结 4 966
旧巷少年郎
旧巷少年郎 2020-12-08 13:55

Given a plot of three curves in a .fig file I\'d like to add another plot (with hold all and plot), but put it behind one of the already e

4条回答
  •  执笔经年
    2020-12-08 14:56

    The resolution given by @Jonas using 'Children' property does not work in its given format. It should be modified as follows:

    chH = get(gca,'Children')
    set(gca,'Children',flipud(chH))
    

提交回复
热议问题