| 846 | } |
| 847 | |
| 848 | GMT_LOCAL void gmtplot_y_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double *y, unsigned int ny) { |
| 849 | unsigned int i; |
| 850 | double x1, y1, x2, y2; |
| 851 | |
| 852 | for (i = 0; i < ny; i++) { |
| 853 | if (gmt_M_y_is_lat (GMT, GMT_IN)) |
| 854 | gmtplot_map_latline (GMT, PSL, y[i], w, e); |
| 855 | else { |
| 856 | gmt_geo_to_xy (GMT, w, y[i], &x1, &y1); |
| 857 | gmt_geo_to_xy (GMT, e, y[i], &x2, &y2); |
| 858 | PSL_plotsegment (PSL, x1, y1, x2, y2); |
| 859 | } |
| 860 | } |
| 861 | } |
| 862 | |
| 863 | void gmt_plot_timex_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, unsigned int item) { |
| 864 | unsigned int nx; |
no test coverage detected