On Fri, 6 Jan 2023 15:43:07 +0100
Alexandre Christe via ntg-context
Dear list,
Is there a way to "continue" an MP figure? Like keeping the axes, etc. and just adding code to the figure?
Maybe I missed something, otherwise I'd find it super useful.
Thanks in advance and happy new year, Alex
Another solution is to save the picture: \startMPcode draw fullcircle scaled 1cm ; picture mypicture ; mypicture := currentpicture ; \stopMPcode Then, the next call to \startMPcode (or whatever you use) will have access to the saved picture. \startMPcode currentpicture := mypicture ; draw unitsquare scaled 1cm withcolor red ; \stopMPcode currentpicture is reset for each MP call. Of course, you must not use save mypicture ; picture mypicture ; because that will make it local. Alan