PS backend does not respect kwargs

When using the PostScript backend, and plotting several lines with the same call to plot (or when plotting a LineCollection), kwargs are applied to the first line only, and not to every line.

Included is a minimal script that exhibits this problem. The saved figure shows only one thick red line where we would expect two such lines.

Paul Novak

#!/usr/bin/env python

import matplotlib
matplotlib.use('PS')
from pylab import *

x = arange(0.0, 5.0)
y = 2 * x
plot(x, x, x, y, color='red', linewidth = 5)

savefig('image')

show()

This should be fixed now in SVN r4938. The graphics context was "sticking".

Cheers,
Mike

pnovak@...1315... wrote:

ยทยทยท

When using the PostScript backend, and plotting several lines with the same call to plot (or when plotting a LineCollection), kwargs are applied to the first line only, and not to every line.

Included is a minimal script that exhibits this problem. The saved figure shows only one thick red line where we would expect two such lines.

Paul Novak

#!/usr/bin/env python

import matplotlib
matplotlib.use('PS')
from pylab import *

x = arange(0.0, 5.0)
y = 2 * x
plot(x, x, x, y, color='red', linewidth = 5)

savefig('image')

show()

-------------------------------------------------------------------------
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/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA