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

Function gmtplot_map_lattick

src/gmt_plot.c:1745–1754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1743}
1744
1745GMT_LOCAL void gmtplot_map_lattick (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lat, double west, double east, double len) {
1746 unsigned int i, nc;
1747
1748 struct GMT_XINGS *xings = NULL;
1749
1750 nc = gmtlib_map_latcross (GMT, lat, west, east, &xings);
1751 for (i = 0; i < nc; i++)
1752 gmtplot_map_tick (GMT, PSL, xings[i].xx, xings[i].yy, xings[i].sides, xings[i].angle, xings[i].nx, 1, len);
1753 if (nc) gmt_M_free (GMT, xings);
1754}
1755
1756GMT_LOCAL bool gmtplot_annot_too_crowded (struct GMT_CTRL *GMT, double x, double y, unsigned int side) {
1757 /* Checks if the proposed annotation is too close to a previously plotted annotation */

Callers 1

gmtplot_map_tickitemFunction · 0.85

Calls 2

gmtlib_map_latcrossFunction · 0.85
gmtplot_map_tickFunction · 0.85

Tested by

no test coverage detected