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

Function psl_set_txt_array

src/postscriptlight.c:930–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void psl_set_txt_array (struct PSL_CTRL *PSL, const char *prefix, char *array[], int n) {
931 int i;
932 char *outtext = NULL;
933 PSL_command (PSL, "/PSL_%s [\n", prefix);
934 for (i = 0; i < n; i++) {
935 outtext = psl_prepare_text (PSL, array[i]); /* Expand escape codes and fix utf-8 characters */
936 PSL_command (PSL, "\t(%s)\n", outtext);
937 PSL_free (outtext);
938 }
939 PSL_command (PSL, "] def\n", n);
940}
941
942static void psl_set_reducedpath_arrays (struct PSL_CTRL *PSL, double *x, double *y, int npath, int *n, int *m, int *node) {
943 /* These are used by PSL_plottextline. We make sure there are no point pairs that would yield dx = dy = 0 (repeat point)

Callers 3

psl_set_attr_arraysFunction · 0.85
GMT_pstextFunction · 0.85

Calls 2

PSL_commandFunction · 0.85
psl_prepare_textFunction · 0.85

Tested by

no test coverage detected