>>>>> "John" == John Hunter <jdh...@ac...> writes:
>>>>> "Arnd" == Arnd Baecker <arn...@we...> writes:
Arnd> If there is a simpler way to achieve this, I would of course
Arnd> be interested. In general I think it would be nice to
Arnd> change the joinstyle with a simple command, either globally
Arnd> or even better on a line-by-line basis. Is this possible
Arnd> already now in some way?
John> There is no better way. I have been holding off on exposing
John> this because I didn't see a clear way to handle it because
John> dashed and solid lines have different default cap and join
John> styles. It is now clear that c good solution is to expose
John> dash_capstyle, dash_joinstyle, solid_capstyle,
John> solid_joinstyle, as rc params and line properties.
John> Any forseeable problems with this approach?
Hey Arnd,
OK, I went ahead with this approach (lines.py CVS revision 1.32 or
later). Only lightly tested. I'm already having fun with the new
kwargs to axes, as this testscript illustrates
from pylab import *
rc('lines', lw=3)
y = [0.1, 0.9, 0.1, 0.9]
axd = dict(xlim=(0,2), ylim=(0,1), autoscale_on=False)
ax1 = subplot(311, **axd)
plot(y, solid_joinstyle='miter')
axd.update(dict(sharex=ax1, sharey=ax1))
subplot(312, **axd)
plot(y, solid_joinstyle='round')
subplot(313, **axd)
plot(y, solid_joinstyle='bevel')
show()
JDH
|