| 1980 | } |
| 1981 | |
| 1982 | GMT_LOCAL int gmtplot_get_current_gridlines (struct GMT_CTRL *GMT, double *dx, double *dy) { |
| 1983 | /* Obtain the previous gridline intervals, if nonzero */ |
| 1984 | |
| 1985 | if (gmt_M_is_zero (GMT->current.plot.gridline_spacing[GMT_X]) && gmt_M_is_zero (GMT->current.plot.gridline_spacing[GMT_Y])) return (GMT_NOERROR); /* No gridlines drawn yet */ |
| 1986 | *dx = GMT->current.plot.gridline_spacing[GMT_X]; |
| 1987 | *dy = GMT->current.plot.gridline_spacing[GMT_Y]; |
| 1988 | return (GMT_NOERROR); |
| 1989 | } |
| 1990 | |
| 1991 | GMT_LOCAL void gmtplot_map_gridlines (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { |
| 1992 | unsigned int k, i, np, item[2] = {GMT_GRID_UPPER, GMT_GRID_LOWER}; |
no outgoing calls
no test coverage detected