On Monday 07 January 2008 03:05:30 pm Rich Shepard wrote:
>    I've looked at all the docs I can find on the matplotlib web site
> without finding the answers to two questions. Pointers to references are
> greatly appreciated.
>
>    1)  I want to plot a series of curves on the same set of axes. For
> example, shoulder- and trapezoidal curves:
>
>        _______          __________          _______
>
>       |       \        /          \        /
>       |        \      /            \      /
>       |         \    /              \    /
>       |          \  /                \  /
>       |           \/                  \/
>       |           /\                  /\
>       |          /  \                /  \
>       |         /    \              /    \
>       |        /      \            /      \
>       |_______/________\__________/________\_______
>
> With labels and text, of course. Each curve represents values in a separate
> row of the database table.
>
>    How do I specify that subsequent curves are to be plotted on the same
> axes as the first one?

you can call hold(True) so each call to plot() adds a new curve to the axes.

>
>    2)  When each plot is created I want to save it as a .jpg file so it can
> be included in a ReportLab report. Do I specify the filename and extension
> in the save() command, or is there a different way?

Agg does not produce jpg. Can you live with a png? png are not lossy and so 
they yield much nicer line art than jpgs. Just give your filename a .png 
extension and save will recognize the format.

Darren

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to