OctPlot

OctPlot is an application that can handle graphics package for Octave, the Free alternative to matlab.
Download

OctPlot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • OctPlot Development Team
  • Publisher web site:

OctPlot Tags


OctPlot Description

OctPlot is an application that can handle graphics package for Octave, the Free alternative to matlab. OctPlot is an application that can handle graphics package for Octave, the free alternative to matlab. OctPlot provides quality postscript and screen graphics.OctPlot is free open source software under the terms of the GNU General Public License (GPL).Requirements:· octave >= 2.1.50· octave-forge >= 2004.07.07 (uses dispatch, addpath, rmpath, colormaps)· fltk >= 1.1.4· freetype >= 9.0.3· ghostscript if you want pdf,png and jpg hardcopy. Otherwise you are stuck with eps/ps onlyINSTALLATION:You can control what the install directories are using the following options: --with-path: the install path prefix (rarely needed) --with-mpath: where toggle_octplot.m goes (this should lie in Octave's LOADPATH) --with-opath: where octplot's .oct files go (this should *not* lie in Octave's LOADPATH) --with-octplotmpath: where octplot's .m files go (this should *not* lie in Octave's LOADPATH) --with-fontpath: where octplot's font files go ./configure && make && make installis the way to go.there are some nice demos in the demos directory.EXAMPLES:Example script:############################################## first, setup octplotoctplot_enable## simple sin with line property settings & xtic controlt=(0:10000)/10000*2*pi;h=plot(t,sin(t),"b-;sin;");title("simple sin");xlabel("t ");ylabel("sin(t)");axis();set(gca(),"xtick",(0:0.5:2)*pi);set(gca(),"xticklabel","0|pi/2|pi|3pi/2|2pi");## change line style and add markers -- might be slow since there are## 1e4 data pointsset(h,"linestyle","-","marker","o");## change legend location NEW in 0.3.1legend("Location","SouthWest");## now add some coloured rotated text## NEW in 0.2.5text(0.1,0,"Rotated","fontsize",24,"rotation",25,"color","m");## now make hardcopy, first eps, than png, than pdf (the last two require ghostscript)print("demo.eps");## NEW in 0.2.5print("demo.png","-dpng");## NEW in 0.2.5print("demo.pdf","-dpdf");################################################# freqz plot (requires octave-forge for butter.m)## shows off subplots=butter(5,,"stop");freqz(b,a);################################################ simple contourf plotclf();=meshgrid(-2:.2:2, -2:.2:3); z = x.*exp(-x.^2 - y.^2);colormap(hot);contourf(x,y,z);grid("on");################################################ contour plot with labelsclf();=meshgrid(-2:.2:2, -2:.2:3);z = x.*exp(-x.^2 - y.^2);colormap(hot); = contour(x,y,z,-0.4:0.1:0.4);clabel(c,h);################################################ simple pseudocolor plotclf();=meshgrid(-2:.2:2, -2:.2:3); z = x.*exp(-x.^2 - y.^2);pcolor(x,y,z);colormap(jet);grid("on");try zooming using the left mouse button, zoom-out using the rightmouse button, double click to transfer current mouse coords toclipboard. press "g" to toggle gridfor help on object properties try:help figure_propshelp axes_propshelp line_propshelp text_propshelp surface_propshelp patch_propshelp legend_propsWhat's New in This Release:New features· patches can now be concave. patch color can be specified per-vertex· improved contouring: contourf & clabel· figure handles are now integers corresponding to the figure number· files now install in better directories. Mac builds should work out of the box· rendering of surface objects can now be done in shading faceted, interp and flat (see help shading), also surface can use alpha channel (note: this is screen only -- hardcopy does not support alpha)· octplot should now compile under MSVC· caxis (see help caxis)Notable bug fixes· layering is now done in the correct order· clf will not create a new axes· arrows are now drawn much more efficiently· speedup of configure script· improved and debugged bar/barh· successive calls to colorbar will not add new colorbars!· __contourc__ will now not split single contours into multiple lines


OctPlot Related Software