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

Function psl_set_int_array

src/postscriptlight.c:919–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919void psl_set_int_array (struct PSL_CTRL *PSL, const char *prefix, int *array, int n) {
920 /* These are raw and not scaled */
921 int i;
922 PSL_command (PSL, "/PSL_%s [ ", prefix);
923 for (i = 0; i < n; i++) {
924 PSL_command (PSL, "%d ", array[i]);
925 if (((i+1)%10) == 0) PSL_command (PSL, "\n\t");
926 }
927 PSL_command (PSL, "] def\n");
928}
929
930void psl_set_txt_array (struct PSL_CTRL *PSL, const char *prefix, char *array[], int n) {
931 int i;

Callers 6

psl_set_path_arraysFunction · 0.85
psl_set_attr_arraysFunction · 0.85
PSL_plottextlineFunction · 0.85
GMT_pstextFunction · 0.85

Calls 1

PSL_commandFunction · 0.85

Tested by

no test coverage detected