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

Function PSL_setlinewidth

src/postscriptlight.c:4948–4958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4946}
4947
4948int PSL_setlinewidth (struct PSL_CTRL *PSL, double linewidth) {
4949 if (linewidth < 0.0) {
4950 PSL_message (PSL, PSL_MSG_ERROR, "Warning: Selected linewidth is negative (%g), ignored\n", linewidth);
4951 return (PSL_BAD_WIDTH);
4952 }
4953 if (linewidth == PSL->current.linewidth) return (PSL_NO_ERROR);
4954
4955 PSL_command (PSL, "%d W\n", psl_ip (PSL, linewidth));
4956 PSL->current.linewidth = linewidth;
4957 return (PSL_NO_ERROR);
4958}
4959
4960int PSL_setcolor (struct PSL_CTRL *PSL, double rgb[], int mode) {
4961 /* Set the pen (PSL_IS_STROKE) color or fill (PSL_IS_FILL) color or pattern

Callers 9

gmtplot_timestampFunction · 0.85
gmt_setpenFunction · 0.85
psl_matharcFunction · 0.85
psl_vectorFunction · 0.85
PSL_setlinewidth_Function · 0.85
mainFunction · 0.85

Calls 3

PSL_messageFunction · 0.85
PSL_commandFunction · 0.85
psl_ipFunction · 0.85

Tested by

no test coverage detected