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

Function gmtplot_map_annotations

src/gmt_plot.c:6461–6471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6459}
6460
6461GMT_LOCAL void gmtplot_map_annotations (struct GMT_CTRL *GMT) {
6462 double w, e, s, n;
6463 struct PSL_CTRL *PSL= GMT->PSL;
6464
6465 if (GMT->current.map.frame.order == GMT_BASEMAP_BEFORE && GMT->current.map.frame.basemap_flag & GMT_BASEMAP_ANNOT_AFTER) return; /* Wrong order */
6466 if (GMT->current.map.frame.order == GMT_BASEMAP_AFTER && !(GMT->current.map.frame.basemap_flag & GMT_BASEMAP_ANNOT_AFTER)) return; /* Wrong order */
6467
6468 w = GMT->common.R.wesn[XLO], e = GMT->common.R.wesn[XHI], s = GMT->common.R.wesn[YLO], n = GMT->common.R.wesn[YHI];
6469
6470 gmtplot_map_annotate (GMT, PSL, w, e, s, n);
6471}
6472
6473GMT_LOCAL void gmtplot_title_breaks_decode (struct GMT_CTRL *GMT, const char *in_string, char *out_string) {
6474 /* Deal with long-form @^ or <break> strings in title and subtitle and replace with GMT_ASCII_GS */

Callers 1

gmt_map_basemapFunction · 0.85

Calls 1

gmtplot_map_annotateFunction · 0.85

Tested by

no test coverage detected