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

Function gmtplot_y_grid

src/gmt_plot.c:848–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848GMT_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
863void 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;

Callers 4

gmtplot_timey_gridFunction · 0.85
gmtplot_logy_gridFunction · 0.85
gmtplot_powy_gridFunction · 0.85
gmtplot_map_gridlinesFunction · 0.85

Calls 3

gmtplot_map_latlineFunction · 0.85
gmt_geo_to_xyFunction · 0.85
PSL_plotsegmentFunction · 0.85

Tested by

no test coverage detected