SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(14)
2
(11)
3
(19)
4
(9)
5
6
(5)
7
8
9
10
11
12
(1)
13
(9)
14
(3)
15
(8)
16
17
(2)
18
19
20
(6)
21
(12)
22
(3)
23
(6)
24
(5)
25
26
(2)
27
28
(1)
29
(2)
30


Showing 12 results of 12

From: Benjamin R. <ben...@ou...> - 2011年06月21日 21:21:51
On Tuesday, June 21, 2011, Eric Firing <ef...@ha...> wrote:
> Suggestion: let's try to keep the labels short. I think that will make
> it easier to see what we have as the number of labels increases, and
> will make the labels a bit less visually overwhelming. (It looks like
> existing labels can be edited in the Manage Labels function, but I was
> afraid to try for fear I would mess something up.)
>
> e.g.,
> mac-osx -> OSX or Mac
> ms-windows -> Win or MS
> sourceforge-import -> SF
>
>
> I have been marking feature requests from the old SF as "wishlist"; I
> hope that is consistent with the intentions of whoever made the label.
>
> Eric
>
I am fine with shortening them. I have also interpreated wishlist to mean that.
I also want to bring in lessons I learned when participating in
Ubuntu's BugSquad. For the "triaging" process, the report needs to be
confirmed. Whenever we confirm a bug, we can tag it as such. If more
information is needed or if you don't have time to confirm, you can
tag it as "need_confirm". The tags are updated as progress is made.
There is also "ongoing" which I take to mean that the report has been
assigned and actively worked on.
Any others we want (or changes to the idea)?
Ben Root
From: Eric F. <ef...@ha...> - 2011年06月21日 20:14:44
Suggestion: let's try to keep the labels short. I think that will make 
it easier to see what we have as the number of labels increases, and 
will make the labels a bit less visually overwhelming. (It looks like 
existing labels can be edited in the Manage Labels function, but I was 
afraid to try for fear I would mess something up.)
e.g.,
mac-osx -> OSX or Mac
ms-windows -> Win or MS
sourceforge-import -> SF
I have been marking feature requests from the old SF as "wishlist"; I 
hope that is consistent with the intentions of whoever made the label.
Eric
From: Fernando P. <fpe...@gm...> - 2011年06月21日 19:10:34
Hi Mike,
On Tue, Jun 21, 2011 at 6:07 AM, Michael Droettboom <md...@st...> wrote:
> It looks like something fishy in your font cache -- "None" has been
> entered in the table as a filename.
>
> Can you move away your ~/.matplotlib/fontList.cache file (to force a
> regeneration) and see if that resolves the problem? If so, I'd like to
> see the original broken fontList.cache file to see if I can get to the
> bottom of what's wrong with it.
I think you're right, because now at my office I can't even reproduce
the problem.
The machine where I saw it is at home, so tonight I'll fish out the
font cache file and send it to you so you can investigate, along with
my matplotlibrc file, just in case.
Thanks, and sorry for the semi-false alarm!
Cheers,
f
From: Dieter W. <di...@ue...> - 2011年06月21日 14:49:29
Hi Mike,
your changes in the pull request fixed the problem for me, thanks a lot!
Greetings,
Dieter
Am Dienstag, den 21.06.2011, 09:01 -0400 schrieb Michael Droettboom:
> I see what is happening here... The SVG backend was recently
> re-written to write some of the path data in C -- unfortunately the
> numbers being written there are locale-aware, and in your locale it
> appears to be using ',' as a decimal point.
> 
> I put up a fix for this here:
> 
> https://github.com/matplotlib/matplotlib/pull/369
> 
> In the meantime, you may have some luck by setting your locale before
> running python, i.e.:
> 
> LANG=en_US.UTF-8 python svg_export2.py
> 
> Cheers,
> Mike
> 
> On 06/21/2011 06:47 AM, Dieter Weber wrote: 
> > Hi folks,
> > when I tried to export figures as SVG, the result was completely messed
> > up. Export in other formats works. 
> > 
> > Appended you find:
> > * Script to reproduce error
> > * Broken SVG
> > * Working EPS
> > * Broken SVG rendered by Gnome image viewer (eog)
> > * Broken SVG rendered by Inkscape
> > 
> > Setup:
> > Ubuntu 10.04 LTS
> > Python 2.6.5 (stock)
> > Matplotlib current version from git, installed with "python setupegg.py
> > develop"
> > 
> > Can you reproduce the problem on your machine?
> > 
> > Greetings,
> > Dieter
> > 
> > 
> > ------------------------------------------------------------------------------
> > EditLive Enterprise is the world's most technically advanced content
> > authoring tool. Experience the power of Track Changes, Inline Image
> > Editing and ensure content is compliant with Accessibility Checking.
> > http://p.sf.net/sfu/ephox-dev2dev
> > 
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
> -- 
> Michael Droettboom
> Science Software Branch
> Space Telescope Science Institute
> Baltimore, Maryland, USA
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________ Matplotlib-devel mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Sandro, did you ever figure anything out with this behavior? I see the same
thing (example scripts for which the docs contain the Exception error yet
run just fine from the command line). 
Sandro Tosi-4 wrote:
> 
> Hi,
> 
> On Tue, Jan 4, 2011 at 19:11, Jakub Wilk <jw...@de...> wrote:
>> Package: python-matplotlib-doc
>> Version: 0.99.3-1
>> Severity: minor
>>
>> There are several "Exception occurred rendering plot" warnings in the
>> generated documentation:
>>
>> $ cd /usr/share/doc/python-matplotlib-doc/html/ && grep -r 'Exception
>> occurred' .
>> ./users/screenshots.html:[ 
>> href="../plot_directive/mpl_examples/pylab_examples/scatter_demo2.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./users/screenshots.html:[ 
>> href="../plot_directive/mpl_examples/api/date_demo.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./users/screenshots.html:[ 
>> href="../plot_directive/mpl_examples/pylab_examples/finance_work2.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./users/screenshots.html:[ 
>> href="../plot_directive/pyplots/plotmap.py">source code ]<p>Exception
>> occurred rendering plot.</p>
>> ./examples/units/date_support.html:[ 
>> href="../../plot_directive/mpl_examples/units/date_support.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/units/basic_units.html:[ 
>> href="../../plot_directive/mpl_examples/units/basic_units.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/units/artist_tests.html:[ 
>> href="../../plot_directive/mpl_examples/units/artist_tests.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/axes_grid/demo_image.html:[ 
>> href="../../plot_directive/mpl_examples/axes_grid/demo_image.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/data_helper.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/data_helper.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/date_demo2.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/date_demo2.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/geo_demo.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/geo_demo.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/centered_ticklabels.html:[ external"
>> href="../../plot_directive/mpl_examples/pylab_examples/centered_ticklabels.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/finance_demo.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/finance_demo.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/date_demo1.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/date_demo1.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/finance_work2.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/finance_work2.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/loadrec.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/loadrec.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/scatter_demo2.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/scatter_demo2.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/pylab_examples/multipage_pdf.html:[ 
>> href="../../plot_directive/mpl_examples/pylab_examples/multipage_pdf.py">source
>> code ]<p>Exception occurred rendering plot.</p>
>> ./examples/api/date_demo.html:[ 
>> href="../../plot_directive/mpl_examples/api/date_demo.py">source
>> code ]<p>Exception occurred rendering plot.</p>
> 
> The updated list is:
> 
> api/axes_api.html
> api/pyplot_api.html
> examples/api/hinton_demo.html
> examples/api/radar_chart.html
> examples/api/sankey_demo.html
> examples/pylab_examples/anchored_artists.html
> examples/pylab_examples/arrow_demo.html
> examples/pylab_examples/axes_zoom_effect.html
> examples/pylab_examples/data_helper.html
> examples/pylab_examples/demo_bboximage.html
> examples/pylab_examples/geo_demo.html
> examples/pylab_examples/image_demo2.html
> examples/pylab_examples/legend_auto.html
> examples/pylab_examples/multipage_pdf.html
> examples/units/artist_tests.html
> examples/units/basic_units.html
> users/annotations_guide.html
> users/screenshots.html
> 
> But I have some problems debugging these issues, since when I run the
> code by-hand, it works fine but in the html file it's not shown. How
> can I debug that? in the log there's nothing about these problems (but
> other error, I'll follow them up in another mail).
> 
> Thanks in advance,
> -- 
> Sandro Tosi (aka morph, morpheus, matrixhasu)
> My website: http://matrixhasu.altervista.org/
> Me at Debian: http://wiki.debian.org/SandroTosi
> 
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand 
> malware threats, the impact they can have on your business, and how you 
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
-----
Josh Hemann
Group Manager - Advanced Analytics 
Sports Authority
jhemann at sportsauthority com 
-- 
View this message in context: http://old.nabble.com/Re%3A--Python-modules-team--Bug-608932%3A-python-matplotlib-doc%3A-%22Exception-occurred-rendering-plot%22-tp30695603p31894837.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
From: Josh H. <jh...@sp...> - 2011年06月21日 14:12:27
Hi Dan,
Is 
http://matplotlib.sourceforge.net/examples/api/radar_chart.html?highlight=radar
this the example you are referring to? If so, this is the one I submitted
to the gallery a couple of years ago and I would be happy to see the
underlying methodology improved.
Josh
texas_ranger wrote:
> 
> Hello dev people,
> 
> I had an app where I needed the radar chart (aka Kiviat diagrams) source
> code out of matplotlib. Turns out the example source code is very limited
> the way it is currently written. Not good.
> 
> I re-wrote parts of the source code to make it much more flexible and
> easier
> to include in an app. For example, if run in stand-alone mode, the user
> can
> specify upto 25 different radar charts in one window. Titles and labels
> are
> much more general as well. The legend can have multiple columns, etc.
> 
> If anyone is interested, I will be happy to send you my source code,
> hoping
> you might consider replacing the current version in the docs with the one
> I'll send.
> 
> Just reply and I'll send the code. You can decide from there whether to
> use
> it to replace current version.
> 
> I did not want to attach the code if no one is interested.
> 
> Daniel Barnette
> 
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
-----
Josh Hemann
Group Manager - Advanced Analytics 
Sports Authority
jhemann at sportsauthority com 
-- 
View this message in context: http://old.nabble.com/improved-source-code-for-radar-chart-example-in-matplotlib-docs-tp31351398p31894586.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
From: Michael D. <md...@st...> - 2011年06月21日 13:04:22
It looks like something fishy in your font cache -- "None" has been 
entered in the table as a filename.
Can you move away your ~/.matplotlib/fontList.cache file (to force a 
regeneration) and see if that resolves the problem? If so, I'd like to 
see the original broken fontList.cache file to see if I can get to the 
bottom of what's wrong with it.
Have you set any font-related rcParams to anything non-standard that 
might be causing the lookup to fail?
Cheers,
Mike
On 06/21/2011 04:24 AM, Fernando Perez wrote:
> Howdy,
>
> a simple
>
> plot(rand(100))
> savefig('foo.eps')
>
> is giving me the traceback below. Is it something I'm doing wrong on my side?
>
> Running on linux, ubuntu 10.10, python2.6.
>
> Thanks for any tips...
>
>
> f
>
> ---------------------------------------------------------------------------
> TypeError Traceback (most recent call last)
> /home/fperez/research/dif-tx/src/python/<ipython-input-2-3f85c055f45e>
> in<module>()
> ----> 1 savefig('foo.eps')
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/pyplot.pyc
> in savefig(*args, **kwargs)
> 426 def savefig(*args, **kwargs):
> 427 fig = gcf()
> --> 428 return fig.savefig(*args, **kwargs)
> 429
> 430 @docstring.copy_dedent(Figure.ginput)
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/figure.pyc
> in savefig(self, *args, **kwargs)
> 1160 kwargs.setdefault('edgecolor',
> rcParams['savefig.edgecolor'])
> 1161
> -> 1162 self.canvas.print_figure(*args, **kwargs)
> 1163
> 1164 if transparent:
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_qt4agg.pyc
> in print_figure(self, *args, **kwargs)
> 151
> 152 def print_figure(self, *args, **kwargs):
> --> 153 FigureCanvasAgg.print_figure(self, *args, **kwargs)
> 154 self.draw()
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backend_bases.pyc
> in print_figure(self, filename, dpi, facecolor, edgecolor,
> orientation, format, **kwargs)
> 1977 orientation=orientation,
> 1978 bbox_inches_restore=_bbox_inches_restore,
> -> 1979 **kwargs)
> 1980 finally:
> 1981 if bbox_inches and restore_bbox:
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backend_bases.pyc
> in print_eps(self, *args, **kwargs)
> 1744 from backends.backend_ps import FigureCanvasPS # lazy import
> 1745 ps = self.switch_backends(FigureCanvasPS)
> -> 1746 return ps.print_eps(*args, **kwargs)
> 1747
> 1748 def print_pdf(self, *args, **kwargs):
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
> in print_eps(self, outfile, *args, **kwargs)
> 933
> 934 def print_eps(self, outfile, *args, **kwargs):
> --> 935 return self._print_ps(outfile, 'eps', *args, **kwargs)
> 936
> 937
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
> in _print_ps(self, outfile, format, *args, **kwargs)
> 966 self._print_figure(outfile, format, imagedpi,
> facecolor, edgecolor,
> 967 orientation, isLandscape, papertype,
> --> 968 **kwargs)
> 969
> 970 def _print_figure(self, outfile, format, dpi=72,
> facecolor='w', edgecolor='w',
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
> in _print_figure(self, outfile, format, dpi, facecolor, edgecolor,
> orientation, isLandscape, papertype, **kwargs)
> 1059 bbox_inches_restore=_bbox_inches_restore)
> 1060
> -> 1061 self.figure.draw(renderer)
> 1062
> 1063 if dryrun: # return immediately if dryrun (tightbbox=True)
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/artist.pyc
> in draw_wrapper(artist, renderer, *args, **kwargs)
> 53 def draw_wrapper(artist, renderer, *args, **kwargs):
> 54 before(artist, renderer)
> ---> 55 draw(artist, renderer, *args, **kwargs)
> 56 after(artist, renderer)
> 57
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/figure.pyc
> in draw(self, renderer)
> 872 dsu.sort(key=itemgetter(0))
> 873 for zorder, func, args in dsu:
> --> 874 func(*args)
> 875
> 876 renderer.close_group('figure')
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/artist.pyc
> in draw_wrapper(artist, renderer, *args, **kwargs)
> 53 def draw_wrapper(artist, renderer, *args, **kwargs):
> 54 before(artist, renderer)
> ---> 55 draw(artist, renderer, *args, **kwargs)
> 56 after(artist, renderer)
> 57
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/axes.pyc
> in draw(self, renderer, inframe)
> 1981
> 1982 for zorder, a in dsu:
> -> 1983 a.draw(renderer)
> 1984
> 1985 renderer.close_group('axes')
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/artist.pyc
> in draw_wrapper(artist, renderer, *args, **kwargs)
> 53 def draw_wrapper(artist, renderer, *args, **kwargs):
> 54 before(artist, renderer)
> ---> 55 draw(artist, renderer, *args, **kwargs)
> 56 after(artist, renderer)
> 57
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/axis.pyc
> in draw(self, renderer, *args, **kwargs)
> 1035
> 1036 ticks_to_draw = self._update_ticks(renderer)
> -> 1037 ticklabelBoxes, ticklabelBoxes2 =
> self._get_tick_bboxes(ticks_to_draw, renderer)
> 1038
> 1039 for tick in ticks_to_draw:
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/axis.pyc
> in _get_tick_bboxes(self, ticks, renderer)
> 986 for tick in ticks:
> 987 if tick.label1On and tick.label1.get_visible():
> --> 988 extent = tick.label1.get_window_extent(renderer)
> 989 ticklabelBoxes.append(extent)
> 990 if tick.label2On and tick.label2.get_visible():
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/text.pyc
> in get_window_extent(self, renderer, dpi)
> 745 raise RuntimeError('Cannot get window extent w/o renderer')
> 746
> --> 747 bbox, info = self._get_layout(self._renderer)
> 748 x, y = self.get_position()
> 749 x, y = self.get_transform().transform_point((x, y))
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/text.pyc
> in _get_layout(self, renderer)
> 298 tmp, lp_h, lp_bl = get_text_width_height_descent('lp',
> 299
> self._fontproperties,
> --> 300 ismath=False)
> 301 offsety = lp_h * self._linespacing
> 302
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
> in get_text_width_height_descent(self, s, prop, ismath)
> 338 if rcParams['ps.useafm']:
> 339 if ismath: s = s[1:-1]
> --> 340 font = self._get_font_afm(prop)
> 341 l,b,w,h,d = font.get_str_bbox_and_descent(s)
> 342
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
> in _get_font_afm(self, prop)
> 366 font = self.afmfontd.get(key)
> 367 if font is None:
> --> 368 fname = findfont(prop, fontext='afm',
> directory=self._afm_font_dir)
> 369 if fname is None:
> 370 fname = findfont(
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/font_manager.pyc
> in findfont(prop, **kw)
> 1319 def findfont(prop, **kw):
> 1320 global fontManager
> -> 1321 font = fontManager.findfont(prop, **kw)
> 1322 return font
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/font_manager.pyc
> in findfont(self, prop, fontext, directory, fallback_to_default,
> rebuild_if_missing)
> 1211 default_prop = prop.copy()
> 1212 default_prop.set_family(self.defaultFamily[fontext])
> -> 1213 return self.findfont(default_prop, fontext,
> directory, False)
> 1214 else:
> 1215 # This is a hard fail -- we can't find
> anything reasonable,
>
>
> /home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/font_manager.pyc
> in findfont(self, prop, fontext, directory, fallback_to_default,
> rebuild_if_missing)
> 1226 result = best_font.fname
> 1227
> -> 1228 if not os.path.isfile(result):
> 1229 if rebuild_if_missing:
> 1230 verbose.report(
>
> /usr/lib/python2.6/genericpath.pyc in isfile(path)
> 27 """Test whether a path is a regular file"""
> 28 try:
> ---> 29 st = os.stat(path)
> 30 except os.error:
> 31 return False
>
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
From: Michael D. <md...@st...> - 2011年06月21日 12:58:20
I see what is happening here... The SVG backend was recently re-written 
to write some of the path data in C -- unfortunately the numbers being 
written there are locale-aware, and in your locale it appears to be 
using ',' as a decimal point.
I put up a fix for this here:
https://github.com/matplotlib/matplotlib/pull/369
In the meantime, you may have some luck by setting your locale before 
running python, i.e.:
 LANG=en_US.UTF-8 python svg_export2.py
Cheers,
Mike
On 06/21/2011 06:47 AM, Dieter Weber wrote:
> Hi folks,
> when I tried to export figures as SVG, the result was completely messed
> up. Export in other formats works.
>
> Appended you find:
> * Script to reproduce error
> * Broken SVG
> * Working EPS
> * Broken SVG rendered by Gnome image viewer (eog)
> * Broken SVG rendered by Inkscape
>
> Setup:
> Ubuntu 10.04 LTS
> Python 2.6.5 (stock)
> Matplotlib current version from git, installed with "python setupegg.py
> develop"
>
> Can you reproduce the problem on your machine?
>
> Greetings,
> Dieter
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
>
>
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
From: Darren D. <dsd...@gm...> - 2011年06月21日 11:44:04
On Mon, Jun 20, 2011 at 6:18 PM, Eric Firing <ef...@ha...> wrote:
> On 06/20/2011 11:29 AM, Darren Dale wrote:
>
>> Ok, I've migrated the issues over to github.
>>
>> Darren
>
> Darren,
>
> Thank you. Now I see another possible problem with the issue tracker:
> it doesn't seem to have a way to select issues that do *not* have a
> particular label.
I just filed a support request and asked if this feature could be added.
> Well, at least that gives us extra incentive to plow
> through the sourceforge imports and try to close as many as possible.
> Also to figure out a good standard set of labels.
Since github thinks I am the original reporter of all of the migrated
issues, I'm getting notifications on all the sourceforge issues
activity. Impressive progress! I think we closed over 80 issues since
yesterday, and you handled a big majority of them.
From: Dieter W. <di...@ue...> - 2011年06月21日 10:47:14
Hi folks,
when I tried to export figures as SVG, the result was completely messed
up. Export in other formats works. 
Appended you find:
* Script to reproduce error
* Broken SVG
* Working EPS
* Broken SVG rendered by Gnome image viewer (eog)
* Broken SVG rendered by Inkscape
Setup:
Ubuntu 10.04 LTS
Python 2.6.5 (stock)
Matplotlib current version from git, installed with "python setupegg.py
develop"
Can you reproduce the problem on your machine?
Greetings,
Dieter
From: Dieter W. <di...@ue...> - 2011年06月21日 09:13:36
Hi everybody,
just now I noticed that I was still running the old SVN version of
matplotlib and not the most recent one from git. Apparently the files
installed to (in my
case) /usr/local/lib/python2.6/dist-packages/matplotlib from SVN with
"python setup.py install" took precedence over the installation with
"python setupegg.py develop". I therefore suggest to modify
http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-git by replacing
"If you want to be able to follow the development branch as it changes
just replace the last step with (make sure you have setuptools
installed):"
with 
"If you want to be able to follow the development branch as it changes
just uninstall any existing copy of matplotlib and replace the last step
with (make sure you have setuptools installed):"
Best wishes,
Dieter
From: Fernando P. <fpe...@gm...> - 2011年06月21日 08:25:22
Howdy,
a simple
plot(rand(100))
savefig('foo.eps')
is giving me the traceback below. Is it something I'm doing wrong on my side?
Running on linux, ubuntu 10.10, python2.6.
Thanks for any tips...
f
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/fperez/research/dif-tx/src/python/<ipython-input-2-3f85c055f45e>
in <module>()
----> 1 savefig('foo.eps')
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/pyplot.pyc
in savefig(*args, **kwargs)
 426 def savefig(*args, **kwargs):
 427 fig = gcf()
--> 428 return fig.savefig(*args, **kwargs)
 429
 430 @docstring.copy_dedent(Figure.ginput)
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/figure.pyc
in savefig(self, *args, **kwargs)
 1160 kwargs.setdefault('edgecolor',
rcParams['savefig.edgecolor'])
 1161
-> 1162 self.canvas.print_figure(*args, **kwargs)
 1163
 1164 if transparent:
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_qt4agg.pyc
in print_figure(self, *args, **kwargs)
 151
 152 def print_figure(self, *args, **kwargs):
--> 153 FigureCanvasAgg.print_figure(self, *args, **kwargs)
 154 self.draw()
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backend_bases.pyc
in print_figure(self, filename, dpi, facecolor, edgecolor,
orientation, format, **kwargs)
 1977 orientation=orientation,
 1978 bbox_inches_restore=_bbox_inches_restore,
-> 1979 **kwargs)
 1980 finally:
 1981 if bbox_inches and restore_bbox:
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backend_bases.pyc
in print_eps(self, *args, **kwargs)
 1744 from backends.backend_ps import FigureCanvasPS # lazy import
 1745 ps = self.switch_backends(FigureCanvasPS)
-> 1746 return ps.print_eps(*args, **kwargs)
 1747
 1748 def print_pdf(self, *args, **kwargs):
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
in print_eps(self, outfile, *args, **kwargs)
 933
 934 def print_eps(self, outfile, *args, **kwargs):
--> 935 return self._print_ps(outfile, 'eps', *args, **kwargs)
 936
 937
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
in _print_ps(self, outfile, format, *args, **kwargs)
 966 self._print_figure(outfile, format, imagedpi,
facecolor, edgecolor,
 967 orientation, isLandscape, papertype,
--> 968 **kwargs)
 969
 970 def _print_figure(self, outfile, format, dpi=72,
facecolor='w', edgecolor='w',
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
in _print_figure(self, outfile, format, dpi, facecolor, edgecolor,
orientation, isLandscape, papertype, **kwargs)
 1059 bbox_inches_restore=_bbox_inches_restore)
 1060
-> 1061 self.figure.draw(renderer)
 1062
 1063 if dryrun: # return immediately if dryrun (tightbbox=True)
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/artist.pyc
in draw_wrapper(artist, renderer, *args, **kwargs)
 53 def draw_wrapper(artist, renderer, *args, **kwargs):
 54 before(artist, renderer)
---> 55 draw(artist, renderer, *args, **kwargs)
 56 after(artist, renderer)
 57
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/figure.pyc
in draw(self, renderer)
 872 dsu.sort(key=itemgetter(0))
 873 for zorder, func, args in dsu:
--> 874 func(*args)
 875
 876 renderer.close_group('figure')
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/artist.pyc
in draw_wrapper(artist, renderer, *args, **kwargs)
 53 def draw_wrapper(artist, renderer, *args, **kwargs):
 54 before(artist, renderer)
---> 55 draw(artist, renderer, *args, **kwargs)
 56 after(artist, renderer)
 57
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/axes.pyc
in draw(self, renderer, inframe)
 1981
 1982 for zorder, a in dsu:
-> 1983 a.draw(renderer)
 1984
 1985 renderer.close_group('axes')
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/artist.pyc
in draw_wrapper(artist, renderer, *args, **kwargs)
 53 def draw_wrapper(artist, renderer, *args, **kwargs):
 54 before(artist, renderer)
---> 55 draw(artist, renderer, *args, **kwargs)
 56 after(artist, renderer)
 57
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/axis.pyc
in draw(self, renderer, *args, **kwargs)
 1035
 1036 ticks_to_draw = self._update_ticks(renderer)
-> 1037 ticklabelBoxes, ticklabelBoxes2 =
self._get_tick_bboxes(ticks_to_draw, renderer)
 1038
 1039 for tick in ticks_to_draw:
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/axis.pyc
in _get_tick_bboxes(self, ticks, renderer)
 986 for tick in ticks:
 987 if tick.label1On and tick.label1.get_visible():
--> 988 extent = tick.label1.get_window_extent(renderer)
 989 ticklabelBoxes.append(extent)
 990 if tick.label2On and tick.label2.get_visible():
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/text.pyc
in get_window_extent(self, renderer, dpi)
 745 raise RuntimeError('Cannot get window extent w/o renderer')
 746
--> 747 bbox, info = self._get_layout(self._renderer)
 748 x, y = self.get_position()
 749 x, y = self.get_transform().transform_point((x, y))
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/text.pyc
in _get_layout(self, renderer)
 298 tmp, lp_h, lp_bl = get_text_width_height_descent('lp',
 299
self._fontproperties,
--> 300 ismath=False)
 301 offsety = lp_h * self._linespacing
 302
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
in get_text_width_height_descent(self, s, prop, ismath)
 338 if rcParams['ps.useafm']:
 339 if ismath: s = s[1:-1]
--> 340 font = self._get_font_afm(prop)
 341 l,b,w,h,d = font.get_str_bbox_and_descent(s)
 342
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc
in _get_font_afm(self, prop)
 366 font = self.afmfontd.get(key)
 367 if font is None:
--> 368 fname = findfont(prop, fontext='afm',
directory=self._afm_font_dir)
 369 if fname is None:
 370 fname = findfont(
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/font_manager.pyc
in findfont(prop, **kw)
 1319 def findfont(prop, **kw):
 1320 global fontManager
-> 1321 font = fontManager.findfont(prop, **kw)
 1322 return font
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/font_manager.pyc
in findfont(self, prop, fontext, directory, fallback_to_default,
rebuild_if_missing)
 1211 default_prop = prop.copy()
 1212 default_prop.set_family(self.defaultFamily[fontext])
-> 1213 return self.findfont(default_prop, fontext,
directory, False)
 1214 else:
 1215 # This is a hard fail -- we can't find
anything reasonable,
/home/fperez/usr/opt/lib/python2.6/site-packages/matplotlib/font_manager.pyc
in findfont(self, prop, fontext, directory, fallback_to_default,
rebuild_if_missing)
 1226 result = best_font.fname
 1227
-> 1228 if not os.path.isfile(result):
 1229 if rebuild_if_missing:
 1230 verbose.report(
/usr/lib/python2.6/genericpath.pyc in isfile(path)
 27 """Test whether a path is a regular file"""
 28 try:
---> 29 st = os.stat(path)
 30 except os.error:
 31 return False
TypeError: coercing to Unicode: need string or buffer, NoneType found

Showing 12 results of 12

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /