I would like to print the plot as a Base 64 encoded string to stdout
. How can I do that?
So far, I can print to png by
f = figure
set(f, "visible", "off")
plot([1,2,3,4])
print("MyPNG.png", "-dpng")
but I really need the Base 64 encoded string for the png without having to save the file as a png first.