SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S



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

Showing 12 results of 12

From: Alan G I. <ala...@gm...> - 2010年12月17日 23:55:10
On 12/17/2010 6:28 PM, Christoph Gohlke wrote:
> http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
Wow!
That's quite an offering.
Alan Isaac
From: Tim G. <tg...@pr...> - 2010年12月17日 23:44:16
On Dec 16, 2010 at 09:24 PM -0800, Robert Field wrote:
> That's what I thought at first too, but imagemagick/graphicsmagick aren't 
> able to do the work. I've found something else to use in the meantime. 
> Thanks,
You could save an additional pdf version with your matplotlib code and 
convert that with imagemagick.
From: Christoph G. <cg...@uc...> - 2010年12月17日 23:28:16
Unofficial matplotlib binaries for Python 2.7 for Windows are available 
at <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>.
Christoph
On 12/11/2010 11:55 PM, Abdul Rasheed wrote:
> hi all
> i am new to networkx and Matplotlib. I downloaded networkx1.3 under
> python 2.7.1 for windows xp. when i tried to install matplotlib, it
> requires python 2.6 only. What shall i do in this situation? kindly
> suggest me to have successful installation of matplotlib. Awaiting for
> your replies. thanking you in advance.
>
> */With Warm Wishes and Regards / *
> ____
> A. Abdul Rasheed, M.C.A., M.E., Ph.D.,
> Assistant Professor,
> Department of Computer Applications,
> Valliammai Engineering College,
> SRM Nagar, Kattankulathur - 603 203.
> Kancheepuram District. Tamil Nadu. INDIA.
> Contact: 91 - 44 - 27454784 Ext: 451 (O) / 996 23 000 55
>
>
From: Robert F. <Rob...@no...> - 2010年12月17日 23:16:06
Ah, imagemagick/graphicsmagick couldn't successfully parse svg, so no conversion was possible. I wound up looking at batik, a java-based solution, which is not fast, but has the benefit of actually working. 
--Rob
On Dec 17, 2010, at 3:11 PM, Alan G Isaac wrote:
> On 12/17/2010 12:24 AM, Robert Field wrote:
>> imagemagick/graphicsmagick aren't able to do the work. I've found something else to use in the meantime.
> 
> It would not be off topic to share your solution with the list.
> 
> Alan Isaac
> 
From: Friedrich R. <fri...@gm...> - 2010年12月17日 23:14:21
Sorry for the long delay,
simplest case would be if you can install networkx for py2.6 and the
matplotlib you already have on that py2.6 too.
Other, painful option is to compile matplotlib on WIndows yourself
(but I cannot help with this).
I don't know networkx but I strongly believe that py2.6 is recent enough.
Friedrich
2010年12月12日 Abdul Rasheed <pr...@li...>:
> hi all
>  i am new to networkx and Matplotlib. I downloaded networkx1.3 under python
> 2.7.1 for windows xp. when i tried to install matplotlib, it requires python
> 2.6 only. What shall i do in this situation? kindly suggest me to have
> successful installation of matplotlib. Awaiting for your replies. thanking
> you in advance.
From: Alan G I. <ala...@gm...> - 2010年12月17日 23:12:13
On 12/17/2010 12:24 AM, Robert Field wrote:
> imagemagick/graphicsmagick aren't able to do the work. I've found something else to use in the meantime.
It would not be off topic to share your solution with the list.
Alan Isaac
From: Friedrich R. <fri...@gm...> - 2010年12月17日 23:08:36
2010年12月15日 John Floan <joh...@nt...>:
> I have tried to install matplotlib to our IBM cluster P5(aix5)
> and get this error message (see below):
> The python script output xlC_r xlC_r (2 times) (see end of this email).
> Is that right?
> John
>
> building 'matplotlib.ft2font' extension
> xlC_r xlC_r
> -bI:/usr/local/python/python-2.6.3/lib/python2.6/config/python.exp
> build/temp.aix-5.3-2.6/src/ft2font.o
> build/temp.aix-5.3-2.6/src/mplutils.o
> build/temp.aix-5.3-2.6/CXX/cxx_extensions.o
> build/temp.aix-5.3-2.6/CXX/IndirectPythonInterface.o
> build/temp.aix-5.3-2.6/CXX/cxxsupport.o
> build/temp.aix-5.3-2.6/CXX/cxxextensions.o -L/opt/freeware/lib
> -L/usr/local/lib -lfreetype -lz -lstdc++ -lm -o
> build/lib.aix-5.3-2.6/matplotlib/ft2font.so
> /usr/vacpp/bin/xlC_r: 1501-228 (W) input file xlC_r not found
> error: command 'xlC_r' failed with exit status 252
I think this is a bug in the layer beneath mpl, so neither user nor
matplotlib error. I'm not at all an IBM cluster expert, I'm not even
a user.
All,
Can anyone tell if he should upgrade maybe distutils or setuptools? I
don't remember which did what ...
John,
Did you compile numpy yourself? I strongly believe you did. In that
case, did the linkage instructions work for that properly? If yes,
then I might be proven wrong.
Did the commands for compilation (those which creates e.g.
cxx_extensions.o) use xlC_r too?
Friedrich
From: Alejandro W. <ale...@gm...> - 2010年12月17日 22:04:23
Hi:
I want to add a legend to a stem plot with two plots. The basic code is:
###########################
from pylab import *
x = [1,2,3,4,5]
y1 = [1, 2, 3, 4, 5]
y2 = [5, 4, 3, 2, 1]
subplot(211)
plot(x, y1, 'rx-')
plot(x, y2, 'bx-')
legend(('a', 'b'))
subplot(212)
stem(x, y1, 'r')
stem(x,y2, 'b')
legend(('a', 'b'))
show()
###########################
The left subplot is the same plot using plot instead of stem. You can
see the result here: http://imagebin.org/128376 .
I expect the legend for the stem case to look similar to the plot
case, however, for the stem, I get the two labels of the legend
associated with the first stem command: 'a' linked to the marker and
'b' linked to the stem line.
Is there any way to fix this? Is this a bug?
Alejandro.
From: Nat E. <nat...@gm...> - 2010年12月17日 21:17:53
I updated the version of matplotlib distributed with our group's software to
1.0.0 a week and a half ago (we also use wxPython 2.8.11.0 and Python 2.7).
 Since then, multiple users (all on Mac, so far, although we also distribute
a Linux version) have been reporting this error:
RuntimeError : Could not open facefile
/usr/local/bin/phenix-dev-610/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/VeraMono.ttf;
Cannot_Open_Resource
The full traceback is appended below. Googling for this turned up multiple
messages relating to older versions of matplotlib, but the only solution I
could find was to remove the fontCache file in ~/.matplotlib (and it appears
that in some cases removing the entire directory is necessary). The problem
is that this appears to be necessary every time a user upgrades to a new
version of our code and removes an older installation, and since we
distribute nightly builds, it has become a daily ritual explaining how to
fix the problem. I would really appreciate it if someone can suggest a more
elegant solution than making my code nuke ~/.matplotlib. Alternately, if
there is a way to completely prevent the creation or use of ~/.matplotlib,
this would make my life much easier; so far this is the only Python module
that I've seen that insists on writing to the home directory and crashes if
it doesn't get its way.
Or do I need to file a bug ticket?
thanks,
Nat
Traceback (most recent call last):
 File "/usr/local/bin/phenix-dev-613/phenix/wxGUI2/Runtime.py", line 155, in
OnUpdate
 self.propagate_event(event, "OnUpdate")
 File "/usr/local/bin/phenix-dev-613/phenix/wxGUI2/Runtime.py", line 211, in
propagate_event
 fn(event)
 File
"/usr/local/bin/phenix-dev-613/phenix/wxGUI2/Programs/Refine/Output.py",
line 517, in OnUpdate
 self.stats_plot.update_stats(callback.data)
 File
"/usr/local/bin/phenix-dev-613/phenix/wxGUI2/Programs/Refine/Output.py",
line 760, in update_stats
 stats.bs_ave)
 File
"/usr/local/bin/phenix-dev-613/phenix/wxGUI2/Programs/Refine/Output.py",
line 802, in set_plots
 self.canvas.draw()
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/backends/backend_wxagg.py",
line 59, in draw
 FigureCanvasAgg.draw(self)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py",
line 394, in draw
 self.figure.draw(self.renderer)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/figure.py",
line 798, in draw
 func(*args)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/axes.py",
line 1934, in draw
 a.draw(renderer)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/axis.py",
line 1017, in draw
 tick.draw(renderer)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/axis.py",
line 234, in draw
 self.label1.draw(renderer)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/text.py",
line 524, in draw
 bbox, info = self._get_layout(renderer)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/text.py",
line 298, in _get_layout
 ismath=False)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py",
line 180, in get_text_width_height_descent
 font = self._get_agg_font(prop)
 File
"/usr/local/bin/phenix-dev-613/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py",
line 221, in _get_agg_font
 font = FT2Font(str(fname))
RuntimeError: Could not open facefile
/usr/local/bin/phenix-dev-610/build/mac-intel-osx-x86_64/base/Python.framework/Versions/Current/lib/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/VeraMono.ttf;
Cannot_Open_Resource
From: Robert F. <Rob...@no...> - 2010年12月17日 05:24:32
That's what I thought at first too, but imagemagick/graphicsmagick aren't able to do the work. I've found something else to use in the meantime. Thanks,
Rob
On Dec 16, 2010, at 8:59 PM, Benjamin Root wrote:
> On Friday, December 10, 2010, Robert Field <Rob...@no...> wrote:
>> Newbie here, and trying to wade through this stuff, and it's not coming too quickly. I'm just trying to take svg data I already have and turn it around into png/pdf/jpg files. Surely this is not terribly difficult. Any help appreciated!
>> ------------------------------------------------------------------------------
>> Lotusphere 2011
>> Register now for Lotusphere 2011 and learn how
>> to connect the dots, take your collaborative environment
>> to the next level, and enter the era of Social Business.
>> http://p.sf.net/sfu/lotusphere-d2d
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> 
> Matplotlib is probably not what you want. For rasterized conversions,
> there is ImageMagick. Most Linux distros come with 'convert' that you
> can use at the command line. Inkscape is good for visual editing of
> vector data.
> 
> HTH!
> Ben Root
From: Benjamin R. <ben...@ou...> - 2010年12月17日 04:59:50
On Friday, December 10, 2010, Robert Field <Rob...@no...> wrote:
> Newbie here, and trying to wade through this stuff, and it's not coming too quickly. I'm just trying to take svg data I already have and turn it around into png/pdf/jpg files. Surely this is not terribly difficult. Any help appreciated!
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
Matplotlib is probably not what you want. For rasterized conversions,
there is ImageMagick. Most Linux distros come with 'convert' that you
can use at the command line. Inkscape is good for visual editing of
vector data.
HTH!
Ben Root
From: Benjamin R. <ben...@ou...> - 2010年12月17日 04:53:58
On Monday, December 13, 2010, usherbsallen <ste...@us...> wrote:
>
> Hi,
> I am using imshow to illustrate the content of arrays. But I am having
> problems when arrays are too large. There seem to be a limitation that is
> not due to the computer memory size. My data are unsigned integer 1 byte and
> I am limited to array of about 12000 x 5000.
> When trying with a 16000 x 5000 array, my 4 GB computer got very slow and
> never perform the creation of the image. After 10 minutes, I have to kill
> the process. On a 16 GB computer, I've got a segmentation fault message. The
> size limitation are approximately the same on both computers.
>
> I found a solution by calling twice the imshow function with only part of
> the array each time. But I think there might be a better solution.
>
> My feeling is that the limitation is not due to matplotlib or python but
> rather from gtk or other part of the imaging tools.
>
> Steve
> --
> View this message in context: http://old.nabble.com/memory-problem-in-imshow-tp30446084p30446084.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
What version of mpl are you using? There was a bug fixed over the
summer regarding seg faults and memory usage.
Ben Root

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 によって変換されたページ (->オリジナル) /