|
From: K T A <ch...@gm...> - 2007-08-12 14:22:50
|
This is my first mail to this list - so hello to you all! First posts often go hand in hand with problems. So here is mine ;-): I work on some 3D plots of ternary phase diagrams (used in chemistry and mineralogy) and I already solved most problems involved but one. The base of such a plot is a triangle and not a rectangle - as the picture shows, when I plot data using dgrid3d the generated layer (red) is a rectangle but I really need this layer to exactly fit the base triangle! Is there a way to do this? Thanks you in advance. KTA http://www.nabble.com/file/p12114570/3d-phase.png -- View this message in context: http://www.nabble.com/Ploting-a-3D-Ternary-Phase-Diagram---dgrid3d-Problem...-tf4256890.html#a12114570 Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: <HBB...@t-...> - 2007-08-12 18:12:17
|
K T A wrote: > I work on some 3D plots of ternary phase diagrams (used in chemistry and > mineralogy) and I already solved most problems involved but one. The base of > such a plot is a triangle and not a rectangle - as the picture shows, when I > plot data using dgrid3d the generated layer (red) is a rectangle but I > really need this layer to exactly fit the base triangle! Is there a way to > do this? There's basically only one: don't use dgrid3d. There's a solid probability that you don't need it anyway. |
|
From: K T A <ch...@gm...> - 2007-08-12 20:47:16
|
Hans-Bernhard Br=C3=B6ker-2 wrote: >=20 > There's basically only one: don't use dgrid3d. There's a solid=20 > probability that you don't need it anyway. Ok, here is another picture: http://www.nabble.com/file/p12117705/3d-phase2.png=20 I need it to look like this, just without the overlapping parts. Do you kno= w another way to generate a plot like this? That there is a solid probability that I don't need dgrid3d sounds promising, tell me more! Thanks. KTA --=20 View this message in context: http://www.nabble.com/Ploting-a-3D-Ternary-Ph= ase-Diagram---dgrid3d-Problem...-tf4256890.html#a12117705 Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: <HBB...@t-...> - 2007-08-12 21:28:54
|
K T A wrote: > Hans-Bernhard Bröker-2 wrote: >> There's basically only one: don't use dgrid3d. There's a solid >> probability that you don't need it anyway. > another way to generate a plot like this? The key to this puzzle is in your data file. Using dgrid3d would force it to be geometrically rectangular. So you don't want to use it. That means you have to achieve grid structure yourself, by preparing the data accordingly. See "help splot datafile" for what that means. You'll probably have to repeat data points or add dummy ones (with undefined or out-of-range z values that you can filter away). |
|
From: Nicolau W. <nwe...@gm...> - 2007-08-12 18:34:14
|
What is the format of your data?... And how did you generate your triangular grid? if you have your data structured somehow, probably you'll just have to "expand" it in (x,y,z) tuples. What are you plotting afterall?... points, lines or surfaces? On 8/12/07, K T A <ch...@gm...> wrote: > > This is my first mail to this list - so hello to you all! First posts often > go hand in hand with problems. So here is mine ;-): > I work on some 3D plots of ternary phase diagrams (used in chemistry and > mineralogy) and I already solved most problems involved but one. The base of > such a plot is a triangle and not a rectangle - as the picture shows, when I > plot data using dgrid3d the generated layer (red) is a rectangle but I > really need this layer to exactly fit the base triangle! Is there a way to > do this? > Thanks you in advance. > > KTA > http://www.nabble.com/file/p12114570/3d-phase.png > -- > View this message in context: http://www.nabble.com/Ploting-a-3D-Ternary-Phase-Diagram---dgrid3d-Problem...-tf4256890.html#a12114570 > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- Nicolau Werneck <nwe...@ce...> 9F99 25AB E47E 8724 2F71 http://cefala.org/~nwerneck EA40 DC23 42CE 6B76 B07F |
|
From: K T A <ch...@gm...> - 2007-08-12 20:30:53
|
Thanks for your reply! Nicolau Leal Werneck wrote: > > What is the format of your data?... And how did you generate your > triangular grid? Every datapoint has 4 values, but I only need 3 since the basetriangle is in fact only a illusion :) it shows the chemical components of crystals and it always add up to 100% so I only need 2 values. The 3rd used value is the position on the z-axis which represents a special property of the crystal at the given mixture. I generated the triangle simply using the "set arrow nohead" command and I fit the data into it with "gx(x,y) = x + y * cos(60)" "gy(x,y) = y * cos(30)"... Nicolau Leal Werneck wrote: > > if you have your data structured somehow, probably you'll just have to > "expand" it in (x,y,z) tuples. > No, the data is not really structured, I played with some datafile structures but it is a nightmare - I would have to add far to many supportpoints... Nicolau Leal Werneck wrote: > > What are you plotting afterall?... points, lines or surfaces? > Plotcommand: "splot "testpoint.dat" using (gx($1,$2)):(gy($1,$2)):(gz($4)) with lines notitle" I have to find a way to plot a 3d layer but only in the borders of the basetriangle...:confused: KTA -- View this message in context: http://www.nabble.com/Ploting-a-3D-Ternary-Phase-Diagram---dgrid3d-Problem...-tf4256890.html#a12117576 Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Nicolau W. <nwe...@gm...> - 2007-08-12 23:12:19
|
On 8/12/07, K T A <ch...@gm...> wrote: > Every datapoint has 4 values, but I only need 3 since the basetriangle is in > fact only a illusion :) it shows the chemical components of crystals and it > always add up to 100% so I only need 2 values. The 3rd used value is the > position on the z-axis which represents a special property of the crystal at > the given mixture. Very interesting!... I believe you'll probably have to struture your mesh yourself, like Hans said... Do you have a bunch of data you are fitting to a surface, or is it a function that you want to plot?... If it's a function, just make a small program that draws the mesh... You can even make a triangular mesh, it would be closer to your "problem language", and is even easier to do then a square mesh. If it's a bunch of data you are fitting to a surface, you'll have to find a small program to do the fit, I'm not sure if gnuplot alone would be flexible enough for you... -- Nicolau Werneck <nwe...@ce...> 9F99 25AB E47E 8724 2F71 http://cefala.org/~nwerneck EA40 DC23 42CE 6B76 B07F |