| 2146 | } |
| 2147 | |
| 2148 | GMT_LOCAL void gmtplot_set_gridcross_limbs (struct GMT_CTRL *GMT, unsigned int axis, unsigned int kind, double value, unsigned int *B, unsigned int *E) { |
| 2149 | *B = *E = 0; /* Default is symmetric tick */ |
| 2150 | if (GMT->current.setting.map_grid_cross_type[kind] == GMT_CROSS_SYMM) return; /* Symmetric tick */ |
| 2151 | if (gmt_M_is_zero (value)) return; /* Symmetrical as well for zero */ |
| 2152 | if (gmt_M_type (GMT, GMT_IN, axis) == GMT_IS_LON) { /* Worry about longitudes */ |
| 2153 | if (doubleAlmostEqualZero (fabs (value), 180.0)) return; /* Symmetrical at both 0 and 180 longitude */ |
| 2154 | if (value > 0.0 && value < 180.0) *B = 1; else *E = 1; /* One-sided */ |
| 2155 | } |
| 2156 | else { |
| 2157 | if (value > 0.0) *B = 1; else *E = 1; /* One-sided */ |
| 2158 | } |
| 2159 | } |
| 2160 | |
| 2161 | GMT_LOCAL void gmtplot_map_gridticks (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { |
| 2162 | /* Draw symmetric or asymmetric grid ticks along the courser gridlines for parallels and meridians */ |
no outgoing calls
no test coverage detected