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

Function PSL_getplot

src/postscriptlight.c:4585–4596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4583}
4584
4585char * PSL_getplot (struct PSL_CTRL *PSL) {
4586 /* Simply pass the plot back to caller */
4587 if (!PSL->internal.memory) {
4588 PSL_message (PSL, PSL_MSG_ERROR, "Error: Cannot get a plot since memory output was not activated!\n");
4589 return (NULL);
4590 }
4591 if (!PSL->internal.buffer) {
4592 PSL_message (PSL, PSL_MSG_ERROR, "Error: No plot in memory available!\n");
4593 return (NULL);
4594 }
4595 return (PSL->internal.buffer);
4596}
4597
4598int PSL_beginplot (struct PSL_CTRL *PSL, FILE *fp, int orientation, int overlay, int color_mode, char origin[], double offset[], double page_size[], char *title, int font_no[]) {
4599/* fp: Output stream or NULL for standard output

Callers 3

gmt_plotendFunction · 0.85
psconvert_pipe_HR_BBFunction · 0.85
psconvert_pipe_ghostFunction · 0.85

Calls 1

PSL_messageFunction · 0.85

Tested by

no test coverage detected