I am passing this.g to some separate Java code, and things are working just fine with the data displayed to the screen, but when I try to copy to PDF using beginRecord() and endRecord() I don’t see any of the output that is generated via calls to this.g.
Just to add to this… the call to beginRecord() returns a PGraphics instance. If I use that, instead of this.g, in the call to the Java code, then I see the reverse: TWO lines are present in the PDF, but only one on the screen and in the PNG! Is there any way to have both lines present in all the different outputs (without repeating the calls twice, obviously)?
(Fundamentally, I guess I am asking how the recording process is implemented. I can’t find it documented anywhere).
just to be clear for anyone else, because it took me a minute and i tested it - just replace “Record” with “Raw” in the example above and things work fine.
THANKS!
edit: well, when used on my actual plot, it’s taking forever and a lot of cpu, but i guess it’s working…