📄 pslegendbox.psplot.lib
字号:
PSLEGENDBOX - Functions to draw PostScript axes and estimate bounding boxpsLegendBox Draw an legend box via PostScriptpsLegendBBox estimate bounding box for an legend box drawn via psLegendBoxFunction Prototypes:void psLegendBox( float x, float y, float width, float height, float x1Beg, float x1End, float p1Beg, float p1End, float d1Num, float f1Num, int n1Tic, int grid1, char *label1, char *labelFont, float labelSize, char *axesColor, char *gridColor, int style);void psLegendBBox( float x, float y, float width, float height, char *labelFont, float labelSize, int style, int bbox[]);psLegendBox:Input:x x coordinate of lower left corner of boxy y coordinate of lower left corner of boxwidth width of boxheight height of boxx1Beg axis value at beginning of axis 1x1End axis value at end of axis 1p1Beg pad value at beginning of axis 1p1End pad value at end of axis 1d1Num numbered tic increment for axis 1 (0.0 for automatic)f1Num first numbered tic for axis 1n1Tic number of horizontal tics per numbered tic for axis 1grid1 grid code for axis 1: NONE, DOT, DASH, or SOLIDlabel1 label for axis 1labelFont name of font to use for axes labelslabelSize size of font to use for axes labelsaxesColor color to use for axes and axes labelsgridColor color to use for grid linesstyle VERTLEFT (Vertical, axis label on left side) VERTRIGHT (Vertical, axis label on right side) HORIBOTTOM (Horizontal, axis label on bottom)psLegendBBox:Input:x x coordinate of lower left corner of boxy y coordinate of lower left corner of boxwidth width of boxheight height of boxlabelFont name of font to use for axes labelslabelSize size of font to use for axes labelsstyle VERTLEFT (Vertical, axis label on left side) VERTRIGHT (Vertical, axis label on right side) HORIBOTTOM (Horizontal, axis label on bottom)Output:bbox bounding box (bbox[0:3] = llx, lly, ulx, uly)Notes:psLegendBox:psLegendBox will determine the numbered tic increment and first numberedtic automatically, if the specified increment is zero. Axis numberingis in scientific notation, if necessary and is plotted to foursignificant digits.Pad values must be specified in the same units as the correspondingLegend values. These pads are useful when the contents of the Legend boxrequires more space than implied by the Legend values. For example, thefirst and last seismic wiggle traces plotted inside an Legend box willtypically extend beyond the Legend values corresponding to the first andlast traces. However, all tics will lie with the limits specified inthe Legend values (x1Beg, x1End, x2Beg, x2End).psLegendBBox:psLegendBBox uses font sizes to estimate the bounding box foran Legend box drawn with psLegendBox. To be on the safe side, psLegendBBox overestimates.psLegendBBox assumes that the Legend labels and titles do not extendbeyond the corresponding edges of the Legend box.References:(see References for basic.c)Author: Dave Hale, Colorado School of Mines, 06/27/89Modified: Ken Larner, Colorado School of Mines, 08/30/90Modified: Dave Hale, Advance Geophysical, 10/18/92 Added color parameters for title, axes, and grid.Modified: Torsten Schoenfelder, Koeln, Germany, 07/06/97 Display a legend for ps file, move axis from left to rightModified: Torsten Schoenfelder, Koeln, Germany, 10/02/98 Corrected width of bbox to include legend title
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -