| 4583 | } |
| 4584 | |
| 4585 | char * 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 | |
| 4598 | int 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 |
no test coverage detected