Hi,
What is the best way to change the joinstyle of lines?
I found in the users guide for 0.80 (April 2005)
that there is something like
gc.set_joinstyle('miter')
but I don't know how to get to the gc from the pylab interface.
Any pointers are very much appreciated!
Best,
Arnd
P.S.: John, it seems that the matplotlib user's guide
linked to on the sourceforge front page,
http://matplotlib.sourceforge.net/users_guide_0.80.pdf
is not the latest one (it is dated Dec 30 2004).
I tried out various further variants
(E.g.
from matplotlib import rcParams
rcParams['lines.joinstyle'] = 'bevel' # 'miter', 'round', 'bevel'
from pylab import *
)
but without success.
So for the moment I just modified backend_bases.py
in line 399 in the __init__ routine of
GraphicsContextBase
self._joinstyle = 'bevel' # 'miter
Now the lines are as I need them for my particular application.
If there is a simpler way to achieve this, I would of course
be interested.
In general I think it would be nice to change the
joinstyle with a simple command, either globally
or even better on a line-by-line basis.
Is this possible already now in some way?
Best,
Arnd
···
On Mon, 6 Jun 2005, Arnd Baecker wrote:
Hi,
What is the best way to change the joinstyle of lines?
I found in the users guide for 0.80 (April 2005)
that there is something like
gc.set_joinstyle('miter')
but I don't know how to get to the gc from the pylab interface.