| 1404 | } |
| 1405 | |
| 1406 | GMT_LOCAL void gmtplot_rect_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x0, double y0, double x1, double y1) { |
| 1407 | unsigned int cap = PSL->internal.line_cap; |
| 1408 | |
| 1409 | gmt_setpen (GMT, &GMT->current.setting.map_frame_pen); |
| 1410 | /* Temporarily change to square cap so rectangular frames have neat corners */ |
| 1411 | PSL_setlinecap (PSL, PSL_SQUARE_CAP); |
| 1412 | |
| 1413 | if (GMT->current.map.frame.side[W_SIDE] & GMT_AXIS_DRAW) PSL_plotsegment (PSL, x0, y0, x0, y1); /* West */ |
| 1414 | if (GMT->current.map.frame.side[E_SIDE] & GMT_AXIS_DRAW) PSL_plotsegment (PSL, x1, y0, x1, y1); /* East */ |
| 1415 | if (GMT->current.map.frame.side[S_SIDE] & GMT_AXIS_DRAW) PSL_plotsegment (PSL, x0, y0, x1, y0); /* South */ |
| 1416 | if (GMT->current.map.frame.side[N_SIDE] & GMT_AXIS_DRAW) PSL_plotsegment (PSL, x0, y1, x1, y1); /* North */ |
| 1417 | PSL_setlinecap (PSL, cap); /* Reset back to default */ |
| 1418 | } |
| 1419 | |
| 1420 | /* GMT_POLAR (S or N) PROJECTION MAP BOUNDARY */ |
| 1421 |
no test coverage detected