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

Function gmtplot_ellipse_map_boundary

src/gmt_plot.c:1567–1577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1565/* MOLLWEIDE and HAMMER-AITOFF EQUAL AREA PROJECTION MAP FUNCTIONS */
1566
1567GMT_LOCAL void gmtplot_ellipse_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
1568 if (GMT->common.R.oblique) { /* Draw rectangular boundary and return */
1569 gmtplot_rect_map_boundary (GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[XHI], GMT->current.proj.rect[YHI]);
1570 return;
1571 }
1572 gmtplot_wesn_map_boundary (GMT, PSL, w, e, s, n); /* Draw outline first, then turn off non-existent sides */
1573 if (gmt_M_is_Spole (GMT->common.R.wesn[YLO])) /* Cannot have southern boundary */
1574 GMT->current.map.frame.side[S_SIDE] = GMT_AXIS_NONE;
1575 if (gmt_M_is_Npole (GMT->common.R.wesn[YHI])) /* Cannot have northern boundary */
1576 GMT->current.map.frame.side[N_SIDE] = GMT_AXIS_NONE;
1577}
1578
1579GMT_LOCAL void gmtplot_basic_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
1580 if (GMT->common.R.oblique) { /* Draw rectangular boundary and return */

Callers 1

gmtplot_map_boundaryFunction · 0.85

Calls 2

Tested by

no test coverage detected