update upload data
[PyX.git] / examples / 3dgraphs / surface.txt
blob340538f8a4b7d22a7aedffe3d23514d047217988
1 Simple 3d surface
3 This first simple example provides data for the x, y and z coordinates. PyX
4 creates a rectangular grid from the data from the first two coordinates without
5 relying on a special ordering of the data. ...
7 ! In this example we turn off the other two axes x2 and y2, which would be
8 plotted on the opposite side of the bottom horizontal plane. The data are
9 plotted prior to the axes by the dodata call.
11 ! A missing point will create a hole in the surface.
13 ! The surface is plotted using a mesh. In case of a huge number of data points,
14 you may want to replace the mesh by a bitmap rasterized on a different (i.e.
15 lower) resolution. This can reduce the file size and may also resolve various
16 printing problems (unfortunately those are quite common with mesh data). To
17 enable the mesh by bitmap replacement feature use the option `meshasbitmap`
18 (together with its `meshasbitmap_resolution` option)::
20     d = document.document([document.page(g)])
21     d.writeEPSfile("color", mesh_as_bitmap=1)
22     d.writePDFfile("color", mesh_as_bitmap=1)
24 !! The underlying rectangular grid is created by the gridpos style. By changing
25 its parameters you can also create the base rectangular grid from others than
26 the first two coordinates.