Issue 702: Plot() should use standard kwarg syntax -- examples in
docstrings don't work
http://code.google.com/p/sympy/issues/detail?id=702
Comment #5 by goriccardo:
On my box:
In [1]: Plot(1, mode='spherical', color='zfade4')
Window initialization failed: __init__() got an unexpected keyword
argument 'color'
Segmentation fault
The problem is in the pyglet code, it segfault if you give it some keywords
it
doesn't know. I see two possible solutions:
1) Patch pyglet (possibly upstream) to accept any keywords without crashing
or rising
any exception
2) Pop all plot_mode related keywords from win_args in Plot.__init__ before
initializing the plot window (see patch)
There is a problem with both the solutions: the "style" keyword is used by
both
plot_mode and pyglet window (to define if the window is a dialog, a main,
or a tool
window).
Here is a proof of concept patch of solution 2
Attachments:
poc_plot_kwargs.patch 1.6 KB
Issue attribute updates:
Status: Accepted
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---