To whom it may concern,
Would you please help me with how to change the view of a 3D graph? The pyX
file is copied below:
import math
from pyx import *
#from pyx.graph import axis
#painter=graph.axis.painter.regular(labelattrs=[color.grey.white])
# colors and symbols to use (alternatingly)
colors = [color.rgb.red, color.rgb.green,
color.rgb.blue,color.cmyk.Sepia,color.cmyk.RubineRed,
color.cmyk.Yellow,color.cmyk.RedOrange, color.cmyk.Violet,
color.cmyk.CornflowerBlue,color.gray.black]
colors1 = [color.gray.black]
symbols = [graph.style._diamondsymbol, graph.style._trianglesymbol,
graph.style._circlesymbol, graph.style._squaresymbol]
# create the graph styles to be used below
symbol = graph.style.symbol(symbol=attr.changelist(symbols), size=0.12,
symbolattrs=[deco.stroked.clear,
attr.changelist([deco.filled([cc]) for
cc in colors])])
line = graph.style.line(lineattrs=[attr.changelist(colors),
attr.changelist([style.linestyle.solid])])
line1 = graph.style.line(lineattrs=[attr.changelist(colors1),
attr.changelist([style.linestyle.dashed])])
myparter1 = graph.axis.parter.linear(["0.25", "2.5"])
myparter2 = graph.axis.parter.linear(["1.25", "1.25"])
g = graph.graphxyz(size=6.5, key=graph.key.key( pos="tl",
columndist=0.1*unit.v_cm, hdist=0.3*unit.v_cm, vdist=0.3*unit.v_cm,
symbolspace=0.2*unit.v_cm, columns=1, dist=0.1),
x=graph.axis.lin(min= -2.5, max= 2.5, title=r"$\Large{q}$"),
y=graph.axis.lin(min= -0.75, max= 0.15, title=r"$\Large{{\rm
Re}(s)}$"),
z=graph.axis.lin(min= -0.25, max= 0.25, title=r"$\Large{{\rm
Im}(s)}$"))
g.plot(graph.data.file("Root1.dat", x=1, y=2, z=3, title= None), styles=[line])
g.plot(graph.data.file("Root2.dat", x=1, y=2, z=3, title= None), styles=[line])
g.plot(graph.data.file("Root3.dat", x=1, y=2, z=3, title= None), styles=[line])
#g.plot(graph.data.file("table3.data", x=1, y=2, title= None), styles=[line])
#g.plot(graph.data.file("table_0.data", x=1, y=2, title= None), styles=[line1])
#g.plot(graph.data.file("fort.3", x=1, y=4, title=r"$k_v = 40$"), styles=[line,
symbol])
#g.plot(graph.data.function("y(x)= 0.0", title= None ),styles=[line1])
#g.text(6.0,0.8,0.1,r"\small{$n_C = 1$}")
#g.text(6.0,0.4,r"\small{$\tilde{k}_{+} = 0.01$}")
g.text(-7,4,r"$\Large{r_{BA} = 0.1, \tilde{k}_{+} = 0.01, \tilde{D}_{t}^{\rm
eff} = 0.1, n_C = 1}$")
#g.text(1.1,0.4,r"\small{$\tilde{D}_{t}^{\rm eff} = 0.1$}")
#g.text(1.82,2.0,r"\small{$s = -2 k - D q^2$}")
g.writeEPSfile("Stability_Analysis_3D_Reaction")
g.writePDFfile("Stability_Analysis_3D_Reaction")
Best,
Narender
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user