Hi,
have you seen my remark in the symbols class:
# "inject" the predefinied symbols into the class:
#
# Note, that statements like cross = _crosssymbol are
# invalid, since the would lead to unbound methods, but
# a single entry changeable list does the trick.
#
# Once we require Python 2.2+ we should use staticmethods
# to implement the default symbols inplace.
Don't we now require Python2.2? I'm not sure, but I think there was
some issue during the font rework Jörg and I did last October. I think
we requrire Python 2.2 from now on. Unfortunately I don't remember the
details anymore. Too bad ... I have to look at it once we prepare a
new release.
Anyway, the intended notation is graph.style.symbol.circle ... but
this does not yet work due to the problem denoted in the comment.
André
Am 25.03.2008 um 16:58 schrieb Michael SCHINDLER:
> Salut André,
>
> I have checked in a new example on the graph.style functionality. It
> is something which took me quite a while to remember / figure out how
> to use it. I therefore think that an additional example is good here.
>
> One question which occurs here: The symbols in graph.style all start
> with an underscore. However, it is likely that a user might want to
> use them -- such as I do in the example. I propose to rename them such
> that they become part of the part "to-be-used" (I know, there is no
> such thing as a user interface in Python ...).
>
> Cordialement,
> Michael
>
>
> On 25.03.08, [EMAIL PROTECTED] wrote:
>> Revision: 2970
>> http://pyx.svn.sourceforge.net/pyx/?rev=2970&view=rev
>> Author: m-schindler
>> Date: 2008-03-25 07:07:10 -0700 (Tue, 25 Mar 2008)
>>
>> Added: trunk/pyx/examples/graphstyles/usesymbol.py
>> ===================================================================
>> --- trunk/pyx/examples/graphstyles/
>> usesymbol.py (rev 0)
>> +++ trunk/pyx/examples/graphstyles/usesymbol.py 2008-03-25 14:07:10
>> UTC (rev 2970)
>
>> +symbols = [graph.style._diamondsymbol,
>> graph.style._trianglesymbol, graph.style._circlesymbol]
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> PyX-checkins mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pyx-checkins
>
--
by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
/ \ \ / ) [EMAIL PROTECTED], http://www.wobsta.de/
/ _ \ \/\/ / PyX - High quality PostScript and PDF figures
(_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
PyX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-devel