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
(7)
2
(5)
3
(18)
4
(9)
5
(13)
6
(14)
7
(8)
8
(7)
9
(6)
10
(6)
11
(24)
12
(14)
13
(9)
14
(21)
15
(6)
16
(1)
17
(20)
18
(42)
19
(16)
20
(21)
21
(41)
22
(13)
23
(11)
24
(15)
25
(32)
26
(27)
27
(29)
28
(10)
29
(3)
30
(1)
31
(5)





Showing 7 results of 7

From: Onno B. <mat...@on...> - 2008年03月01日 16:23:06
JH> Note that with the clipped line approach I suggested, you can have the
JH> best of both worlds. Downsampl when N>20000 or some appropriate
JH> number, and plot the full data when you zoom.
Hm.. Good point. I'll try to implement that. Thanks!
Best regards,
-- 
Onno Broekmans
From: Alan G I. <ai...@am...> - 2008年03月01日 15:58:56
On 2008年2月29日, David Huard apparently wrote:
> Have you tried pdfcrop ? 
Did not know about it.
<URL:http://www.ctan.org/tex-archive/support/pdfcrop/>
Hmmm, is it legitimate to link to perl code here? ;-)
Thanks,
Alan
From: chombee <ch...@ne...> - 2008年03月01日 14:57:11
On Fri, 2008年02月29日 at 08:56 -0500, Michael Droettboom wrote:
> I don't believe there is at present. There was a recent discussion 
> about this on the list, and it's on the radar as something to add for a 
> future release.
Oh well. Good to know it's on the radar. For now I'll just modify my
plots after the fact with the gimp.
From: lovegf86 <lov...@gm...> - 2008年03月01日 08:52:08
Please Help me.
I am a beginner in programming. Due to my research, I should know how to
make graph using python and matplotlib. 
I went to matplotlib website and downloaded and installed "enthought python"
Enthought python is a package that include numpy, wxPython GUI toolkit and
SciPy.
I installed Enthought python at
C:/Python24
and downloaded and installed matplotlib
C:/
I did know which things I downloaded.. But I downloaded..
matplotlib-0.91.2.win32-py2.4.exe
matplotlib-0.91.2-py2.4-win32.egg
matplotlib-0.91.2.tar.gz 
Did I downloaded right things?
Anyway, I installed and opened Python(Idle) and tried to make a graph
>>>from pylab import *
RuntimeError: module compiled against version 1000009 of C-API but this
version of numpy is 90907
Traceback (most recent call last):
 File "<pyshell#2>", line 1, in -toplevel-
 from pylab import *
 File "C:\Python24\Lib\site-packages\pylab.py", line 1, in -toplevel-
 from matplotlib.pylab import *
 File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 208, in
-toplevel-
 from matplotlib import mpl # pulls in most modules
 File "C:\Python24\Lib\site-packages\matplotlib\mpl.py", line 1, in
-toplevel-
 from matplotlib import artist
 File "C:\Python24\Lib\site-packages\matplotlib\artist.py", line 4, in
-toplevel-
 from transforms import identity_transform
 File "C:\Python24\Lib\site-packages\matplotlib\transforms.py", line 254,
in -toplevel-
 from matplotlib._transforms import Value, Point, Interval, Bbox, Affine
ImportError: numpy.core.multiarray failed to import
What is the problem?
Do I need to update numpy?
Please help me, I am so desperate..
-- 
View this message in context: http://www.nabble.com/I-really-need-help-about-installing-matplotlib.-tp15773095p15773095.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Francesco B. <blu...@gm...> - 2008年03月01日 01:31:01
Hi all,
Christopher Barker wrote:
> "The only difference that my users see between an app written in Python 
> and C++ is that the Python one has more features...and fewer bugs."
> 
I'm currently working mostly in C++ and exploring integration with 
Python through Boost.Python+IPython+MPL. I enjoy working in Python, but 
I'm afraid of making a more consistent switch mainly for fear of losing 
the static type checking that C++ gives me. I have the horrifying 
feeling that if I were to write much code in Python I could break it in 
so many ways just because of this, and I'd have the constant perception 
of not having my back covered by the compiler, at least for this kind of 
errors.
It's true that probably I'd get the software up and running in less time 
with Python, but I think that I would spend much more time making sure 
it behaves as expected and "fortifying" it, so to speak. Am I totally 
offset here?
 Francesco.
From: Jeff P. <jef...@se...> - 2008年03月01日 01:15:46
Hello,
I'm trying to use savefig in my wx app and I'm using wxAgg backend. I'm
getting this error:
 
FILE .maplotlib\backends\backend_bases.py, line 397 in print_png
Self.get_renderer()._renderer.write_png(filename, self.figure.dpi.dpi.get())
TypeError: cannot return std::string from Unicode object
 
I'm simply calling this:
 
self.figure.savefig(image_file,
 facecolor='w',
 edgecolor='w')
 
How do I fix this problem? Thanks.
 
Jeff
 
 
 
From: Christopher B. <Chr...@no...> - 2008年03月01日 00:04:28
This is getting OT, but I'd kind of like to see it get archived somewhere...
João Luís Silva wrote:
> I'm trying to explore new options, and learn new skills. My favorite 
> programming languages are C/C++ and Python. I use Python for small 
> scripts and applications, and C/C++ for everything else. I've started a 
> smallish/medium size open source app in python+pygtk+matplotlib+numpy 
> (laserfoam.sf.net) but I think a large application might be more 
> maintainable in C++.
I think this is not true AT ALL -- C++ is a big 'ol mess and far too 
complicated, and not very flexible, no matter how hard it tries.
> Also, I think C++ is easier to "sell" to the powers 
> that be.
That can be quite true, depending on who the powers that be are. 
However, I like a quote from the wxPython list:
"The only difference that my users see between an app written in Python 
and C++ is that the Python one has more features...and fewer bugs."
> I may write the GUI in 
> python+wxPython, and everything else in C++,
I wouldn't write "everything else" in C++ -- I'd only write what you 
really need to write in C++ - which means only computational code that 
isn't fast enough with numpy, or device drivers or something like that.
> but I was trying to drive the app from C++.
That can be done, but most people do it the other way around, it's 
easier to drive C++ from python than python from C++. I did get a note 
on the numpy list from someone driving MPL from C++ for some simple test 
code, but I don't think it's a robust solution -- I've just forwarded 
that to you.
> The need for python only remains due to its superior 
> plotting tools.
the "need" maybe, but python has many, many, advantages that have 
nothing to do with plotting (or other libs, though the available libs 
are a big plus). Really, you'll be writing 1/5 to 1/10 as much code -- 
that's a BIG savings!
Also, you get built-in scripting -- and I think virtually every app 
should be scriptable.
> Also, I'm trying to keep things simple, so that they 
> just work, on both Linux and Windows.
If you keep your extensions pretty standard C++, that's pretty easy, and 
python + wxPython is very portable.
> I guess I have to think this over a bit more. Any further comments or 
> sugestions would be appreciated.
Here's the key questions:
1) do you need C/C++ at all? maybe not!
2) If so, how much of the functionality of your app really needs to be 
written in C++? Multi-language development is kind of a pain -- SWIG, 
Pyrex, ctypes, Boost++, etc help a lot, but it's still a lot of work at 
the interface, so it only makes sense if you keep that interface small. 
If there isn't much C++, it's a no-brainer.
3) it seems most projects that do python+C++ development wish they'd 
done more in Python, not less:
http://www.python.org/about/success/wingide/
Why do you think that virtually no one writes web apps in C++?
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...

Showing 7 results of 7

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