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

Function gmtplot_map_tickmarks

src/gmt_plot.c:2415–2431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2413}
2414
2415GMT_LOCAL void gmtplot_map_tickmarks (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
2416 /* Tickmarks at annotation interval has already been done except when annotations were not desired */
2417
2418 if (!(gmt_M_is_geographic (GMT, GMT_IN) || GMT->current.proj.projection_GMT == GMT_POLAR)) return; /* Tickmarks already done by linear axis */
2419
2420 PSL_comment (PSL, "Map tickmarks\n");
2421
2422 gmt_setpen (GMT, &GMT->current.setting.map_tick_pen[GMT_PRIMARY]);
2423 gmtplot_map_tickitem (GMT, PSL, w, e, s, n, GMT_ANNOT_UPPER);
2424 if (!(GMT->current.setting.map_frame_type & GMT_IS_FANCY)) { /* Draw plain boundary and return */
2425 gmtplot_map_tickitem (GMT, PSL, w, e, s, n, GMT_TICK_UPPER);
2426 gmt_setpen (GMT, &GMT->current.setting.map_tick_pen[GMT_SECONDARY]);
2427 gmtplot_map_tickitem (GMT, PSL, w, e, s, n, GMT_TICK_LOWER);
2428 }
2429
2430 PSL_setdash (PSL, NULL, 0);
2431}
2432
2433bool gmtlib_set_do_seconds (struct GMT_CTRL *GMT, double inc) {
2434 /* Determines if seconds are to be labelled based on size of increment */

Callers 1

gmtplot_map_tick_marksFunction · 0.85

Calls 4

PSL_commentFunction · 0.85
gmt_setpenFunction · 0.85
gmtplot_map_tickitemFunction · 0.85
PSL_setdashFunction · 0.85

Tested by

no test coverage detected