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

Function PSL_plotbox

src/postscriptlight.c:4828–4835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4826}
4827
4828int PSL_plotbox (struct PSL_CTRL *PSL, double x0, double y0, double x1, double y1) {
4829 /* Draw rectangle with corners (x0,y0) and (x1,y1) */
4830 int llx, lly;
4831 llx = psl_ix (PSL, x0);
4832 lly = psl_iy (PSL, y0);
4833 PSL_command (PSL, "%d %d %d %d Sb\n", psl_iy (PSL, y1) - lly, psl_ix (PSL, x1) - llx, llx, lly);
4834 return (PSL_NO_ERROR);
4835}
4836
4837int PSL_plotpolygon (struct PSL_CTRL *PSL, double *x, double *y, int n) {
4838 /* Draw and optionally fill polygons. If 20 or fewer points we use

Callers 10

gmtplot_vertical_wallFunction · 0.85
gmt_draw_map_scaleFunction · 0.85
PSL_plotbox_Function · 0.85
psscale_draw_colorbarFunction · 0.85
psxy_plot_x_whiskerbarFunction · 0.85
psxy_plot_y_whiskerbarFunction · 0.85
GMT_psxyFunction · 0.85
mainFunction · 0.85
psxyz_column3DFunction · 0.85
GMT_psxyzFunction · 0.85

Calls 3

psl_ixFunction · 0.85
psl_iyFunction · 0.85
PSL_commandFunction · 0.85

Tested by

no test coverage detected