Navigation

Operators and Keywords

Function List:

C++ API

__gnuplot_ginput__.m File Reference


Functions

if(numel(ostream)< 1) error("ginput fflush (ostream)
 fputs (ostream,"\nif (exists(\"MOUSE_KEY\") && exists(\"MOUSE_X\")) print MOUSE_X, MOUSE_Y, MOUSE_KEY; else print \"0 0 -1\"\n")
 fputs (ostream,"set print;\n")
 fclose (gpin)
else fprintf (ostream,"set print \"-\";\n")
 fputs (ostream,"pause mouse any;\n\n")
 fputs (ostream,"\nif (exists(\"MOUSE_KEY\") && exists(\"MOUSE_X\")) print \"OCTAVE: \", MOUSE_X, MOUSE_Y, MOUSE_KEY; else print \"0 0 -1\"\n")
 while (isempty(str)) str
 if (isempty(str)) sleep(0.05)
endif fclear (istream)
endif if ([x(k), y(k), button(k)]==[0, 0,-1]) break
endif if (nargin > 1) if(k

Variables

 function [x, y, button]
if(err!=0) error("ginput n n = fopen (gpin_name, "r")
 str = {}
 endwhile [x(k), y(k), button(k), count] = sscanf (str{end}(8:end), "%f %f %d", "C")

Function Documentation

endif fclear ( istream   ) 

fclose ( gpin   ) 

if (numel (ostream) < 1) error ("ginput fflush ( ostream   ) 

else fprintf ( ostream  ,
"set print \"-\";\n"   
)

fputs ( ostream  ,
"\nif (exists(\"MOUSE_KEY\") && exists(\"MOUSE_X\")) print \"OCTAVE: \"  ,
MOUSE_X  ,
MOUSE_Y  ,
MOUSE_KEY;else print\"0 0 -1\"\n"   
)

fputs ( ostream  ,
"pause mouse any;\n\n"   
)

fputs ( ostream  ,
"set print;\n"   
)

fputs ( ostream  ,
"\nif (exists(\"MOUSE_KEY\") && exists(\"MOUSE_X\")) print   MOUSE_X,
MOUSE_Y  ,
MOUSE_KEY;else print\"0 0 -1\"\n"   
)

endif if ( nargin  ,
 
)

endif if ( ,
-1]   
)

if ( isempty(str)   ) 

while ( isempty(str)   ) 


Variable Documentation

endwhile[x(k), y(k), button(k), count] = sscanf (str{end}(8:end), "%f %f %d", "C")

function[x, y, button]

Initial value:

 __gnuplot_ginput__ (f, n)

  ostream = get (f, "__plot_stream__")

if (err != 0) error ("ginput n n = fopen (gpin_name, "r")

else str = {}