> On Thu, Dec 23, 2010 at 4:50 PM, Martin Helm <mar...@mhelm.de> wrote: >> Am Donnerstag, 23. Dezember 2010, 12:43:32 schrieb Juan Pablo Carbajal: >>> Dear all, >>> Is there an octave solution to plot data on a triangular mesh? >>> >>> I tried using griddata to convert the triangular mesh data to square >>> grid, but results are not satisfactory. Is anyone working on this? >>> >>> I could offer a simple opengl C++ function to do this. I have a highly >>> inefficient implementation on octave using patches, but only works for >>> 2D triangulations and the coloring is flat (unless somebody tells me >>> how to fill patches with interpolated colors) >>> >>> Thanks >> >> For interpolated colors (will not work with gnuplot only with backend fltk) >> use >> >> shading interp >> >> Simple example to test with: >> >> backend fltk >> sombrero >> shading interp >> >> This also works for patches of course. >> > > > > -- > M. Sc. Juan Pablo Carbajal > ----- > PhD Student > University of Zürich > www.ailab.ch/carbajal >
My previous message bounced because of size, my apologies. I decided to use pdesurf with fltk backend and the results are fairly good (the function returns the proper handle to control the patches properties). However there is one issue. A white border appears in some places (PNGS here: python: http://ubuntuone.com/p/V8a/, octave: http://ubuntuone.com/p/V8b/). Checking whether there was some problem with the data, I use a homemade matplotlib-octave wrapper (data exchanged via text files) to perfomr the same plot. The result is the correct one. Is this a problem with the backend (using gnuplot produces no white lines but color spots here and there the figure)? Or it is something with the patch function? Thanks -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Zürich www.ailab.ch/carbajal ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev