Changeset 3017
- Timestamp:
- May 25, 2012, 8:14:09 AM (12 years ago)
- Location:
- branches/blt4/builder/scripts/templates
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/builder/scripts/templates/clang.tl
r2170 r3017 134 134 code "\n/* save output value for $path */" 135 135 code "/* this shows just one point -- modify as needed */" 136 code "/* (x, h,w) = x-coord, height of bar, and width of bar (optional)*/"137 code "sprintf(line, \"% g %g %g\\n\", x, h, w);"138 code "rpPutString(io,\"$path.component.x hw\", line, RPLIB_APPEND);"136 code "/* (x,y) = x-label, y-coordinate is height of bar */" 137 code "sprintf(line, \"%s %g\\n\", x, y);" 138 code "rpPutString(io,\"$path.component.xy\", line, RPLIB_APPEND);" 139 139 } 140 140 output image { -
branches/blt4/builder/scripts/templates/fortran77.tl
r2170 r3017 130 130 code "\nc save output value for $path" 131 131 code "c this shows just one point -- modify as needed" 132 code "c (x, h,w) = x-coord, height of bar, and width of bar (optional)"133 code " write(strVal,'( E20.12,E20.12,E20.12,A)') x, h, w, char(10)"134 code " call rp_lib_put_str(io,\n + \"$path.component.x hw\",strVal,1)"132 code "c (x,y) = x-label, y-coordinate is height of bar" 133 code " write(strVal,'(A20,E20.12,A)') label, x, h, char(10)" 134 code " call rp_lib_put_str(io,\n + \"$path.component.xy\",strVal,1)" 135 135 } 136 136 output image { -
branches/blt4/builder/scripts/templates/java.tl
r2170 r3017 91 91 code "\n// save output value for $path" 92 92 code "// this shows just one point -- modify as needed" 93 code "// (x, h,w) = x-coord, height of bar, and width of bar (optional)"94 code "str = String.format(\"% g %g %g\\n\", x, h, w);"95 code "io.put(\"$path.component.x hw\", line, true);"93 code "// (x,y) = x-label, y-coordinate is height of bar" 94 code "str = String.format(\"%s %g\\n\", x, y);" 95 code "io.put(\"$path.component.xy\", line, true);" 96 96 } 97 97 output image { -
branches/blt4/builder/scripts/templates/matlab.tl
r2170 r3017 83 83 output histogram { 84 84 code "\n% save output value for $path" 85 code "% vectors x, h,w: x-coord, height of bar, and width of bar (optional)"86 code "x hwdata = \[x;h;w\];"87 code "str = sprintf('% 12g %12g %12g\\n', xhwdata);"88 code "rpLibPutString(io,'$path.component.x hw',str,0);"85 code "% vectors x,y: x-label, y-coordinate is height of bar" 86 code "xydata = \[x;y\];" 87 code "str = sprintf('%s %12g\\n', x, y);" 88 code "rpLibPutString(io,'$path.component.xy',str,0);" 89 89 } 90 90 output image { -
branches/blt4/builder/scripts/templates/octave.tl
r2170 r3017 95 95 output integer { 96 96 code "\n% save output value for $path" 97 code "rpLibPutString(io,'$path.current', num2str($id),0);"97 code "rpLibPutString(io,'$path.current',int2str($id),0);" 98 98 } 99 99 output number { -
branches/blt4/builder/scripts/templates/perl.tl
r2170 r3017 79 79 code "\n# save output value for $path" 80 80 code "# this shows just one point -- modify as needed" 81 code "# (x, h,w) = x-coord, height of bar, and width of bar (optional)"82 code "\$io->put(\"$path.component.x hw\", \"\$x \$h \$w\\n\", 1);"81 code "# (x,y) = x-label, y-coordinate is height of bar" 82 code "\$io->put(\"$path.component.xy\", \"\$x \$y\\n\", 1);" 83 83 } 84 84 output image { -
branches/blt4/builder/scripts/templates/python.tl
r2294 r3017 85 85 code "\n# save output value for $path" 86 86 code "# this shows just one point -- modify as needed" 87 code "# (x, h,w) = x-coord, height of bar, and width of bar (optional)"88 code "line = \"% g %g %g\n\" % (x, h, w)"89 code "io.put('$path.component.x hw', line, append=1)"87 code "# (x,y) = x-label, y-coordinate is height of bar" 88 code "line = \"%s %g\n\" % (x, y)" 89 code "io.put('$path.component.xy', line, append=1)" 90 90 } 91 91 output image { -
branches/blt4/builder/scripts/templates/r.tl
r2945 r3017 79 79 code "\n# save output value for $path" 80 80 code "# assumes output in vectors x and y" 81 code "str <- paste(sprintf(\"% g%g\\n\",x,y), collapse=\"\")"81 code "str <- paste(sprintf(\"%s %g\\n\",x,y), collapse=\"\")" 82 82 code "rp_lib_put_string(io,\"$path.component.xy\",str,FALSE)" 83 83 } -
branches/blt4/builder/scripts/templates/ruby.tl
r2170 r3017 79 79 code "\n# save output value for $path" 80 80 code "# this shows just one point -- modify as needed" 81 code "# (x, h,w) = x-coord, height of bar, and width of bar (optional)"82 code "str = sprintf(\"%g %g %g\\n\", x, h, w)"81 code "# (x,y) = x-label, y-coordinate is height of bar" 82 code "str = sprintf(\"%g %g %g\\n\", x, y)" 83 83 code "io.put(\"$path.component.xhw\", str, Rappture::APPEND)" 84 84 } -
branches/blt4/builder/scripts/templates/tcl.tl
r2170 r3017 79 79 code "\n# save output value for $path" 80 80 code "# this shows just one point -- modify as needed" 81 code "# (x, h,w) = x-coord, height of bar, and width of bar (optional)"82 code "\$io put -append yes $path.component.xy \"\$x \$ h \$w\\n\""81 code "# (x,y) = x-label, y-coordinate is height of bar" 82 code "\$io put -append yes $path.component.xy \"\$x \$y\\n\"" 83 83 } 84 84 output image {
Note: See TracChangeset
for help on using the changeset viewer.