MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmt_plotcanvas

Function gmt_plotcanvas

src/gmt_plot.c:9481–9493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9479}
9480
9481void gmt_plotcanvas (struct GMT_CTRL *GMT) {
9482 if (GMT->current.map.frame.paint[GMT_Z]) { /* Paint the inside of the map (xy plane) with specified fill */
9483 double *x = NULL, *y = NULL;
9484 uint64_t np;
9485 bool donut;
9486 PSL_comment (GMT->PSL, "Fill the canvas %s\n", gmtlib_putfill (GMT, &GMT->current.map.frame.fill[GMT_Z]));
9487 np = gmt_map_clip_path (GMT, &x, &y, &donut);
9488 gmt_setfill (GMT, &GMT->current.map.frame.fill[GMT_Z], 0);
9489 PSL_plotpolygon (GMT->PSL, x, y, (int)((1 + donut) * np));
9490 gmt_M_free (GMT, x);
9491 gmt_M_free (GMT, y);
9492 }
9493}
9494
9495int gmt_strip_layer (struct GMTAPI_CTRL *API, int nlayers) {
9496 /* Remove the last n layers from the current figure */

Callers 15

GMT_pswiggleFunction · 0.85
GMT_pssolarFunction · 0.85
GMT_grdviewFunction · 0.85
GMT_psmaskFunction · 0.85
GMT_pshistogramFunction · 0.85
GMT_pstextFunction · 0.85
GMT_pscoastFunction · 0.85
GMT_grdimageFunction · 0.85
GMT_psclipFunction · 0.85
GMT_pseventsFunction · 0.85
GMT_psroseFunction · 0.85
GMT_grdvectorFunction · 0.85

Calls 5

PSL_commentFunction · 0.85
gmtlib_putfillFunction · 0.85
gmt_map_clip_pathFunction · 0.85
gmt_setfillFunction · 0.85
PSL_plotpolygonFunction · 0.85

Tested by

no test coverage detected