Back to index

texmacs  1.0.7.15
Functions | Variables
__plt2vm__.m File Reference

Go to the source code of this file.

Functions

 usage (msg)
 elseif (nargin==2||fmt=="") fmt
 if (length(getenv("TEXMACS_PATH"))>0) gset output '/tmp/tmplot.eps'
endif if (x_nr==1) x
 elseif (x_nr==y_nc) y
else error ("__plt2vm__: matrix dimensions must match")
 if (y_nc > 0) tmp
 if (k< fmt_nr) k++
endif endfor eval (cmd)
 while (g==-1) sleep(1)
endwhile while (!feof(g)) f
 if (length(f)) P
endif endwhile fclose (g)
 disp (sprintf("%cverbatim:\n", 2))
 disp (setstr(P'))
 system ("rm /tmp/tmplot.eps")
endif else error ("__plt2vm__: arguments must be a matrices")

Variables

function __plt2vm__ (x, y, fmt) if(nargin< 2||nargin > 3) msg = sprintf ("__plt2vm__ (x, y)\n")
 msg = sprintf ("%s __plt2vm__ (x, y, fmt)", msg)
 endif [x_nr, x_nc] = size (x)
 tmp = x_nr
 x_nr = x_nc
 x_nc = tmp
 y_nr = y_nc
 y_nc = tmp
endif k = 1
 fmt_nr = rows (fmt)
 cmd
endif for i
 g = fopen("/tmp/tmplot.eps")
 f
 P = [P

Function Documentation

disp ( sprintf("%cverbatim:\n", 2)  )
disp ( setstr(P')  )
elseif ( nargin  = =2||fmt=="")
elseif ( x_nr  = =y_nc)
else error ( "__plt2vm__: matrix dimensions must match"  )
endif else error ( "__plt2vm__: arguments must be a matrices"  )
endif endfor eval ( cmd  )
endif endwhile fclose ( g  )
if ( length(getenv("TEXMACS_PATH"))  ,
 
)
endif if ( x_nr  = =1)
if ( y_nc  ,
 
)
if ( )
if ( length(f )
system ( "rm /tmp/tmplot.eps"  )
usage ( msg  )
while ( g  = =-1)
endwhile while ( feofg)

Variable Documentation

function __plt2vm__(x, y, fmt) if(nargin< 2||nargin > 3) msg = sprintf ("__plt2vm__ (x, y)\n")
cmd
Initial value:
 sprintf ("gplot tmp(:,%d:%d:%d) %s", 1, x_nc, x_nc+1,
                   deblank (fmt (k, :)))

Definition at line 68 of file __plt2vm__.m.

endif[x_nr, x_nc] = size (x)

Definition at line 39 of file __plt2vm__.m.

f

Definition at line 91 of file __plt2vm__.m.

fmt_nr = rows (fmt)

Definition at line 65 of file __plt2vm__.m.

g = fopen("/tmp/tmplot.eps")

Definition at line 83 of file __plt2vm__.m.

Initial value:
 2:y_nc
      cmd = sprintf ("%s, tmp(:,%d:%d:%d) %s", cmd, 1, i, i+1,
                     deblank (fmt (k, :)))

Definition at line 73 of file __plt2vm__.m.

endif k = 1

Definition at line 64 of file __plt2vm__.m.

msg = sprintf ("%s __plt2vm__ (x, y, fmt)", msg)

Definition at line 33 of file __plt2vm__.m.

P = [P

Definition at line 95 of file __plt2vm__.m.

tmp = x_nr

Definition at line 48 of file __plt2vm__.m.

x_nc = tmp

Definition at line 50 of file __plt2vm__.m.

Definition at line 49 of file __plt2vm__.m.

y_nc = tmp

Definition at line 59 of file __plt2vm__.m.

Definition at line 58 of file __plt2vm__.m.