André Wobst wrote (2009-08-10 15:51):
> It's perfectly fine to use the quick and dirty method. It just depends
> on how universal your solution needs to be. If it's fine to (miss-)use
> a two column graph key, go for it.

For the record, in case anyone is interested, I almost ran into trouble (just 
after sending that reply) when I tried to use this method on a graph that had 
one more theory line than experimental points. This causes the sorting of the 
key columns to go a bit wrong.

I worked around this problem by adding a "phantom" experimental plot like so:
cd = g.plot(graph.data.points([[0, 0]], x = 1, y = 2,
        title = r'\vphantom{%s}' % titles[4]), [graph.style.pos()])

My understanding is that the pos style won't draw anything, but it does take 
up a blank entry in the key, which is exactly what I want in this situation.

Peace,
Brendon

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to