Re: Triangle Plots
- To: mathgroup at smc.vnet.net
- Subject: [mg43342] Re: Triangle Plots
- From: "Carl T. Bergstrom" <cbergst at homer.u.washington.edu>
- Date: Mon, 25 Aug 2003 04:10:52 -0400 (EDT)
- References: <bi186l$adp$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hello David, I just finished writing a package to do all sorts of plotting on the 2D simplex, including vector fields, list plots, contour plots, and 3D surfaces. For the 3D surfaces, I use a matrix of smaller equilateral triangles to render the surface over exactly the 2D simplex. The package relies upon David Park's DrawGraphics packages (and David helped me out a great deal in the process of putting this together.) You can download the package, and a notebook of simple examples, at my website: http://octavia.zoology.washington.edu/Mathematica/ David's DrawGraphics is available at http://home.earthlink.net/~djmp/Mathematica.html Hope this helps, Carl --- Carl Bergstrom Department of Biology University of Washington > Dear Mathematica experts: > > I'd like to plot a function that's only defined for points on an > equilateral triangle (the 2-dimensional simplex). So I'd like to produce > a 3-D surface (or a contour plot) of function values for x-y coordinates > in the triangle, not in the usual box or grid. > > Is there a way to do this? I can fudge it by defining the function to be > some base value for all x-y pairs not in the triangle using Condition > (/;) statements, but I'd like to be able to do it directly. > > Thanks for any help, > > David Epstein