1、pgplot命令大全PGPLOT Subroutine DescriptionsIntroductionThis appendix includes a list of all the PGPLOT subroutines, and then gives detailed instructions for the use of each routine in Fortran programs. The subroutine descriptions are in alphabetical order. ArgumentsThe subroutine descriptions indicate
2、the data type of each argument. When arguments are described as input, they may be replaced with constants or expressions in the CALL statement, but make sure that the constant or expression has the correct data type. INTEGER arguments: these should be declared INTEGER or INTEGER*4 in the calling pr
3、ogram, not INTEGER*2. REAL arguments: these should be declared REAL or REAL*4 in the calling program, not REAL*8 or DOUBLE PRECISION. LOGICAL arguments: these should be declared LOGICAL or LOGICAL*4 in the calling program. CHARACTER arguments: any valid Fortran CHARACTER variable may be used (declar
4、ed CHARACTER*n for some integer n). Index of RoutinesVersion 5.1 PGARRO - draw an arrow PGASK - control new page prompting PGBAND - read cursor position, with anchor PGBBUF - begin batch of output (buffer) PGBEG - begin PGPLOT, open output device PGBIN - histogram of binned data PGBOX - draw labeled
5、 frame around viewport PGCIRC - draw a filled or outline circle PGCLOS - close the selected graphics device PGCONB - contour map of a 2D data array, with blanking PGCONL - label contour map of a 2D data array PGCONS - contour map of a 2D data array (fast algorithm) PGCONT - contour map of a 2D data
6、array (contour-following) PGCONX - contour map of a 2D data array (non rectangular) PGCTAB - install the color table to be used by PGIMAG PGCURS - read cursor position PGDRAW - draw a line from the current pen position to a point PGEBUF - end batch of output (buffer) PGEND - terminate PGPLOT PGENV -
7、 set window and viewport and draw labeled frame PGERAS - erase all graphics from current page PGERRB - horizontal or vertical error bar PGERRX - horizontal error bar PGERRY - vertical error bar PGETXT - erase text from graphics display PGFUNT - function defined by X = F(T), Y = G(T) PGFUNX - functio
8、n defined by Y = F(X) PGFUNY - function defined by X = F(Y) PGGRAY - gray-scale map of a 2D data array PGHI2D - cross-sections through a 2D data array PGHIST - histogram of unbinned data PGIDEN - write username, date, and time at bottom of plot PGIMAG - color image from a 2D data array PGLAB - write
9、 labels for x-axis, y-axis, and top of plot PGLCUR - draw a line using the cursor PGLDEV - list available device types PGLEN - find length of a string in a variety of units PGLINE - draw a polyline (curve defined by line-segments) PGMOVE - move pen (change current pen position) PGMTXT - write text a
10、t position relative to viewport PGNCUR - mark a set of points using the cursor PGNUMB - convert a number into a plottable character string PGOLIN - mark a set of points using the cursor PGOPEN - open a graphics device PGPAGE - advance to new page PGPANL - switch to a different panel on the view surf
11、ace PGPAP - change the size of the view surface PGPIXL - draw pixels PGPNTS - draw one or more graph markers, not all the same PGPOLY - fill a polygonal area with shading PGPT - draw one or more graph markers PGPTXT - write text at arbitrary position and angle PGQAH - inquire arrow-head style PGQCF
12、- inquire character font PGQCH - inquire character height PGQCI - inquire color index PGQCIR - inquire color index range PGQCOL - inquire color capability PGQCR - inquire color representation PGQCS - inquire character height in a variety of units PGQFS - inquire fill-area style PGQHS - inquire hatch
13、ing style PGQID - inquire current device identifier PGQINF - inquire PGPLOT general information PGQITF - inquire image transfer function PGQLS - inquire line style PGQLW - inquire line width PGQPOS - inquire current pen position PGQTBG - inquire text background color index PGQTXT - find bounding box
14、 of text string PGQVP - inquire viewport size and position PGQVSZ - find the window defined by the full view surface PGQWIN - inquire window boundary coordinates PGRECT - draw a rectangle, using fill-area attributes PGRND - find the smallest round number greater than x PGRNGE - choose axis limits PG
15、SAH - set arrow-head style PGSAVE - save PGPLOT attributes PGUNSA - restore PGPLOT attributes PGSCF - set character font PGSCH - set character height PGSCI - set color index PGSCIR - set color index range PGSCR - set color representation PGSCRN - set color representation by name PGSFS - set fill-are
16、a style PGSHLS - set color representation using HLS system PGSHS - set hatching style PGSITF - set image transfer function PGSLCT - select an open graphics device PGSLS - set line style PGSLW - set line width PGSTBG - set text background color index PGSUBP - subdivide view surface into panels PGSVP
17、- set viewport (normalized device coordinates) PGSWIN - set window PGTBOX - draw frame and write (DD) HH MM SS.S labelling PGTEXT - write text (horizontal, left-justified) PGUPDT - update display PGVECT - vector map of a 2D data array, with blanking PGVSIZ - set viewport (inches) PGVSTD - set standa
18、rd (default) viewport PGWEDG - annotate an image plot with a wedge PGWNAD - set window and adjust viewport to same aspect ratio PGADVANCE - non-standard alias for PGPAGE PGBEGIN - non-standard alias for PGBEG PGCURSE - non-standard alias for PGCURS PGLABEL - non-standard alias for PGLAB PGMTEXT - no
19、n-standard alias for PGMTXT PGNCURSE - non-standard alias for PGNCUR PGPAPER - non-standard alias for PGPAP PGPOINT - non-standard alias for PGPT PGPTEXT - non-standard alias for PGPTXT PGVPORT - non-standard alias for PGSVP PGVSIZE - non-standard alias for PGVSIZ PGVSTAND - non-standard alias for P
20、GVSTD PGWINDOW - non-standard alias for PGSWIN PGARRO - draw an arrow SUBROUTINE PGARRO (X1, Y1, X2, Y2) REAL X1, Y1, X2, Y2Draw an arrow from the point with world-coordinates (X1,Y1) to (X2,Y2). The size of the arrowhead at (X2,Y2) is determined by the current character size set by routine PGSCH. T
21、he default size is 1/40th of the smaller of the width or height of the view surface.The appearance of the arrowhead (shape and solid or open) iscontrolled by routine PGSAH.Arguments: X1, Y1 (input) : world coordinates of the tail of the arrow. X2, Y2 (input) : world coordinates of the head of the ar
22、row.PGASK - control new page prompting SUBROUTINE PGASK (FLAG) LOGICAL FLAGChange the prompt state of PGPLOT. If the prompt state isON, PGPAGE will type Type RETURN for next page: and will waitfor the user to type a carriage-return before starting a new page.The initial prompt state (after a call to
23、 PGBEG) is ON for interactive devices. Prompt state is always OFF for non-interactive devices.Arguments: FLAG (input) : if .TRUE., and if the device is an interactive device, the prompt state will be set to ON. If .FALSE., the prompt state will be set to OFF.PGBAND - read cursor position, with ancho
24、r INTEGER FUNCTION PGBAND (MODE, POSN, XREF, YREF, X, Y, CH) INTEGER MODE, POSN REAL XREF, YREF, X, Y CHARACTER*(*) CHRead the cursor position and a character typed by the user.The position is returned in world coordinates. PGBAND positionsthe cursor at the position specified (if POSN=1), allows the
25、 user tomove the cursor using the mouse or arrow keys or whatever is availableon the device. When he has positioned the cursor, the user types asingle character on the keyboard; PGBAND then returns thischaracter and the new cursor position (in world coordinates).Some interactive devices offer a sele
26、ction of cursor types,implemented as thin lines that move with the cursor, but withouterasing underlying graphics. Of these types, some extend betweena stationary anchor-point at XREF,YREF, and the position of thecursor, while others simply follow the cursor without changing shapeor size. The cursor
27、 type is specified with one of the following MODEvalues. Cursor types that are not supported by a given device, aretreated as MODE=0.- If MODE=0, the anchor point is ignored and the routine behaveslike PGCURS.- If MODE=1, a straight line is drawn joining the anchor point and the cursor position.- If
28、 MODE=2, a hollow rectangle is extended as the cursor is moved,with one vertex at the anchor point and the opposite vertex at thecurrent cursor position; the edges of the rectangle are horizontaland vertical.- If MODE=3, two horizontal lines are extended across the width ofthe display, one drawn thr
29、ough the anchor point and the otherthrough the moving cursor position. This could be used to selecta Y-axis range when one end of the range is known.- If MODE=4, two vertical lines are extended over the height ofthe display, one drawn through the anchor point and the otherthrough the moving cursor p
30、osition. This could be used to select anX-axis range when one end of the range is known.- If MODE=5, a horizontal line is extended through the cursorposition over the width of the display. This could be used to selectan X-axis value such as the start of an X-axis range. The anchor pointis ignored.- If MODE=6, a vertical line is extended through the cursorposition over the height of the display. This could be used to selecta Y-axis value such as the start of a Y-axis range. The anchor pointis ignored.- If MODE=7, a
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1