| 783 | } |
| 784 | |
| 785 | GMT_LOCAL void gmtplot_x_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double s, double n, double *x, unsigned int nx) { |
| 786 | unsigned int i; |
| 787 | double x1, y1, x2, y2; |
| 788 | |
| 789 | for (i = 0; i < nx; i++) { |
| 790 | if (gmt_M_x_is_lon (GMT, GMT_IN)) |
| 791 | gmtplot_map_lonline (GMT, PSL, x[i], s, n); |
| 792 | else { |
| 793 | gmt_geo_to_xy (GMT, x[i], s, &x1, &y1); |
| 794 | gmt_geo_to_xy (GMT, x[i], n, &x2, &y2); |
| 795 | PSL_plotsegment (PSL, x1, y1, x2, y2); |
| 796 | } |
| 797 | } |
| 798 | } |
| 799 | |
| 800 | GMT_LOCAL void gmtplot_lineary_oblgrid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) { |
| 801 | /* y gridlines in oblique coordinates for all but the Oblique Mercator projection [which already is oblique] */ |
no test coverage detected