|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
GNUPLOT
![]() _______________________________________________ Octave-graphics mailing list Octave-graphics@... https://www.cae.wisc.edu/mailman/listinfo/octave-graphics |
|||||||
|
|
Re: GNUPLOTMarize Simoes wrote:
> Hi, > > Sorry, but my english is terrible. > > Is a emergency! > I need to try to find a way inside call gnuplot in octave. > > !Preciso encontrar uma maneira de plotar graficos dentro do octave...Alguem > sabe como faço isso? > > Somebody has an example of as use function PM3D? > Alguém tem um exemplo de como eu uso a função PM3D? If it is a real emergency, you'd be best off saving the data to a file and then running gnuplot separately. There is also something called __gnuplot_raw__ that will allow sending commands to the gnuplot stream, say after generating a mesh and you want to change that to pm3d. Dan _______________________________________________ Octave-graphics mailing list Octave-graphics@... https://www.cae.wisc.edu/mailman/listinfo/octave-graphics |
|||||||
|
|
Re: GNUPLOT Hi All,
I developed for my work at Tyzx (.com) a raw octave-gnuplot interface: it creates temp dirs, saves data, and allows you to run gnuplot with the commands of your choice. If you know how to use gnuplot (and octave), this interface may be useful. I have been authorized to distribute it and send it in attachment. For a fast start, try the g_demo() function, as it shows how to use the pm3d (and image) feature. You may also be interested by the 'myimage' function (uses the image viewer qiv, some functionality requires imagemagick) to manipulate/display images. From g_new(): ============================================================================ octave:131> help g_new g = g_new ( ...) - Create a new gnuplot_object and its directory The g_XYZ() functions allow Octave to create plots with Gnuplot. They are little more than an Octave front-end to Gnuplot, but allow to do anything Gnuplot can do directly from Octave. In addition, there are some commodity functions (g_cmd() with struct arg, g_locate()) that allow to nest one figure in another. g_new() creates a temporary directory in which data and commands will be stored in a gnuplot-readable format. g_new accepts key, value pairs of arguments, which will be passed to g_set. Typical usage: g = g_new (<my options, e.g. on how to display>) g = g_data (g, "myChosenDataFileName", data, ...) g = g_cmd (g, <gnuplot commands, e.g.>,\ "plot 'myChosenDataFileName' with lines",...); g_plot (g,<options on how to plot, e.g. to file>); DEMO: Run g_demo(), or see http://gnuplot.sourceforge.net/demo_4.1 on how to do nice plots. SEE ALSO: g_ez, g_delete, g_data, g_cmd, g_plot, g_set, g_locate. TODO: an OO style of function call (see failed attempt at end of g_new code) ============================================================================ octave:132> help myimage im2 = myimage (im,...) - Make im viewable by normalizing greylevels and more Scales the values of im so that they range in [0,255]. The smallest element of im (or range(1), if the "range" option is used) is mapped to zero, and the largest (or range(2)) is mapped to 255. If both dimensions are less than 180, If the save option is not used, and nargout is 0, then im2 will be displayed, rather than returned. NaN and Inf pixels become black or, if the image is saved as a .png or .gif, transparent. OPTIONS: -------- "range", [min,max] : Graylevel range to be mapped to 0:255. Default:[min(im(:)),max(im(:))] "minsz", [Rows,Cols] : Minimum dims of im2. im will be scale by an integral factor so that at least one of its dimensions matches minsz. Default: [180 180] "is_col" : Color image, consecutive rows being R, G and B. "colormap", : Convert greylevel image to a 'rainbow' colormap "show_range" : Place a graylevel scale below image. "scale_sz",sz : Width of graylevel scale. Implies show_range. "text", [x,y], str : Annotate image with str, at position x,y, with size sz "text", [x,y,sz],str "line", [x,y,x,y,R,G,B,W] or "line", [x,y,x,y,R,G,B] or "line", [x,y,x,y,C,W] or "line", [x,y,x,y,C] or "line", [x,y,x,y] "save", filename : Save im2 in filename. "display", yesno : Display im2 or not. Default: False iff save requested or nargout!=0. EXAMPLES: type "demo myimage" to run the examples below --------- myimage (randn(3,3), "show_range") myimage (rand(9,3), "is_col") myimage (randn(32,32), "minsz",[32,50]) myimage (ones(64,1)*linspace(0,1,256), "colormap") myimage (linspace(0,3,256)'*ones(1,64), "range",[3 1]) myimage (zeros(200,200), "text",[10,20],">> 1 + pi\nans = 4.1416\n>>") im = kron (ones(4), kron (eye(2),ones(10))); im += ones (80,1)*linspace(0,1/2,80); myimage (im,"text",[11,5],"Hello","text", [10,30,30],"world") =========================================================================== Hth, but your mileage may vary... Etienne On Tue, March 6, 2007 4:07 pm, Daniel J Sebald wrote: # Marize Simoes wrote: #> Hi, #> #> Sorry, but my english is terrible. #> #> Is a emergency! #> I need to try to find a way inside call gnuplot in octave. #> #> !Preciso encontrar uma maneira de plotar graficos dentro do #> octave...Alguem #> sabe como faço isso? #> #> Somebody has an example of as use function PM3D? #> Alguém tem um exemplo de como eu uso a função PM3D? # # If it is a real emergency, you'd be best off saving the data to a file and # then running gnuplot separately. # # There is also something called __gnuplot_raw__ that will allow sending # commands to the gnuplot stream, say after generating a mesh and you want # to change that to pm3d. # # Dan # _______________________________________________ # Octave-graphics mailing list # Octave-graphics@... # https://www.cae.wisc.edu/mailman/listinfo/octave-graphics # -- http://www.isr.ist.utl.pt/~etienne _______________________________________________ Octave-graphics mailing list Octave-graphics@... https://www.cae.wisc.edu/mailman/listinfo/octave-graphics |
| Free embeddable forum powered by Nabble | Forum Help |