|
From: Arnd B. <arn...@we...> - 2005-06-11 17:47:26
|
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.
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
|