## [PyX-checkins] SF.net SVN: pyx: [2789] trunk/pyx/gallery/graphs

 [PyX-checkins] SF.net SVN: pyx: [2789] trunk/pyx/gallery/graphs From: - 2006-05-22 20:43:48 Revision: 2789 Author: joergl Date: 2006-05-22 13:43:39 -0700 (Mon, 22 May 2006) ViewCVS: http://svn.sourceforge.net/pyx/?rev=2789&view=rev Log Message: ----------- move manyaxes exmample to gallery Modified Paths: -------------- trunk/pyx/examples/graphs/INDEX trunk/pyx/gallery/graphs/INDEX Added Paths: ----------- trunk/pyx/gallery/graphs/manyaxes.py Removed Paths: ------------- trunk/pyx/examples/graphs/manyaxes.py Modified: trunk/pyx/examples/graphs/INDEX =================================================================== --- trunk/pyx/examples/graphs/INDEX 2006-05-22 20:38:54 UTC (rev 2788) +++ trunk/pyx/examples/graphs/INDEX 2006-05-22 20:43:39 UTC (rev 2789) @@ -3,4 +3,3 @@ lissajous axis change -manyaxes Deleted: trunk/pyx/examples/graphs/manyaxes.py =================================================================== --- trunk/pyx/examples/graphs/manyaxes.py 2006-05-22 20:38:54 UTC (rev 2788) +++ trunk/pyx/examples/graphs/manyaxes.py 2006-05-22 20:43:39 UTC (rev 2789) @@ -1,21 +0,0 @@ -import math, random -from pyx import * - -# a xy-graph has linear x and y axes by default -# they might be overwritten and futher axes might be added as well -g = graph.graphxy(width=8, y=graph.axis.log(), y2=graph.axis.lin(), - y3=graph.axis.lin(min=0, max=1), - y4=graph.axis.lin(min=0, max=2)) - -# we generate some data and a function with multiple arguments -d = [[i, math.exp(0.8*i+random.random())] for i in range(1,10)] -f = lambda x, a: x*a - -g.plot(graph.data.list(d, x=1, y=2)) -g.plot(graph.data.function("y2(x)=f(x, 1)", context=locals())) - -g.plot(graph.data.function("x(y3)=5+sin(2*pi*y3)")) -g.plot(graph.data.function("x(y4)=5+sin(2*pi*y4)")) - -g.writeEPSfile("manyaxes") -g.writePDFfile("manyaxes") Modified: trunk/pyx/gallery/graphs/INDEX =================================================================== --- trunk/pyx/gallery/graphs/INDEX 2006-05-22 20:38:54 UTC (rev 2788) +++ trunk/pyx/gallery/graphs/INDEX 2006-05-22 20:43:39 UTC (rev 2789) @@ -3,6 +3,7 @@ mandel arrows shift +manyaxes integral partialfill washboard Copied: trunk/pyx/gallery/graphs/manyaxes.py (from rev 2788, trunk/pyx/examples/graphs/manyaxes.py) =================================================================== --- trunk/pyx/gallery/graphs/manyaxes.py (rev 0) +++ trunk/pyx/gallery/graphs/manyaxes.py 2006-05-22 20:43:39 UTC (rev 2789) @@ -0,0 +1,21 @@ +import math, random +from pyx import * + +# a xy-graph has linear x and y axes by default +# they might be overwritten and futher axes might be added as well +g = graph.graphxy(width=8, y=graph.axis.log(), y2=graph.axis.lin(), + y3=graph.axis.lin(min=0, max=1), + y4=graph.axis.lin(min=0, max=2)) + +# we generate some data and a function with multiple arguments +d = [[i, math.exp(0.8*i+random.random())] for i in range(1,10)] +f = lambda x, a: x*a + +g.plot(graph.data.list(d, x=1, y=2)) +g.plot(graph.data.function("y2(x)=f(x, 1)", context=locals())) + +g.plot(graph.data.function("x(y3)=5+sin(2*pi*y3)")) +g.plot(graph.data.function("x(y4)=5+sin(2*pi*y4)")) + +g.writeEPSfile("manyaxes") +g.writePDFfile("manyaxes") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 

 [PyX-checkins] SF.net SVN: pyx: [2685] trunk/pyx/gallery/graphs From: - 2006-05-17 15:35:09 Revision: 2685 Author: joergl Date: 2006-05-17 08:34:55 -0700 (Wed, 17 May 2006) ViewCVS: http://svn.sourceforge.net/pyx/?rev=2685&view=rev Log Message: ----------- move another example Modified Paths: -------------- trunk/pyx/examples/graphs/INDEX trunk/pyx/gallery/graphs/INDEX Added Paths: ----------- trunk/pyx/gallery/graphs/symbolline.py Removed Paths: ------------- trunk/pyx/examples/graphs/symbolline.py Modified: trunk/pyx/examples/graphs/INDEX =================================================================== --- trunk/pyx/examples/graphs/INDEX 2006-05-17 15:23:47 UTC (rev 2684) +++ trunk/pyx/examples/graphs/INDEX 2006-05-17 15:34:55 UTC (rev 2685) @@ -3,7 +3,6 @@ histogram lissajous piaxis -symbolline manyaxes inset link Deleted: trunk/pyx/examples/graphs/symbolline.py =================================================================== --- trunk/pyx/examples/graphs/symbolline.py 2006-05-17 15:23:47 UTC (rev 2684) +++ trunk/pyx/examples/graphs/symbolline.py 2006-05-17 15:34:55 UTC (rev 2685) @@ -1,37 +0,0 @@ -# contributed by Francisco Borges - -from pyx import * -from pyx.graph import graphxy, data, axis -from pyx.graph.axis import painter, tick -from pyx.deco import earrow - -range = 2.5 - -p = painter.regular(basepathattrs=[earrow.normal], titlepos=0.95, - outerticklength=painter.ticklength.normal, - titledist=-0.3, titledirection=None) # horizontal text - -g = graphxy(width=10, xaxisat=0, yaxisat=0, - x=axis.linear(title="$x$", min=-range, max=+range, painter=p, - # suppress some ticks by overwriting ... - manualticks=[tick.tick(0, None, None), - tick.tick(range, None, None)]), - y=axis.linear(title=r"$x\sin(x^2)$", painter=p, - manualticks=[tick.tick(0, None, None), - tick.tick(3, None, None)])) - -g.plot(data.function("y(x)=x*sin(x**2)"), - # Line style is set before symbol style -> symbols will be draw - # above the line. - [graph.style.line([style.linewidth.Thin, style.linestyle.solid]), - graph.style.symbol(graph.style.symbol.circle, size=0.1, - symbolattrs=[deco.filled([color.rgb.green]), - deco.stroked([color.rgb.red])])]) - -# manually typeset "0" near the origin -g.dolayout() -x0, y0 = g.pos(0, 0) -g.text(x0 - 0.2, y0 - 0.2, "0", [text.halign.right, text.valign.top]) - -g.writeEPSfile("symbolline") -g.writePDFfile("symbolline") Modified: trunk/pyx/gallery/graphs/INDEX =================================================================== --- trunk/pyx/gallery/graphs/INDEX 2006-05-17 15:23:47 UTC (rev 2684) +++ trunk/pyx/gallery/graphs/INDEX 2006-05-17 15:34:55 UTC (rev 2685) @@ -1,3 +1,4 @@ +symbolline mandel integral partialfill Copied: trunk/pyx/gallery/graphs/symbolline.py (from rev 2682, trunk/pyx/examples/graphs/symbolline.py) =================================================================== --- trunk/pyx/gallery/graphs/symbolline.py (rev 0) +++ trunk/pyx/gallery/graphs/symbolline.py 2006-05-17 15:34:55 UTC (rev 2685) @@ -0,0 +1,37 @@ +# contributed by Francisco Borges + +from pyx import * +from pyx.graph import graphxy, data, axis +from pyx.graph.axis import painter, tick +from pyx.deco import earrow + +range = 2.5 + +p = painter.regular(basepathattrs=[earrow.normal], titlepos=0.95, + outerticklength=painter.ticklength.normal, + titledist=-0.3, titledirection=None) # horizontal text + +g = graphxy(width=10, xaxisat=0, yaxisat=0, + x=axis.linear(title="$x$", min=-range, max=+range, painter=p, + # suppress some ticks by overwriting ... + manualticks=[tick.tick(0, None, None), + tick.tick(range, None, None)]), + y=axis.linear(title=r"$x\sin(x^2)$", painter=p, + manualticks=[tick.tick(0, None, None), + tick.tick(3, None, None)])) + +g.plot(data.function("y(x)=x*sin(x**2)"), + # Line style is set before symbol style -> symbols will be draw + # above the line. + [graph.style.line([style.linewidth.Thin, style.linestyle.solid]), + graph.style.symbol(graph.style.symbol.circle, size=0.1, + symbolattrs=[deco.filled([color.rgb.green]), + deco.stroked([color.rgb.red])])]) + +# manually typeset "0" near the origin +g.dolayout() +x0, y0 = g.pos(0, 0) +g.text(x0 - 0.2, y0 - 0.2, "0", [text.halign.right, text.valign.top]) + +g.writeEPSfile("symbolline") +g.writePDFfile("symbolline") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
 [PyX-checkins] SF.net SVN: pyx: [2771] trunk/pyx/gallery/graphs From: - 2006-05-22 10:36:32 Revision: 2771 Author: joergl Date: 2006-05-22 03:36:20 -0700 (Mon, 22 May 2006) ViewCVS: http://svn.sourceforge.net/pyx/?rev=2771&view=rev Log Message: ----------- move some examples to the gallery and reorder Modified Paths: -------------- trunk/pyx/examples/graphs/INDEX trunk/pyx/gallery/graphs/INDEX Added Paths: ----------- trunk/pyx/gallery/graphs/arrows.py trunk/pyx/gallery/graphs/inset.py Removed Paths: ------------- trunk/pyx/examples/graphs/arrows.py Modified: trunk/pyx/examples/graphs/INDEX =================================================================== --- trunk/pyx/examples/graphs/INDEX 2006-05-22 10:33:39 UTC (rev 2770) +++ trunk/pyx/examples/graphs/INDEX 2006-05-22 10:36:20 UTC (rev 2771) @@ -1,12 +1,10 @@ minimal function lissajous -histogram axis -errorbar change +histogram +errorbar piaxis manyaxes -inset link -arrows Deleted: trunk/pyx/examples/graphs/arrows.py =================================================================== --- trunk/pyx/examples/graphs/arrows.py 2006-05-22 10:33:39 UTC (rev 2770) +++ trunk/pyx/examples/graphs/arrows.py 2006-05-22 10:36:20 UTC (rev 2771) @@ -1,23 +0,0 @@ -from math import pi, atan2 -from pyx import * - -z1 = 2.5 + 4.5j -z2 = 7.5 + 5.5j - -# we abuse a parametric function below, so we express everything in terms of a parameter k -x = lambda k: int(k)/11 -y = lambda k: int(k)%11 -z = lambda k: x(k) + y(k) * 1j -f = lambda k: 1/(z(k)-z1)/(z(k)-z2) # function to be plotted -s = lambda k: 5*abs(f(k)) # magnitude of function value -a = lambda k: 180/pi*atan2(f(k).imag, f(k).real) # direction of function value - -g = graph.graphxy(width=8, - x=graph.axis.linear(min=0, max=10), - y=graph.axis.linear(min=0, max=10)) -g.plot(graph.data.paramfunction("k", 0, 120, - "x, y, size, angle = x(k), y(k), s(k), a(k)", - points=121, context=locals()),# access extern - [graph.style.arrow()]) # variables&functions -g.writeEPSfile("arrows") # by passing a context -g.writePDFfile("arrows") # by passing a context Modified: trunk/pyx/gallery/graphs/INDEX =================================================================== --- trunk/pyx/gallery/graphs/INDEX 2006-05-22 10:33:39 UTC (rev 2770) +++ trunk/pyx/gallery/graphs/INDEX 2006-05-22 10:36:20 UTC (rev 2771) @@ -1,5 +1,7 @@ symbolline +inset mandel +arrows integral partialfill washboard Copied: trunk/pyx/gallery/graphs/arrows.py (from rev 2769, trunk/pyx/examples/graphs/arrows.py) =================================================================== --- trunk/pyx/gallery/graphs/arrows.py (rev 0) +++ trunk/pyx/gallery/graphs/arrows.py 2006-05-22 10:36:20 UTC (rev 2771) @@ -0,0 +1,23 @@ +from math import pi, atan2 +from pyx import * + +z1 = 2.5 + 4.5j +z2 = 7.5 + 5.5j + +# we abuse a parametric function below, so we express everything in terms of a parameter k +x = lambda k: int(k)/11 +y = lambda k: int(k)%11 +z = lambda k: x(k) + y(k) * 1j +f = lambda k: 1/(z(k)-z1)/(z(k)-z2) # function to be plotted +s = lambda k: 5*abs(f(k)) # magnitude of function value +a = lambda k: 180/pi*atan2(f(k).imag, f(k).real) # direction of function value + +g = graph.graphxy(width=8, + x=graph.axis.linear(min=0, max=10), + y=graph.axis.linear(min=0, max=10)) +g.plot(graph.data.paramfunction("k", 0, 120, + "x, y, size, angle = x(k), y(k), s(k), a(k)", + points=121, context=locals()),# access extern + [graph.style.arrow()]) # variables&functions +g.writeEPSfile("arrows") # by passing a context +g.writePDFfile("arrows") # by passing a context Copied: trunk/pyx/gallery/graphs/inset.py (from rev 2769, trunk/pyx/examples/graphs/inset.py) =================================================================== --- trunk/pyx/gallery/graphs/inset.py (rev 0) +++ trunk/pyx/gallery/graphs/inset.py 2006-05-22 10:36:20 UTC (rev 2771) @@ -0,0 +1,10 @@ +from pyx import * + +g = graph.graphxy(width=8, x=graph.axis.linear(min=-2, max=2)) +g.plot(graph.data.function("y(x)=exp(x)")) +g2 = g.insert(graph.graphxy(width=3.5, xpos=1, ypos=2, + x=graph.axis.linear(min=0, max=3), + y=graph.axis.linear(min=-2, max=2))) +g2.plot(graph.data.function("y(x)=log(x)")) +g.writeEPSfile("inset") +g.writePDFfile("inset") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
 [PyX-checkins] SF.net SVN: pyx: [2786] trunk/pyx/gallery/graphs From: - 2006-05-22 20:36:26 Revision: 2786 Author: joergl Date: 2006-05-22 13:36:14 -0700 (Mon, 22 May 2006) ViewCVS: http://svn.sourceforge.net/pyx/?rev=2786&view=rev Log Message: ----------- move shift example to gallery Modified Paths: -------------- trunk/pyx/examples/splitgraphs/INDEX trunk/pyx/gallery/graphs/INDEX Added Paths: ----------- trunk/pyx/gallery/graphs/shift.py Removed Paths: ------------- trunk/pyx/examples/splitgraphs/shift.py Modified: trunk/pyx/examples/splitgraphs/INDEX =================================================================== --- trunk/pyx/examples/splitgraphs/INDEX 2006-05-22 20:34:12 UTC (rev 2785) +++ trunk/pyx/examples/splitgraphs/INDEX 2006-05-22 20:36:14 UTC (rev 2786) @@ -1,3 +1,2 @@ minimal splitatvalue -shift Deleted: trunk/pyx/examples/splitgraphs/shift.py =================================================================== --- trunk/pyx/examples/splitgraphs/shift.py 2006-05-22 20:34:12 UTC (rev 2785) +++ trunk/pyx/examples/splitgraphs/shift.py 2006-05-22 20:36:14 UTC (rev 2786) @@ -1,21 +0,0 @@ -# You can manually set the subaxes and exceed the axes ranges. -# The width of the regular axes can be modified by a size paramater. -# While most axes do not have a size parameter, it can be added to -# any existing axis very easily. For linear axes so called sizedlinear -# and autosizedlinear axes are defined by PyX already. -# -# Note: The mytuple/lambda construct is currently a work-around to -# create tuples within the mathtree expression evaluator. - -from pyx import * - -subaxes = [graph.axis.linear(max=1), - graph.axis.linear(max=1), - graph.axis.sizedlinear(size=3, min=0, max=3)] - -g = graph.graphxy(width=8, y=graph.axis.split(subaxes=subaxes)) -g.plot([graph.data.file("shift.dat", x=1, y="mktuple(i, $(i+2))", - context={"mktuple": lambda x, y: (x, y), "i": i}) - for i in range(3)], [graph.style.line()]) -g.writeEPSfile("shift") -g.writePDFfile("shift") Modified: trunk/pyx/gallery/graphs/INDEX =================================================================== --- trunk/pyx/gallery/graphs/INDEX 2006-05-22 20:34:12 UTC (rev 2785) +++ trunk/pyx/gallery/graphs/INDEX 2006-05-22 20:36:14 UTC (rev 2786) @@ -2,6 +2,7 @@ inset mandel arrows +shift integral partialfill washboard Copied: trunk/pyx/gallery/graphs/shift.py (from rev 2783, trunk/pyx/examples/splitgraphs/shift.py) =================================================================== --- trunk/pyx/gallery/graphs/shift.py (rev 0) +++ trunk/pyx/gallery/graphs/shift.py 2006-05-22 20:36:14 UTC (rev 2786) @@ -0,0 +1,21 @@ +# You can manually set the subaxes and exceed the axes ranges. +# The width of the regular axes can be modified by a size paramater. +# While most axes do not have a size parameter, it can be added to +# any existing axis very easily. For linear axes so called sizedlinear +# and autosizedlinear axes are defined by PyX already. +# +# Note: The mytuple/lambda construct is currently a work-around to +# create tuples within the mathtree expression evaluator. + +from pyx import * + +subaxes = [graph.axis.linear(max=1), + graph.axis.linear(max=1), + graph.axis.sizedlinear(size=3, min=0, max=3)] + +g = graph.graphxy(width=8, y=graph.axis.split(subaxes=subaxes)) +g.plot([graph.data.file("shift.dat", x=1, y="mktuple(i,$(i+2))", + context={"mktuple": lambda x, y: (x, y), "i": i}) + for i in range(3)], [graph.style.line()]) +g.writeEPSfile("shift") +g.writePDFfile("shift") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
 [PyX-checkins] SF.net SVN: pyx: [2787] trunk/pyx/gallery/graphs From: - 2006-05-22 20:37:11 Revision: 2787 Author: joergl Date: 2006-05-22 13:36:56 -0700 (Mon, 22 May 2006) ViewCVS: http://svn.sourceforge.net/pyx/?rev=2787&view=rev Log Message: ----------- move data of shift example to gallery Added Paths: ----------- trunk/pyx/gallery/graphs/shift.dat Removed Paths: ------------- trunk/pyx/examples/splitgraphs/shift.dat Deleted: trunk/pyx/examples/splitgraphs/shift.dat =================================================================== --- trunk/pyx/examples/splitgraphs/shift.dat 2006-05-22 20:36:14 UTC (rev 2786) +++ trunk/pyx/examples/splitgraphs/shift.dat 2006-05-22 20:36:56 UTC (rev 2787) @@ -1,101 +0,0 @@ -0.000000 0.093552 0.112454 0.179711 -0.010000 0.010819 0.375696 0.409862 -0.020000 0.185630 0.475497 0.459045 -0.030000 0.085790 0.739999 0.705008 -0.040000 0.048823 0.916421 0.983903 -0.050000 0.175599 0.738313 0.721993 -0.060000 0.133378 0.663194 0.637172 -0.070000 0.017070 0.462168 0.432542 -0.080000 0.142286 0.159476 0.076606 -0.090000 0.175035 0.115659 0.168348 -0.100000 0.065532 0.021641 0.099089 -0.110000 0.338032 0.193684 0.075735 -0.120000 0.501449 0.076071 0.052825 -0.130000 0.714484 0.166160 0.260115 -0.140000 1.044950 0.140046 0.113768 -0.150000 0.761459 0.150199 0.091245 -0.160000 0.580124 0.124991 0.148302 -0.170000 0.366523 0.034990 0.015023 -0.180000 0.086310 0.050342 0.193373 -0.190000 0.183720 0.008756 0.065295 -0.200000 0.148604 0.101561 0.106499 -0.210000 0.129528 0.124659 0.194451 -0.220000 0.111310 0.055354 0.137575 -0.230000 0.240304 0.379149 0.310891 -0.240000 0.197671 0.570959 0.479726 -0.250000 0.026784 0.927620 0.902845 -0.260000 0.133537 0.837585 0.858621 -0.270000 0.043651 1.314035 1.465999 -0.280000 0.198483 1.147673 1.166429 -0.290000 0.127190 0.826202 0.748380 -0.300000 0.131359 0.899580 0.940880 -0.310000 0.119633 0.853252 1.219305 -0.320000 0.148364 0.947769 0.845000 -0.330000 0.319962 0.915448 0.716717 -0.340000 0.593264 0.944451 0.787436 -0.350000 0.875959 1.011230 0.490365 -0.360000 0.856434 0.974125 1.161382 -0.370000 1.371431 0.833430 1.640708 -0.380000 1.090264 0.974813 1.526268 -0.390000 0.783328 0.874536 1.527830 -0.400000 0.976016 0.834380 1.833305 -0.410000 1.240585 1.281413 1.710859 -0.420000 0.735648 0.721365 1.712504 -0.430000 0.694313 0.818321 2.118110 -0.440000 0.771420 0.895332 2.568452 -0.450000 0.464567 0.486208 2.164012 -0.460000 1.028716 1.102470 2.585583 -0.470000 1.666251 1.619384 2.008516 -0.480000 1.482772 1.569979 2.424176 -0.490000 1.526710 1.705879 2.563430 -0.500000 1.681632 1.801579 2.115234 -0.510000 1.648768 1.642538 2.155867 -0.520000 1.640045 1.727319 1.835203 -0.530000 2.129760 2.166372 2.190385 -0.540000 2.538762 2.484445 2.062762 -0.550000 2.128357 2.044120 2.186967 -0.560000 2.563771 2.594849 2.466537 -0.570000 2.091981 2.043196 2.652307 -0.580000 2.319331 2.286016 2.363267 -0.590000 2.546574 2.428293 2.150611 -0.600000 2.241166 2.136176 1.720958 -0.610000 2.153191 2.125280 1.762141 -0.620000 1.762225 1.700132 1.668114 -0.630000 2.302032 2.162618 1.833917 -0.640000 1.944317 1.915787 1.659345 -0.650000 2.126381 2.070251 1.763199 -0.660000 2.405465 2.399447 1.790405 -0.670000 2.776870 2.651151 1.777731 -0.680000 2.328131 2.327470 1.752451 -0.690000 2.142656 2.184793 1.666516 -0.700000 1.702775 1.824695 1.739324 -0.710000 1.793138 1.759536 1.733953 -0.720000 1.280445 1.282639 1.412333 -0.730000 1.085254 1.004976 1.001700 -0.740000 1.584523 1.442157 1.462368 -0.750000 1.033501 1.146581 1.149616 -0.760000 1.172442 1.247916 1.239193 -0.770000 1.438631 1.435911 1.545370 -0.780000 1.802119 1.814190 1.911582 -0.790000 1.623176 1.739982 1.722814 -0.800000 1.321928 1.461423 1.430906 -0.810000 1.073016 1.112029 1.209466 -0.820000 1.273442 1.268402 1.137061 -0.830000 1.075054 1.157114 1.099937 -0.840000 1.377204 1.322320 1.241025 -0.850000 1.675064 1.688645 1.833905 -0.860000 1.566260 1.594175 1.556601 -0.870000 1.487966 1.619798 1.564591 -0.880000 1.420821 1.433038 1.360169 -0.890000 1.052967 1.016814 0.967521 -0.900000 0.731004 0.864763 0.770634 -0.910000 0.698500 0.622465 0.677814 -0.920000 1.022049 1.009725 0.936713 -0.930000 0.981331 0.900933 0.995858 -0.940000 1.314244 1.215228 1.250874 -0.950000 1.138328 1.243438 1.282548 -0.960000 0.817129 0.827435 0.791566 -0.970000 0.681887 0.575078 0.606345 -0.980000 0.577195 0.553300 0.538145 -0.990000 0.212586 0.223119 0.296213 -1.000000 0.141721 0.087720 0.002712 Copied: trunk/pyx/gallery/graphs/shift.dat (from rev 2783, trunk/pyx/examples/splitgraphs/shift.dat) =================================================================== --- trunk/pyx/gallery/graphs/shift.dat (rev 0) +++ trunk/pyx/gallery/graphs/shift.dat 2006-05-22 20:36:56 UTC (rev 2787) @@ -0,0 +1,101 @@ +0.000000 0.093552 0.112454 0.179711 +0.010000 0.010819 0.375696 0.409862 +0.020000 0.185630 0.475497 0.459045 +0.030000 0.085790 0.739999 0.705008 +0.040000 0.048823 0.916421 0.983903 +0.050000 0.175599 0.738313 0.721993 +0.060000 0.133378 0.663194 0.637172 +0.070000 0.017070 0.462168 0.432542 +0.080000 0.142286 0.159476 0.076606 +0.090000 0.175035 0.115659 0.168348 +0.100000 0.065532 0.021641 0.099089 +0.110000 0.338032 0.193684 0.075735 +0.120000 0.501449 0.076071 0.052825 +0.130000 0.714484 0.166160 0.260115 +0.140000 1.044950 0.140046 0.113768 +0.150000 0.761459 0.150199 0.091245 +0.160000 0.580124 0.124991 0.148302 +0.170000 0.366523 0.034990 0.015023 +0.180000 0.086310 0.050342 0.193373 +0.190000 0.183720 0.008756 0.065295 +0.200000 0.148604 0.101561 0.106499 +0.210000 0.129528 0.124659 0.194451 +0.220000 0.111310 0.055354 0.137575 +0.230000 0.240304 0.379149 0.310891 +0.240000 0.197671 0.570959 0.479726 +0.250000 0.026784 0.927620 0.902845 +0.260000 0.133537 0.837585 0.858621 +0.270000 0.043651 1.314035 1.465999 +0.280000 0.198483 1.147673 1.166429 +0.290000 0.127190 0.826202 0.748380 +0.300000 0.131359 0.899580 0.940880 +0.310000 0.119633 0.853252 1.219305 +0.320000 0.148364 0.947769 0.845000 +0.330000 0.319962 0.915448 0.716717 +0.340000 0.593264 0.944451 0.787436 +0.350000 0.875959 1.011230 0.490365 +0.360000 0.856434 0.974125 1.161382 +0.370000 1.371431 0.833430 1.640708 +0.380000 1.090264 0.974813 1.526268 +0.390000 0.783328 0.874536 1.527830 +0.400000 0.976016 0.834380 1.833305 +0.410000 1.240585 1.281413 1.710859 +0.420000 0.735648 0.721365 1.712504 +0.430000 0.694313 0.818321 2.118110 +0.440000 0.771420 0.895332 2.568452 +0.450000 0.464567 0.486208 2.164012 +0.460000 1.028716 1.102470 2.585583 +0.470000 1.666251 1.619384 2.008516 +0.480000 1.482772 1.569979 2.424176 +0.490000 1.526710 1.705879 2.563430 +0.500000 1.681632 1.801579 2.115234 +0.510000 1.648768 1.642538 2.155867 +0.520000 1.640045 1.727319 1.835203 +0.530000 2.129760 2.166372 2.190385 +0.540000 2.538762 2.484445 2.062762 +0.550000 2.128357 2.044120 2.186967 +0.560000 2.563771 2.594849 2.466537 +0.570000 2.091981 2.043196 2.652307 +0.580000 2.319331 2.286016 2.363267 +0.590000 2.546574 2.428293 2.150611 +0.600000 2.241166 2.136176 1.720958 +0.610000 2.153191 2.125280 1.762141 +0.620000 1.762225 1.700132 1.668114 +0.630000 2.302032 2.162618 1.833917 +0.640000 1.944317 1.915787 1.659345 +0.650000 2.126381 2.070251 1.763199 +0.660000 2.405465 2.399447 1.790405 +0.670000 2.776870 2.651151 1.777731 +0.680000 2.328131 2.327470 1.752451 +0.690000 2.142656 2.184793 1.666516 +0.700000 1.702775 1.824695 1.739324 +0.710000 1.793138 1.759536 1.733953 +0.720000 1.280445 1.282639 1.412333 +0.730000 1.085254 1.004976 1.001700 +0.740000 1.584523 1.442157 1.462368 +0.750000 1.033501 1.146581 1.149616 +0.760000 1.172442 1.247916 1.239193 +0.770000 1.438631 1.435911 1.545370 +0.780000 1.802119 1.814190 1.911582 +0.790000 1.623176 1.739982 1.722814 +0.800000 1.321928 1.461423 1.430906 +0.810000 1.073016 1.112029 1.209466 +0.820000 1.273442 1.268402 1.137061 +0.830000 1.075054 1.157114 1.099937 +0.840000 1.377204 1.322320 1.241025 +0.850000 1.675064 1.688645 1.833905 +0.860000 1.566260 1.594175 1.556601 +0.870000 1.487966 1.619798 1.564591 +0.880000 1.420821 1.433038 1.360169 +0.890000 1.052967 1.016814 0.967521 +0.900000 0.731004 0.864763 0.770634 +0.910000 0.698500 0.622465 0.677814 +0.920000 1.022049 1.009725 0.936713 +0.930000 0.981331 0.900933 0.995858 +0.940000 1.314244 1.215228 1.250874 +0.950000 1.138328 1.243438 1.282548 +0.960000 0.817129 0.827435 0.791566 +0.970000 0.681887 0.575078 0.606345 +0.980000 0.577195 0.553300 0.538145 +0.990000 0.212586 0.223119 0.296213 +1.000000 0.141721 0.087720 0.002712 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
 [PyX-checkins] SF.net SVN: pyx: [2789] trunk/pyx/gallery/graphs From: - 2006-05-22 20:43:48 Revision: 2789 Author: joergl Date: 2006-05-22 13:43:39 -0700 (Mon, 22 May 2006) ViewCVS: http://svn.sourceforge.net/pyx/?rev=2789&view=rev Log Message: ----------- move manyaxes exmample to gallery Modified Paths: -------------- trunk/pyx/examples/graphs/INDEX trunk/pyx/gallery/graphs/INDEX Added Paths: ----------- trunk/pyx/gallery/graphs/manyaxes.py Removed Paths: ------------- trunk/pyx/examples/graphs/manyaxes.py Modified: trunk/pyx/examples/graphs/INDEX =================================================================== --- trunk/pyx/examples/graphs/INDEX 2006-05-22 20:38:54 UTC (rev 2788) +++ trunk/pyx/examples/graphs/INDEX 2006-05-22 20:43:39 UTC (rev 2789) @@ -3,4 +3,3 @@ lissajous axis change -manyaxes Deleted: trunk/pyx/examples/graphs/manyaxes.py =================================================================== --- trunk/pyx/examples/graphs/manyaxes.py 2006-05-22 20:38:54 UTC (rev 2788) +++ trunk/pyx/examples/graphs/manyaxes.py 2006-05-22 20:43:39 UTC (rev 2789) @@ -1,21 +0,0 @@ -import math, random -from pyx import * - -# a xy-graph has linear x and y axes by default -# they might be overwritten and futher axes might be added as well -g = graph.graphxy(width=8, y=graph.axis.log(), y2=graph.axis.lin(), - y3=graph.axis.lin(min=0, max=1), - y4=graph.axis.lin(min=0, max=2)) - -# we generate some data and a function with multiple arguments -d = [[i, math.exp(0.8*i+random.random())] for i in range(1,10)] -f = lambda x, a: x*a - -g.plot(graph.data.list(d, x=1, y=2)) -g.plot(graph.data.function("y2(x)=f(x, 1)", context=locals())) - -g.plot(graph.data.function("x(y3)=5+sin(2*pi*y3)")) -g.plot(graph.data.function("x(y4)=5+sin(2*pi*y4)")) - -g.writeEPSfile("manyaxes") -g.writePDFfile("manyaxes") Modified: trunk/pyx/gallery/graphs/INDEX =================================================================== --- trunk/pyx/gallery/graphs/INDEX 2006-05-22 20:38:54 UTC (rev 2788) +++ trunk/pyx/gallery/graphs/INDEX 2006-05-22 20:43:39 UTC (rev 2789) @@ -3,6 +3,7 @@ mandel arrows shift +manyaxes integral partialfill washboard Copied: trunk/pyx/gallery/graphs/manyaxes.py (from rev 2788, trunk/pyx/examples/graphs/manyaxes.py) =================================================================== --- trunk/pyx/gallery/graphs/manyaxes.py (rev 0) +++ trunk/pyx/gallery/graphs/manyaxes.py 2006-05-22 20:43:39 UTC (rev 2789) @@ -0,0 +1,21 @@ +import math, random +from pyx import * + +# a xy-graph has linear x and y axes by default +# they might be overwritten and futher axes might be added as well +g = graph.graphxy(width=8, y=graph.axis.log(), y2=graph.axis.lin(), + y3=graph.axis.lin(min=0, max=1), + y4=graph.axis.lin(min=0, max=2)) + +# we generate some data and a function with multiple arguments +d = [[i, math.exp(0.8*i+random.random())] for i in range(1,10)] +f = lambda x, a: x*a + +g.plot(graph.data.list(d, x=1, y=2)) +g.plot(graph.data.function("y2(x)=f(x, 1)", context=locals())) + +g.plot(graph.data.function("x(y3)=5+sin(2*pi*y3)")) +g.plot(graph.data.function("x(y4)=5+sin(2*pi*y4)")) + +g.writeEPSfile("manyaxes") +g.writePDFfile("manyaxes") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
 [PyX-checkins] SF.net SVN: pyx: [2799] trunk/pyx/gallery/graphs From: - 2006-05-23 12:44:29 Revision: 2799 Author: wobsta Date: 2006-05-23 05:44:18 -0700 (Tue, 23 May 2006) ViewCVS: http://svn.sourceforge.net/pyx/?rev=2799&view=rev Log Message: ----------- add a cyclic link example Modified Paths: -------------- trunk/pyx/gallery/graphs/INDEX Added Paths: ----------- trunk/pyx/gallery/graphs/cycliclink.py Modified: trunk/pyx/gallery/graphs/INDEX =================================================================== --- trunk/pyx/gallery/graphs/INDEX 2006-05-23 12:35:06 UTC (rev 2798) +++ trunk/pyx/gallery/graphs/INDEX 2006-05-23 12:44:18 UTC (rev 2799) @@ -1,5 +1,6 @@ symbolline inset +cycliclink mandel arrows shift Added: trunk/pyx/gallery/graphs/cycliclink.py =================================================================== --- trunk/pyx/gallery/graphs/cycliclink.py (rev 0) +++ trunk/pyx/gallery/graphs/cycliclink.py 2006-05-23 12:44:18 UTC (rev 2799) @@ -0,0 +1,20 @@ +from pyx import * + +c = canvas.canvas() + +g1 = c.insert(graph.graphxy(width=8, + x=graph.axis.linear(min=0, max=1), + x2=graph.axis.linkedaxis())) + +g2 = c.insert(graph.graphxy(width=8, ypos=g1.height+0.5, + x=graph.axis.linkedaxis(), + x2=graph.axis.log(min=1, max=1000))) + +g1.axes["x2"].setlinkedaxis(g2.axes["x2"]) +g2.axes["x"].setlinkedaxis(g1.axes["x"]) + +g1.plot(graph.data.function("y(x)=2*exp(-30*x)-exp(-3*x)")) +g2.plot(graph.data.function("y(x)=cos(20*x)*exp(-2*x)")) + +c.writeEPSfile("cycliclink") +c.writePDFfile("cycliclink") Property changes on: trunk/pyx/gallery/graphs/cycliclink.py ___________________________________________________________________ Name: svn:keywords + LastChangedRevision LastChangedBy HeadURL This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
 [PyX-checkins] SF.net SVN: pyx: [2898] trunk/pyx/gallery/graphs From: - 2007-10-03 21:45:42 Revision: 2898 http://pyx.svn.sourceforge.net/pyx/?rev=2898&view=rev Author: wobsta Date: 2007-10-03 14:45:46 -0700 (Wed, 03 Oct 2007) Log Message: ----------- list->points renaming Modified Paths: -------------- trunk/pyx/gallery/graphs/mandel.py trunk/pyx/gallery/graphs/manyaxes.py Modified: trunk/pyx/gallery/graphs/mandel.py =================================================================== --- trunk/pyx/gallery/graphs/mandel.py 2007-10-03 21:45:19 UTC (rev 2897) +++ trunk/pyx/gallery/graphs/mandel.py 2007-10-03 21:45:46 UTC (rev 2898) @@ -35,7 +35,7 @@ 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.list(d, xmin=1, xmax=2, ymin=3, ymax=4, color=5), +g.plot(graph.data.points(d, xmin=1, xmax=2, ymin=3, ymax=4, color=5), [graph.style.rect(color.gradient.Rainbow)]) g.dodata() # plot data first, then axes g.writeEPSfile('mandel') Modified: trunk/pyx/gallery/graphs/manyaxes.py =================================================================== --- trunk/pyx/gallery/graphs/manyaxes.py 2007-10-03 21:45:19 UTC (rev 2897) +++ trunk/pyx/gallery/graphs/manyaxes.py 2007-10-03 21:45:46 UTC (rev 2898) @@ -11,7 +11,7 @@ d = [[i, math.exp(0.8*i+random.random())] for i in range(1,10)] f = lambda x, a: x*a -g.plot(graph.data.list(d, x=1, y=2)) +g.plot(graph.data.points(d, x=1, y=2)) g.plot(graph.data.function("y2(x)=f(x, 1)", context=locals())) g.plot(graph.data.function("x(y3)=5+sin(2*pi*y3)")) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.