These functions change background image.
['col'] ¶r g b ¶mglGraph: void() ¶mglGraph: void(const char * col) ¶mglGraph: void(char col) ¶mglGraph: void(mreal r, mreal g, mreal b) ¶void(HMGL gr) ¶void(HMGL gr, const char * col) ¶void(HMGL gr, char col) ¶void(HMGL gr, mreal r, mreal g, mreal b) ¶void(HMGL gr, mreal r, mreal g, mreal b, mreal a) ¶Clear the picture and fill background by specified color.
mglGraph: void() ¶void(HMGL gr) ¶Force drawing the plot and use it as background. After it, function clear the list of primitives, like clf. This function is useful if you want save part of plot as bitmap one (for example, large surfaces, isosurfaces or vector fields) and keep some parts as vector one (like annotation, curves, axis and so on). Often, you need to manually call subplot command after rasterize to avoid extra space allocation or plot rotation.
'fname' [alpha=1] ¶'fname' 'how' [alpha=1] ¶mglGraph: void(const char * fname, double alpha=1) ¶void(HMGL gr, const char * fname, double alpha) ¶mglGraph: void(const char * fname, const char * how, double alpha=1) ¶void(HMGL gr, const char * fname, const char * how, double alpha) ¶Load PNG or JPEG file fname as background for the plot. Parameter alpha manually set transparency of the background. Parameter how can be: ‘a’ for filling current subplot only, ‘s’ for scaling (resizing) image to whole area, ‘c’ for centering image, ‘m’ for tessellate image as mosaic.