allows to generate publication quality postscript and pdf.
Convince yourself by looking at the
(pdf and FAQ).
However, for slightly more complicated graphs
the code can become very extensive.
PyXgraph tries to address this by setting up
some routines to make plotting simpler.
Presently the code is under heavy development,
but still quite usable. Note that backwards compatibility
might have to be broken in the future.
vers. 0.2.5:
A simple example for the usage of pyxgraph and pyxplot
src eps
Plot with inset
# FIXME: Getting the fonts smaller is a bit hackish at the moment ...
src eps
Color sequence example
src eps
Different ways of specifying colors
src eps
Showing off all symbols
src eps
Additional attributes for lines.
Background:
Postscript has a command "setlinejoin" which selects either
mitred, rounded, or beveled corners.
http://www.capcode.de/help/setlinejoin
src eps
Linestyle definition with strings
src eps
Double log plot and skipping of data
src eps
Plot with tick specification and smaller legend
src eps
Plot with x2axes and y2axes.
src eps
Plot with x2axis, y2axis removed.
src eps
Plot with no ticks on opposite sides.
src eps
piaxis example and background color
src eps
Key outside of the graph.
Contributed by Nikolai Hlubek.
src eps
Put axes labels slightly below the line of the x-tick labels.
and similarly for the y-axis.
Some prefer this style of labeling.
src eps
Outside ticks and other painter tricks.
FIXME: x2ticks and y2ticks don't work.
src eps
Plot without ticks and labels.
src eps
linear plot, ticks in exponential notation
src eps
axis example with fractional numbers and background color
src eps
example for axis with ticks and without numbers
src eps
Plot a two-dimensional error as bitmap.
src eps
Plot a two-dimensional error as bitmap and a colorbar.
src eps
Plot a two-dimensional error as bitmap and a colorbar, using segmented color mapper
src eps
Example for a contour plot.
src eps
Contour on top of bitmap plot, with labeling.
src eps
A simple example for the inclusion of a bitmap.
src eps
A simple example for the inclusion of a bitmap.
Here the bitmpa is in front of the lines.
This is achieved using `go.dodata()`.
However, because the graph is essentially finished,
it is not possible to plot any further lines
after this which would be in front of the bitmap.
src eps
A simple example for the inclusion of a bitmap.
Keep the aspect ratio of the original bitmap.
src eps
A simple example for the inclusion of a bitmap.
Keep the aspect ratio of the original bitmap.
src eps
Combine matplotlib and pyxgraph
Matplotlib does a fantastic job for bitmapped graphics,
including anti-aliasing and transparency.
Because transparency is not supported in Postscript
it can be useful to create a bitmapped figure using matplotlib
and embed it in PyX to do the labeling.
src eps
Demonstrate the usage of amsmath specific features and overall scaling.
src eps
Demonstrate the usage sans-serif fonts.
To use this you will have to get the file sfmath.sty
and put it somewhere, where latex can find it
(eg the same directory or into some directory which
is in the TEXINPUTS path)
Getting the file::
wget http://dtrx.de/od/tex/archive/sfmath.sty.v0.7
mv sfmath.sty.v0.7 sfmath.sty
See: http://dtrx.de/od/tex/sfmath.html by Olaf Dietrich <olaf@dtrx.de>
src eps
Demonstrate the usage sans-serif fonts with cmbright.
Remarks:
- Debian etch package needed for this:
aptitude install texlive-fonts-extra
aptitude install cm-super
(not sure whether the last one is really needed, but why not ;-)
- Good references on Mathematics fonts in LaTeX
http://cg.scs.carleton.ca/~luc/math.html
ftp://ctan.cms.math.ca/tex-archive/documentation/Free_Math_Font_Survey/en/survey.html
src eps
Stroking and filling of regions
src eps