Skip to content

GR Native functions

kojix2 edited this page Sep 20, 2020 · 19 revisions

See Official GR reference...

Basics

  • GR.setviewport(xmin, xmax, ymin, ymax)

    • xmin (Numeric) — The left horizontal coordinate of the viewport.
    • xmax (Numeric) — The right horizontal coordinate of the viewport (0 <= xmin < xmax <= 1).
    • ymin (Numeric) — The bottom vertical coordinate of the viewport.
    • ymax (Numeric) — The top vertical coordinate of the viewport (0 <= ymin < ymax <= 1).
  • GR.setwindow(xmin, xmax, ymin, ymax)

    • xmin (Numeric) — The left horizontal coordinate of the window (xmin < xmax).
    • xmax (Numeric) — The right horizontal coordinate of the window.
    • ymin (Numeric) — The bottom vertical coordinate of the window (ymin < ymax).
    • ymax (Numeric) — The top vertical coordinate of the window.
  • GR.axes or GR.axes2d

    • x_tick (Numeric) — The interval between minor tick marks on the X axis.
    • y_tick (Numeric) — The interval between minor tick marks on the Y axis.
    • x_org (Numeric) — The world coordinates of the origin (point of intersection) of the X axis.
    • y_org (Numeric) — The world coordinates of the origin (point of intersection) of the Y axis.
    • major_x (Integer) — Unitless integer values specifying the number of minor tick intervals between major tick marks. Values of 0 or 1 imply no minor ticks. Negative values specify no labels will be drawn for the associated axis.
    • major_y (Integer) — Unitless integer values specifying the number of minor tick intervals between major tick marks. Values of 0 or 1 imply no minor ticks. Negative values specify no labels will be drawn for the associated axis.
    • tick_size (Numeric) — The length of minor tick marks specified in a normalized device coordinate unit. Major tick marks are twice as long as minor tick marks. A negative value reverses the tick marks on the axes from inward facing to outward facing (or vice versa).
  • GR.updatews

  • GR.clearws

  • GR.text

workstation

Plugin GKS_WSTYPE File Type
built-in pdf / 102 PDF
built-in ps / 62 PS
built-in eps / 62 EPS
videoplugin gif / 130 GIF
videoplugin mov / 120 MOV
videoplugin mp4 / 160 MP4
videoplugin webm / 161 WEBM
videoplugin ogg / 162 OGG
gsplugin bmp / 320 BMP
cairoplugin bmp / 145 BMP
gsplugin jpg / jpeg / 321 JPEG
cairoplugin jpg / jpeg / 144 JPEG
gsplugin png / 322 PNG
cairoplugin png / 140 PNG
gsplugin tif / tiff / 323 TIFF
cairoplugin tif / tiff / 146 TIFF
figplugin fig / 370 FIG
svgplugin svg / 382 SVG
wmfplugin wmf / 390 WMF
htmplugin html / 430 HTML
pgfplugin pgf / 314 PGF

Line Types

Index Marker Type Image
1 LINETYPE_SOLID solid
2 LINETYPE_DASHED dashed
3 LINETYPE_DOTTED dotted
4 LINETYPE_DASHED_DOTTED dashed_dotted
-1 LINETYPE_DASH_2_DOT dash_2_dot
-2 LINETYPE_DASH_3_DOT dash_3_dot
-3 LINETYPE_LONG_DASH long_dash
-4 LINETYPE_LONG_SHORT_DASH long_short_dash
-5 LINETYPE_SPACED_DASH spaced_dash
-6 LINETYPE_SPACED_DOT spaced_dot
-7 LINETYPE_DOUBLE_DOT double_dot
-8 LINETYPE_TRIPLE_DOT triple_dot

Marker Types

Index Marker Type Image Description
1 MARKERTYPE_DOT img Smallest displayable dot
2 MARKERTYPE_PLUS img Plus sign
3 MARKERTYPE_ASTERISK img Asterisk
4 MARKERTYPE_CIRCLE img Hollow circle
5 MARKERTYPE_DIAGONAL_CROSS img Diagonal cross
-1 MARKERTYPE_SOLID_CIRCLE img Filled circle
-2 MARKERTYPE_TRIANGLE_UP img Hollow triangle pointing upward
-3 MARKERTYPE_SOLID_TRI_UP img Filled triangle pointing upward
-4 MARKERTYPE_TRIANGLE_DOWN img Hollow triangle pointing downward
-5 MARKERTYPE_SOLID_TRI_DOWN img Filled triangle pointing downward
-6 MARKERTYPE_SQUARE img Hollow square
-7 MARKERTYPE_SOLID_SQUARE img Filled square
-8 MARKERTYPE_BOWTIE img Hollow bowtie
-9 MARKERTYPE_SOLID_BOWTIE img Filled bowtie
-10 MARKERTYPE_HOURGLASS img Hollow hourglass
-11 MARKERTYPE_SOLID_HGLASS img Filled hourglass
-12 MARKERTYPE_DIAMOND img Hollow diamond
-13 MARKERTYPE_SOLID_DIAMOND img Filled Diamond
-14 MARKERTYPE_STAR img Hollow star
-15 MARKERTYPE_SOLID_STAR img Filled Star
-16 MARKERTYPE_TRI_UP_DOWN img Hollow triangles pointing up and down
-17 MARKERTYPE_SOLID_TRI_RIGHT img Filled triangle point right
-18 MARKERTYPE_SOLID_TRI_LEFT img Filled triangle pointing left
-19 MARKERTYPE_HOLLOW_PLUS img Hollow plus sign
-20 MARKERTYPE_SOLID_PLUS img Solid plus sign
-21 MARKERTYPE_PENTAGON img Pentagon
-22 MARKERTYPE_HEXAGON img Hexagon
-23 MARKERTYPE_HEPTAGON img Heptagon
-24 MARKERTYPE_OCTAGON img Octagon
-25 MARKERTYPE_STAR_4 img 4-pointed star
-26 MARKERTYPE_STAR_5 img 5-pointed star (Pentagram)
-27 MARKERTYPE_STAR_6 img 6-pointed star (Hexagram)
-28 MARKERTYPE_STAR_7 img 7-pointed star (Heptagram)
-29 MARKERTYPE_STAR_8 img 8-pointed star (Octagram)
-30 MARKERTYPE_VLINE img Vertical line
-31 MARKERTYPE_HLINE img Horizontal line
-32 MARKERTYPE_OMARK img O-mark

Fonts

Index Name
101 Times Roman img
102 Times Italic img
103 Times Bold img
104 Times Bold Italic img
105 Helvetica img
106 Helvetica Oblique img
107 Helvetica Bold img
108 Helvetica Bold Oblique img
109 Courier img
110 Courier Oblique img
111 Courier Bold img
112 Courier Bold Oblique img
113 Symbol img
114 Bookman Light img
115 Bookman Light Italic img
116 Bookman Demi img
117 Bookman Demi Italic img
118 New Century Schoolbook Roman img
119 New Century Schoolbook Italic img
120 New Century Schoolbook Bold img
121 New Century Schoolbook Bold Italic img
122 Avantgarde Book img
123 Avantgarde Book Oblique img
124 Avantgarde Demi img
125 Avantgarde Demi Oblique img
126 Palatino Roman img
127 Palatino Italic img
128 Palatino Bold img
129 Palatino Bold Italic img
130 Zapf Chancery Medium Italic img
131 Zapf Dingbats img
232 Computer Modern img
233 DejaVu Sans img