From: Andy S. <an...@a2...> - 2004-02-29 04:04:08
|
Hi all. I want to make parametric surface plots, but I can't figure out how to do it with Gnuplot.py. I've seen plenty of examples done with gnuplot functions, but... how to provide my own data? I can do something like this: (pseudocode) u = aspan(-0.5*Pi, 0.5*Pi, 100) v = aspan(0, 2.0*Pi, 100) uv = cartesian_product(u, v) g('set parametric') g.splot(GridData(cos(uv[0])*cos(uv[1]), cos(uv[0])*sin(uv[1]), sin(uv[0]), type='lines')) Sure enough, it plots a sphere as expected, but its a line trace not a true surface, e.g. it can't hide backfaces... I've seen plenty of examples online using gnuplot's internal functions, but I've got no idea how to do a parametric surface from input data... is this possible? Thanks, Andy. --------------------------------------------------------------- Andrew (Andy) W. Schmeder mailto:an...@a2... http://www.a2hd.com |