Re: [Matplotlib-users] PS backend does not respect kwargs

2008-02-04 Thread Michael Droettboom
This should be fixed now in SVN r4938.  The graphics context was sticking.

Cheers,
Mike

[EMAIL PROTECTED] 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/vse012070mrt/direct/01/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] PS backend does not respect kwargs

2008-02-01 Thread pnovak
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/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users