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

Function gmtplot_skip_end_annotation

src/gmt_plot.c:1826–1832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1824}
1825
1826GMT_LOCAL bool gmtplot_skip_end_annotation (struct GMT_CTRL *GMT, unsigned int axis, double x, double length) {
1827 /* Returns true if this is an annotation at the end of the axis and we are either in GMT_IS_INSIDE mode or user added modifier +e[l|u] to the axis annotation settings */
1828 if (GMT->current.map.frame.axis[axis].skip[0] && fabs (x) < GMT_CONV4_LIMIT) return true; /* Skip annotation if it falls ~exactly at the start of the axis */
1829 if (GMT->current.map.frame.axis[axis].skip[1] && fabs (x - length) < GMT_CONV4_LIMIT) return true; /* Skip annotation if t falls ~exactly at the end of the axis */
1830 if (GMT->current.setting.map_frame_type & GMT_IS_INSIDE && (fabs (x) < GMT_CONV4_LIMIT || fabs (x - length) < GMT_CONV4_LIMIT)) return true; /* Skip annotation on edges when MAP_FRAME_TYPE = inside */
1831 return false; /* No, let's plot it */
1832}
1833
1834GMT_LOCAL void gmtplot_map_symbol (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_XINGS *xings, char *label, unsigned int type, bool annot, unsigned int level, unsigned int form) {
1835 /* type = 0 for lon and 1 for lat */

Callers 2

gmtplot_map_symbolFunction · 0.85
gmt_xy_axisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected