Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

pyx-checkins

 [PyX-checkins] commit 3328: trunk/pyx/examples/graphstyles/density.py: simplify code and add proper title From: - 2012-10-17 15:40:06 ```Revision: 3328 https://sourceforge.net/p/pyx/code/3328/ Author: joergl Date: 2012-10-17 15:40:03 +0000 (Wed, 17 Oct 2012) Log Message: ----------- simplify code and add proper title Modified Paths: -------------- trunk/pyx/examples/graphstyles/density.py Modified: trunk/pyx/examples/graphstyles/density.py =================================================================== --- trunk/pyx/examples/graphstyles/density.py 2012-10-17 15:39:58 UTC (rev 3327) +++ trunk/pyx/examples/graphstyles/density.py 2012-10-17 15:40:03 UTC (rev 3328) @@ -27,13 +27,13 @@ while n < max_iter and abs(z) < 2: z = (z * z) + c n += 1 - d.append([re, im, float(n)/max_iter]) + d.append([re, im, n]) # Plot graph g = graph.graphxy(height=8, width=8, x=graph.axis.linear(min=re_min, max=re_max, title=r"\$\Re(c)\$"), y=graph.axis.linear(min=im_min, max=im_max, title=r'\$\Im(c)\$')) -g.plot(graph.data.points(d, x=1, y=2, color=3), +g.plot(graph.data.points(d, x=1, y=2, color=3, title="iterations"), [graph.style.density(gradient=color.rgbgradient.Rainbow)]) g.writeEPSfile() g.writePDFfile() ```