| 9479 | } |
| 9480 | |
| 9481 | void 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 | |
| 9495 | int gmt_strip_layer (struct GMTAPI_CTRL *API, int nlayers) { |
| 9496 | /* Remove the last n layers from the current figure */ |
no test coverage detected