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

Function gmtplot_get_current_gridlines

src/gmt_plot.c:1982–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1980}
1981
1982GMT_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
1991GMT_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};

Callers 1

gmtplot_map_gridticksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected