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

Function gmtplot_cube_box

src/gmt_plot.c:3178–3188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3176}
3177
3178GMT_LOCAL void gmtplot_cube_box (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, int quadrant, double *nesw) {
3179 /* Draws the 3-D cube lines */
3180 int plane = (quadrant + 1) % 2; /* Black magic that gives us GMT_X (for yz plane) or GMT_Y (for xz plane) */
3181 double xx[4], yy[4];
3182 gmt_plane_perspective (GMT, plane, nesw[quadrant % 4]);
3183 /* Assign the coordinates of the four corners of the wall (hence assumed to be rectangular) */
3184 xx[0] = xx[1] = nesw[(quadrant+1)%4]; xx[2] = xx[3] = nesw[(quadrant+3)%4];
3185 yy[0] = yy[3] = GMT->current.proj.zmin; yy[1] = yy[2] = GMT->current.proj.zmax;
3186 gmt_setpen (GMT, &GMT->current.map.frame.pen);
3187 PSL_plotline (PSL, xx, yy, 4, PSL_MOVE|PSL_STROKE);
3188}
3189
3190GMT_LOCAL void gmtplot_timestamp(struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x, double y, unsigned int justify, char *U_label) {
3191 /* x, y = location of the time stamp box

Callers 1

gmt_vertical_axisFunction · 0.85

Calls 3

gmt_plane_perspectiveFunction · 0.85
gmt_setpenFunction · 0.85
PSL_plotlineFunction · 0.85

Tested by

no test coverage detected