Timeline for How to plot ternary density plots?
Current License: CC BY-SA 3.0
21 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 16, 2020 at 9:23 | history | edited | CommunityBot | Commonmark migration | |
| Apr 13, 2017 at 12:56 | history | edited | CommunityBot | replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/ | |
| Jun 17, 2015 at 6:22 | vote | accept | Scott Wang | ||
| Jun 17, 2015 at 6:23 | |||||
| Jun 2, 2015 at 2:39 | vote | accept | Scott Wang | ||
| Jun 2, 2015 at 2:39 | |||||
| Jan 7, 2014 at 6:13 | comment | added | Scott Wang | Here is the code f[p_, q_, r_] := (14.02 p + 7.11 q + 10 r)/(14.02 p/33 + 7.11 q/48 + 10 r/26); dp = ContourPlot[f[x - y, y, 1 - x], {x, 0, 1}, {y, 0, 1}, Mesh -> 19, RegionFunction -> (#1 >= #2 &), ColorFunction -> (Hue[0.85 #] &), Frame -> None, PlotRange -> All, AspectRatio -> Automatic, PlotLegends -> Automatic]; triangleTicks[ MapAt[cartestianToBarycentric2 @@ Transpose[#] &, dp, {1, 1}]] | |
| Jan 7, 2014 at 6:09 | comment | added | Scott Wang | Thanks to your program, now I can get the plot. I cannot add a Legend to the ternary plot due to "CompiledFunction::cfct: Number of arguments 1 does not match the length 2 of the argument template." Is there some methods to solve this trouble? | |
| Jan 4, 2014 at 9:55 | comment | added | Alexey Popkov | The answer is great. It is worth to mention that if someone wants ticks to be perpendicular to the corresponding side of the equilateral triangle it is sufficient to replace π/3. with π/2. in the tickGraphics function. (+1) | |
| Jan 4, 2014 at 7:11 | history | edited | Michael E2 | CC BY-SA 3.0 | Added alternative solution |
| Jan 3, 2014 at 20:51 | comment | added | Michael E2 | @AlexeyPopkov GeometricTransform and Rotate have now been removed. | |
| Jan 3, 2014 at 20:50 | history | edited | Michael E2 | CC BY-SA 3.0 | Rewrote tickGraphics |
| Jan 3, 2014 at 20:13 | comment | added | Alexey Popkov | I think that Rotate is not good function for Exporting as well as GeometricTransformation. I had not collected examples but my experience shows that exporting to vector formats gives corrupted output for them. I just avoid these functions after bad experience with MMa 7-8. May be they are changed since that, I do not know. | |
| Jan 3, 2014 at 19:36 | history | edited | Michael E2 | CC BY-SA 3.0 | Added manual transform |
| Jan 3, 2014 at 19:10 | comment | added | Alexey Popkov | FindGeometricTransform is good for understanding but for practical purposes explicit transformation would be preferred because there may be some issues with Exporting Graphics containing GeometricTransformation. | |
| Jan 3, 2014 at 19:06 | comment | added | Alexey Popkov | It does not change much but strictly speaking you should use LessEqual instead of Less in the RegionFunction specification. | |
| Jan 3, 2014 at 18:53 | history | edited | Michael E2 | CC BY-SA 3.0 | Fixed error, improved code |
| Jan 3, 2014 at 18:25 | comment | added | Alexey Popkov | According to Wikipedia, the sum of three variables must be a constant for ternary plot. | |
| Jan 3, 2014 at 18:19 | comment | added | bobthechemist | Is the range you've used for f correct for a ternary plot? I thought the sum of the arguments needs to be <= 1. | |
| Jan 3, 2014 at 18:09 | comment | added | bobthechemist | Ugh, it took me forever to find the transform, +1. | |
| Jan 3, 2014 at 17:57 | history | edited | Michael E2 | CC BY-SA 3.0 | Included missing code |
| Jan 3, 2014 at 17:54 | comment | added | Alexey Popkov | What is the definition for function f[x, y, 1 - y] you have plotted? | |
| Jan 3, 2014 at 17:47 | history | answered | Michael E2 | CC BY-SA 3.0 |