~ubuntu-branches/ubuntu/trusty/pyx/trusty

« back to all changes in this revision

Viewing changes to faq/pyxfaq.tex

  • Committer: Bazaar Package Importer
  • Author(s): Stuart Prescott
  • Date: 2009-10-29 23:47:39 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091029234739-cc178gmb3vp5828t
Tags: 0.10-1
* New maintainer (closes: #552750).
* Revert unneeded versioned build-dependency on python-all-dev.
* Add a preinst script to clean up after python-central (working around
  bug #479852 in python-central) (closes: #553271).
* Convert packaging to quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
% $Id: pyxfaq.tex 2561 2006-02-15 06:41:18Z gertingold $
 
1
% $Id: pyxfaq.tex 2904 2007-10-04 00:18:40Z wobsta $
2
2
\documentclass[11pt,DIV14]{scrartcl}
3
3
\usepackage[latin1]{inputenc}
4
4
\usepackage{url}
30
30
\section*{Acknowledgements}
31
31
The following persons have in one way or the other, e.g.\ by asking good 
32
32
questions or providing answers, contributed to this FAQ:\\ 
33
 
Walter Brisken, Pierre Joyot, J�rg Lehmann, John Owens, Michael Schindler, 
34
 
Gerhard Schmid, Andr{\'e} Wobst.
 
33
Walter Brisken, Alejandro Gaita-Arinyo, Pierre Joyot, J�rg Lehmann, 
 
34
John Owens, Michael Schindler, Gerhard Schmid, Andr{\'e} Wobst.
35
35
\newpage
36
36
 
37
37
\section{General aspects of \PyX}
408
408
determining the color via a \PyX{} color palette. The following code gives an 
409
409
idea of how to proceed:
410
410
\begin{progcode}
411
 
g.plot(graph.data.file("datafile.dat"), xmin=1, xmax=2, ymin=3, ymax=4, color=5),\\
 
411
g.plot(graph.data.file("datafile.dat", xmin=1, xmax=2, ymin=3, ymax=4, color=5),\\
412
412
~~~~~~~[graph.style.rect(color.palette.ReverseRainbow)]\\
413
413
~~~~~~)\\
414
414
g.dodata()
570
570
 
571
571
\subsection{Data properties}
572
572
 
573
 
\question{a}{How do I choose the symbol and its attributes? \changed}
 
573
\question{a}{How do I choose the symbol and its attributes?}
574
574
{}
575
575
{\label{q:choose_symbol}
576
576
Suppose a graph called \texttt{g} has been initialized, e.g.\ by using
632
632
}
633
633
 
634
634
\question{a}{How can I change the color of symbols or lines according to a
635
 
palette? \new}
 
635
palette?}
636
636
{}
637
637
{If several data sets should be plotted in different colors, one can specify
638
638
in \texttt{symbolattrs} and/or \texttt{lineattrs} a palette like 
654
654
}
655
655
 
656
656
\question{a}{How can I specify changing colors (or other attributes) for 
657
 
symbols or lines? \new}
 
657
symbols or lines?}
658
658
{}
659
659
{\label{q:changelist}
660
660
In \texttt{symbolattrs} and/or \texttt{lineattrs} so-called changelist can
715
715
\end{progcode}
716
716
}
717
717
 
718
 
\question{a}{How can I clip a canvas? \new}
 
718
\question{a}{How can I clip a canvas?}
719
719
{}
720
720
{In order to use only a part of a larger canvas, one may want to clip it. This
721
721
can be done by creating a clipping object which is used when creating a canvas