Hi Rich,

On 27.03.08, Rich Shepard wrote:
>    1.)  The y-axis on the plots I need to create range from [0.0, 1.0]. By
> specifying my own partioner I can change the tick spacing from 0, 0.25,
> 0.5, 0.75, 1 to every 0.2:
>                      pary = graph.axis.parter.lin([0.2,])
> 
>    However, the ends are labeled without the '.0' that the inner labels have.
> How do I replace 0 with 0.0 and 1 with 1.0?

If really wanted (*hint*), this can be realized by passing a 
modified texter to the axis. Now I would have liked to point you
to a corresponding example, but unfortunately, while already existing,
it's not yet online. So instead, I refer to the documentation

        http://pyx.sourceforge.net/manual/module-graph.axis.texter.html

and mention that you probably want to set the equalprecision option to
1.

>    2.) This actually has two components, but they are related and need to be
> addressed together.
> 
>    The actual curve drawing functions are used in several parts of the
> model's use, so they are in the generic 'functions.py' and imported to the
> specific modules where they are needed. However, each plot needs to contain
> multiple curves (from 2 to 7).
> 
>    I read that multiple calls to plot() can be made to put all the curves on
> a single set of axes. But, how do I implement this across modules? Perhaps
> the best way to explain this is how I did it with matplotlib.

I'm not totally sure whether I understand you correctly, but what
you can do is to pass the graphxy instance around. Then you can
plot on this graph up to the moment you write it to a file (or call
things like the finish() method of the graph, but that's just a side
remark).

HTH,

        Jörg



-------------------------------------------------------------------------
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
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to