Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 static void set_plplot_parameters( Tcl_Interp *interp )
00014 {
00015 Tcl_Eval( interp, "namespace eval ::PLPLOT { \n\
00016 \n\
00017 # obsolete\n\
00018 variable PLESC_SET_RGB 1\n\
00019 \n\
00020 # obsolete\n\
00021 variable PLESC_ALLOC_NCOL 2\n\
00022 \n\
00023 # obsolete\n\
00024 variable PLESC_SET_LPB 3\n\
00025 \n\
00026 # handle window expose\n\
00027 variable PLESC_EXPOSE 4\n\
00028 \n\
00029 # handle window resize\n\
00030 variable PLESC_RESIZE 5\n\
00031 \n\
00032 # handle window redraw\n\
00033 variable PLESC_REDRAW 6\n\
00034 \n\
00035 # switch to text screen\n\
00036 variable PLESC_TEXT 7\n\
00037 \n\
00038 # switch to graphics screen\n\
00039 variable PLESC_GRAPH 8\n\
00040 \n\
00041 # fill polygon\n\
00042 variable PLESC_FILL 9\n\
00043 \n\
00044 # handle DI command\n\
00045 variable PLESC_DI 10\n\
00046 \n\
00047 # flush output\n\
00048 variable PLESC_FLUSH 11\n\
00049 \n\
00050 # handle Window events\n\
00051 variable PLESC_EH 12\n\
00052 \n\
00053 # get cursor position\n\
00054 variable PLESC_GETC 13\n\
00055 \n\
00056 # set window parameters\n\
00057 variable PLESC_SWIN 14\n\
00058 \n\
00059 # configure PLFLT buffering\n\
00060 variable PLESC_PLFLTBUFFERING 15\n\
00061 \n\
00062 # set xor mode\n\
00063 variable PLESC_XORMOD 16\n\
00064 \n\
00065 # AFR: set compression\n\
00066 variable PLESC_SET_COMPRESSION 17\n\
00067 \n\
00068 # RL: clear graphics region\n\
00069 variable PLESC_CLEAR 18\n\
00070 \n\
00071 # RL: draw dashed line\n\
00072 variable PLESC_DASH 19\n\
00073 \n\
00074 # driver draws text\n\
00075 variable PLESC_HAS_TEXT 20\n\
00076 \n\
00077 # handle image\n\
00078 variable PLESC_IMAGE 21\n\
00079 \n\
00080 # plimage related operations\n\
00081 variable PLESC_IMAGEOPS 22\n\
00082 \n\
00083 # draw lines parallel to the X axis\n\
00084 variable DRAW_LINEX 0x01\n\
00085 \n\
00086 # draw lines parallel to the Y axis\n\
00087 variable DRAW_LINEY 0x02\n\
00088 \n\
00089 # draw lines parallel to both the X and Y axes\n\
00090 variable DRAW_LINEXY 0x03\n\
00091 \n\
00092 # draw the mesh with a color dependent of the magnitude\n\
00093 variable MAG_COLOR 0x04\n\
00094 \n\
00095 # draw contour plot at bottom xy plane\n\
00096 variable BASE_CONT 0x08\n\
00097 \n\
00098 # draw contour plot at top xy plane\n\
00099 variable TOP_CONT 0x10\n\
00100 \n\
00101 # draw contour plot at surface\n\
00102 variable SURF_CONT 0x20\n\
00103 \n\
00104 # draw sides\n\
00105 variable DRAW_SIDES 0x40\n\
00106 \n\
00107 # draw outline for each square that makes up the surface\n\
00108 variable FACETED 0x80\n\
00109 \n\
00110 # draw mesh\n\
00111 variable MESH 0x100\n\
00112 \n\
00113 \n\
00114 variable PL_BIN_DEFAULT 0\n\
00115 \n\
00116 \n\
00117 variable PL_BIN_CENTRED 1\n\
00118 \n\
00119 \n\
00120 variable PL_BIN_NOEXPAND 2\n\
00121 \n\
00122 \n\
00123 variable PL_BIN_NOEMPTY 4\n\
00124 \n\
00125 \n\
00126 variable PL_HIST_DEFAULT 0\n\
00127 \n\
00128 \n\
00129 variable PL_HIST_NOSCALING 1\n\
00130 \n\
00131 \n\
00132 variable PL_HIST_IGNORE_OUTLIERS 2\n\
00133 \n\
00134 \n\
00135 variable PL_HIST_NOEXPAND 8\n\
00136 \n\
00137 \n\
00138 variable PL_HIST_NOEMPTY 16\n\
00139 \n\
00140 \n\
00141 variable PL_POSITION_LEFT 1\n\
00142 \n\
00143 \n\
00144 variable PL_POSITION_RIGHT 2\n\
00145 \n\
00146 \n\
00147 variable PL_POSITION_TOP 4\n\
00148 \n\
00149 \n\
00150 variable PL_POSITION_BOTTOM 8\n\
00151 \n\
00152 \n\
00153 variable PL_POSITION_INSIDE 16\n\
00154 \n\
00155 \n\
00156 variable PL_POSITION_OUTSIDE 32\n\
00157 \n\
00158 \n\
00159 variable PL_POSITION_VIEWPORT 64\n\
00160 \n\
00161 \n\
00162 variable PL_POSITION_SUBPAGE 128\n\
00163 \n\
00164 \n\
00165 variable PL_LEGEND_NONE 1\n\
00166 \n\
00167 \n\
00168 variable PL_LEGEND_COLOR_BOX 2\n\
00169 \n\
00170 \n\
00171 variable PL_LEGEND_LINE 4\n\
00172 \n\
00173 \n\
00174 variable PL_LEGEND_SYMBOL 8\n\
00175 \n\
00176 \n\
00177 variable PL_LEGEND_TEXT_LEFT 16\n\
00178 \n\
00179 \n\
00180 variable PL_LEGEND_BACKGROUND 32\n\
00181 \n\
00182 \n\
00183 variable PL_LEGEND_BOUNDING_BOX 64\n\
00184 \n\
00185 \n\
00186 variable PL_LEGEND_ROW_MAJOR 128\n\
00187 \n\
00188 \n\
00189 variable PL_COLORBAR_LABEL_LEFT 1\n\
00190 \n\
00191 \n\
00192 variable PL_COLORBAR_LABEL_RIGHT 2\n\
00193 \n\
00194 \n\
00195 variable PL_COLORBAR_LABEL_TOP 4\n\
00196 \n\
00197 \n\
00198 variable PL_COLORBAR_LABEL_BOTTOM 8\n\
00199 \n\
00200 \n\
00201 variable PL_COLORBAR_IMAGE 16\n\
00202 \n\
00203 \n\
00204 variable PL_COLORBAR_SHADE 32\n\
00205 \n\
00206 \n\
00207 variable PL_COLORBAR_GRADIENT 64\n\
00208 \n\
00209 \n\
00210 variable PL_COLORBAR_CAP_LOW 128\n\
00211 \n\
00212 \n\
00213 variable PL_COLORBAR_CAP_HIGH 256\n\
00214 \n\
00215 \n\
00216 variable PL_COLORBAR_SHADE_LABEL 512\n\
00217 \n\
00218 # device coordinates\n\
00219 variable PLSWIN_DEVICE 1\n\
00220 \n\
00221 # world coordinates\n\
00222 variable PLSWIN_WORLD 2\n\
00223 \n\
00224 # The x-axis\n\
00225 variable PL_X_AXIS 1\n\
00226 \n\
00227 # The y-axis\n\
00228 variable PL_Y_AXIS 2\n\
00229 \n\
00230 # The z-axis\n\
00231 variable PL_Z_AXIS 3\n\
00232 \n\
00233 # Obsolete\n\
00234 variable PL_OPT_ENABLED 0x0001\n\
00235 \n\
00236 # Option has an argment\n\
00237 variable PL_OPT_ARG 0x0002\n\
00238 \n\
00239 # Don't delete after processing\n\
00240 variable PL_OPT_NODELETE 0x0004\n\
00241 \n\
00242 # Make invisible\n\
00243 variable PL_OPT_INVISIBLE 0x0008\n\
00244 \n\
00245 # Processing is disabled\n\
00246 variable PL_OPT_DISABLED 0x0010\n\
00247 \n\
00248 # Call handler function\n\
00249 variable PL_OPT_FUNC 0x0100\n\
00250 \n\
00251 # Set *var = 1\n\
00252 variable PL_OPT_BOOL 0x0200\n\
00253 \n\
00254 # Set *var = atoi(optarg)\n\
00255 variable PL_OPT_INT 0x0400\n\
00256 \n\
00257 # Set *var = atof(optarg)\n\
00258 variable PL_OPT_FLOAT 0x0800\n\
00259 \n\
00260 # Set var = optarg\n\
00261 variable PL_OPT_STRING 0x1000\n\
00262 \n\
00263 # For backward compatibility\n\
00264 variable PL_PARSE_PARTIAL 0x0000\n\
00265 \n\
00266 # Process fully & exit if error\n\
00267 variable PL_PARSE_FULL 0x0001\n\
00268 \n\
00269 # Don't issue messages\n\
00270 variable PL_PARSE_QUIET 0x0002\n\
00271 \n\
00272 # Don't delete options after\n\
00273 variable PL_PARSE_NODELETE 0x0004\n\
00274 \n\
00275 # Show invisible options\n\
00276 variable PL_PARSE_SHOWALL 0x0008\n\
00277 \n\
00278 # Obsolete\n\
00279 variable PL_PARSE_OVERRIDE 0x0010\n\
00280 \n\
00281 # Program name NOT in *argv[0]..\n\
00282 variable PL_PARSE_NOPROGRAM 0x0020\n\
00283 \n\
00284 # Set if leading dash NOT required\n\
00285 variable PL_PARSE_NODASH 0x0040\n\
00286 \n\
00287 # Skip over unrecognized args\n\
00288 variable PL_PARSE_SKIP 0x0080\n\
00289 \n\
00290 \n\
00291 variable PL_FCI_MARK 0x80000000\n\
00292 \n\
00293 \n\
00294 variable PL_FCI_IMPOSSIBLE 0x00000000\n\
00295 \n\
00296 \n\
00297 variable PL_FCI_HEXDIGIT_MASK 0xf\n\
00298 \n\
00299 \n\
00300 variable PL_FCI_HEXPOWER_MASK 0x7\n\
00301 \n\
00302 \n\
00303 variable PL_FCI_HEXPOWER_IMPOSSIBLE 0xf\n\
00304 \n\
00305 \n\
00306 variable PL_FCI_FAMILY 0x0\n\
00307 \n\
00308 \n\
00309 variable PL_FCI_STYLE 0x1\n\
00310 \n\
00311 \n\
00312 variable PL_FCI_WEIGHT 0x2\n\
00313 \n\
00314 \n\
00315 variable PL_FCI_SANS 0x0\n\
00316 \n\
00317 \n\
00318 variable PL_FCI_SERIF 0x1\n\
00319 \n\
00320 \n\
00321 variable PL_FCI_MONO 0x2\n\
00322 \n\
00323 \n\
00324 variable PL_FCI_SCRIPT 0x3\n\
00325 \n\
00326 \n\
00327 variable PL_FCI_SYMBOL 0x4\n\
00328 \n\
00329 \n\
00330 variable PL_FCI_UPRIGHT 0x0\n\
00331 \n\
00332 \n\
00333 variable PL_FCI_ITALIC 0x1\n\
00334 \n\
00335 \n\
00336 variable PL_FCI_OBLIQUE 0x2\n\
00337 \n\
00338 \n\
00339 variable PL_FCI_MEDIUM 0x0\n\
00340 \n\
00341 \n\
00342 variable PL_FCI_BOLD 0x1\n\
00343 \n\
00344 \n\
00345 variable PL_MAXKEY 16\n\
00346 \n\
00347 # Max number of windows/page tracked\n\
00348 variable PL_MAXWINDOWS 64\n\
00349 \n\
00350 \n\
00351 variable PL_NOTSET -42\n\
00352 \n\
00353 \n\
00354 variable PL_PI 3.1415926535897932384\n\
00355 \n\
00356 \n\
00357 variable PLESPLFLTBUFFERING_ENABLE 1\n\
00358 \n\
00359 \n\
00360 variable PLESPLFLTBUFFERING_DISABLE 2\n\
00361 \n\
00362 \n\
00363 variable PLESPLFLTBUFFERING_QUERY 3\n\
00364 \n\
00365 # Bivariate Cubic Spline approximation\n\
00366 variable GRID_CSA 1\n\
00367 \n\
00368 # Delaunay Triangulation Linear Interpolation\n\
00369 variable GRID_DTLI 2\n\
00370 \n\
00371 # Natural Neighbors Interpolation\n\
00372 variable GRID_NNI 3\n\
00373 \n\
00374 # Nearest Neighbors Inverse Distance Weighted\n\
00375 variable GRID_NNIDW 4\n\
00376 \n\
00377 # Nearest Neighbors Linear Interpolation\n\
00378 variable GRID_NNLI 5\n\
00379 \n\
00380 # Nearest Neighbors Around Inverse Distance Weighted\n\
00381 variable GRID_NNAIDW 6\n\
00382 }" );
00383 }