SF.net SVN: matplotlib: [4872] trunk/matplotlib/lib/matplotlib/legend.py
Revision: 4872 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4872&view=rev Author: mdboom Date: 2008-01-16 05:04:50 -0800 (Wed, 16 Jan 2008) Log Message: --- Fix exception when plotting legend for LineCollection (Thanks to Paul Novak). Modified Paths: -- trunk/matplotlib/lib/matplotlib/legend.py Modified: trunk/matplotlib/lib/matplotlib/legend.py === --- trunk/matplotlib/lib/matplotlib/legend.py 2008-01-15 20:52:27 UTC (rev 4871) +++ trunk/matplotlib/lib/matplotlib/legend.py 2008-01-16 13:04:50 UTC (rev 4872) @@ -272,7 +272,7 @@ legline.set_clip_box(None) legline.set_clip_path(None) lw = handle.get_linewidth()[0] -dashes = handle.get_dashes() +dashes = handle.get_dashes()[0] color = handle.get_colors()[0] legline.set_color(color) legline.set_linewidth(lw) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - 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-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins
SF.net SVN: matplotlib: [4873] trunk/matplotlib/lib/matplotlib/backends/ backend_agg.py
Revision: 4873 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4873&view=rev Author: jdh2358 Date: 2008-01-16 20:12:58 -0800 (Wed, 16 Jan 2008) Log Message: --- forced nonunicode fname for save in agg Modified Paths: -- trunk/matplotlib/lib/matplotlib/backends/backend_agg.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_agg.py === --- trunk/matplotlib/lib/matplotlib/backends/backend_agg.py 2008-01-16 13:04:50 UTC (rev 4872) +++ trunk/matplotlib/lib/matplotlib/backends/backend_agg.py 2008-01-17 04:12:58 UTC (rev 4873) @@ -299,5 +299,6 @@ renderer = self.get_renderer() original_dpi = renderer.dpi renderer.dpi = self.figure.dpi +filename = str(filename) # until we figure out unicode handling renderer._renderer.write_png(filename, self.figure.dpi) renderer.dpi = original_dpi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - 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-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins
SF.net SVN: matplotlib: [4874] branches/v0_91_maint/lib/matplotlib/backends /backend_agg.py
Revision: 4874 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4874&view=rev Author: jdh2358 Date: 2008-01-16 20:13:27 -0800 (Wed, 16 Jan 2008) Log Message: --- forced nonunicode fname for save in agg Modified Paths: -- branches/v0_91_maint/lib/matplotlib/backends/backend_agg.py Modified: branches/v0_91_maint/lib/matplotlib/backends/backend_agg.py === --- branches/v0_91_maint/lib/matplotlib/backends/backend_agg.py 2008-01-17 04:12:58 UTC (rev 4873) +++ branches/v0_91_maint/lib/matplotlib/backends/backend_agg.py 2008-01-17 04:13:27 UTC (rev 4874) @@ -394,5 +394,6 @@ def print_png(self, filename, *args, **kwargs): self.draw() +filename = str(filename) # until we figure out unicode handling self.get_renderer()._renderer.write_png(filename, self.figure.dpi.get()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - 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-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins
