I have to plot a function on a triangular domain.
The values of the function are in a .dat file.
I can only plot points but I don't know how to create the surface.
In particular I don't know how to set that the surface elements are triangular and not rectangular.
There is a specially format for the .dat file to do this? It's possible?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have to plot a function on a triangular domain.
The values of the function are in a .dat file.
I can only plot points but I don't know how to create the surface.
In particular I don't know how to set that the surface elements are triangular and not rectangular.
There is a specially format for the .dat file to do this? It's possible?
To clarify my problem I post some examples, this is what I get:



This is instead what I would get:

Last edit: Vasch the stampede 2015-08-17
You could try "set dgrid3d".
I don't have any experience with it, but the documentation seems promising.
"set dgrid3d" don't do what I want because the domain becomes rectangular.
For simple domain I found this solution. In plan must make so that it the domain look like something like that:


And the result is right:


But for more complex domains this solution is difficult, if not impossible, to apply.