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

Showing 14 results of 14

From: Charlie M. <cw...@gm...> - 2006年06月02日 23:45:03
On 6/2/06, Russell E. Owen <ro...@ce...> wrote:
> I'm using matplotlib in an application I distribute. For Windows and Mac
> users I distribute a frozen application which includes python,
> matplotlib, etc. and I'm wondering how best to include the matplotlib
> data files.
>
> matplotlib searches for its data files in __init__._get_data_path. It
> seems to search shared locations first, then locations that would be
> relevant to a frozen application. Is that safe? I worry that if a user
> of my app has their own version of matplotlib (possibly a very different
> version than I've included) then the data files might be different.
>
> If this really is an issue, then what to do?
The only way you could have conflicting data sources is if
MATPLOTLIBDATA is defined in your environment. If someone is capable
of setting that I am inclined to think they might know what to do in
case of an error. If that env var is not set, then mpl looks inside
the its module. Different installs will not see the others. We
finally have a special case for frozen installations. It has
primarily been made for py2exe, in which you should have a folder
called 'matplotlibdata' in your app's bundle.
> For Mac I can put the data files deep in the app in
> Contents/Frameworks/Python.Framework/2.4/share/matplotlib, which is the
> second location looked at (after environment variable MATPLOTLIBDATA).
The second location should be:
....Frameworks/Python.Framework/2.4/lib/python2.4/matplotlib/mpl-data
Are you using an old version of matplotlib?
> For Windows, there doesn't seem any way out. The Windows frozen test is
> dead last.
You can remove the MATPLOTLIBDATA env var from os.environ in your code.
>
> ---
>
> Also, should I worry about the user's local matplotlibrc file (which
> again might be for the wrong version or might never have been created or
> configured at all -- the main problem I've hit so far is that the
> auto-created default of this file is always wrong about the back
> end--picking gtkagg even though I don't even build gtk support).
>
> Again, that looks difficult or impossible because the search order is
> for the usual user locations first, then look in the data directory.
In my experience with distributing apps with matplotlib, I have known
in advanced the packages I want to use. For example, if I know I am
going to bundle Tkinter and numpy, then I make sure I have the
following before using any matplotlib commands.
import matplotlib
matplotlib.use('TkAgg')
matplotlib.rcParams['numerix'] = 'numpy'
This makes sure your app uses you desired backend modules no matter
what the global config says.
Good luck,
 Charlie
From: Charlie M. <cw...@gm...> - 2006年06月02日 23:04:38
On 6/2/06, David S. <dav...@al...> wrote:
> I have just installed numpy-0.9.8, scipy-0.4.9, and matplotlib-0.87.2 on a
> Windows machine with Python 2.4.2.
matplotlib-0.87.2 requires numpy-0.9.6. You will get an error otherwise.
From: Robert K. <rob...@gm...> - 2006年06月02日 22:43:08
David S. wrote:
> I have just installed numpy-0.9.8, scipy-0.4.9, and matplotlib-0.87.2 on a
> Windows machine with Python 2.4.2. 
> 
> When I import pylab, I get some Windows message box indicating an error in
> multiarray.pyd and am kicked out of interactive Python. 
Please paste the exact error message here.
-- 
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
 -- Umberto Eco
From: David S. <dav...@al...> - 2006年06月02日 22:40:21
I have just installed numpy-0.9.8, scipy-0.4.9, and matplotlib-0.87.2 on a
Windows machine with Python 2.4.2. 
When I import pylab, I get some Windows message box indicating an error in
multiarray.pyd and am kicked out of interactive Python. 
Thanks for any advice?
Peace,
David S.
From: Russell E. O. <ro...@ce...> - 2006年06月02日 21:47:01
I'm using matplotlib in an application I distribute. For Windows and Mac 
users I distribute a frozen application which includes python, 
matplotlib, etc. and I'm wondering how best to include the matplotlib 
data files.
matplotlib searches for its data files in __init__._get_data_path. It 
seems to search shared locations first, then locations that would be 
relevant to a frozen application. Is that safe? I worry that if a user 
of my app has their own version of matplotlib (possibly a very different 
version than I've included) then the data files might be different.
If this really is an issue, then what to do?
For Mac I can put the data files deep in the app in 
Contents/Frameworks/Python.Framework/2.4/share/matplotlib, which is the 
second location looked at (after environment variable MATPLOTLIBDATA).
For Windows, there doesn't seem any way out. The Windows frozen test is 
dead last.
---
Also, should I worry about the user's local matplotlibrc file (which 
again might be for the wrong version or might never have been created or 
configured at all -- the main problem I've hit so far is that the 
auto-created default of this file is always wrong about the back 
end--picking gtkagg even though I don't even build gtk support).
Again, that looks difficult or impossible because the search order is 
for the usual user locations first, then look in the data directory.
Any advice would be most appreciated.
-- Russell
From: Gary R. <gr...@bi...> - 2006年06月02日 13:55:13
Hi Jonathan,
A couple of people have suggested trying pyqwt. Since the answer is that 
matplotlib won't do it, why not just use DISLIN?
Gary
Jonathan Taylor wrote:
> 
> Hi,
> 
> Was wondering if anyone knows if there was any way to reproduce this 
> kind of
> example:
> 
> http://www.mps.mpg.de/dislin/exa_bars3d.html
> 
> i.e. a 3d barplot.
> 
> Thanks,
> 
> Jonathan
From: Glen W. M. <Gle...@sw...> - 2006年06月02日 13:15:14
"Jonathan" == Jonathan Taylor <jon...@st...> writes:
> 
> Hi,
> 
> Was wondering if anyone knows if there was any way to
> reproduce this kind of example:
> 
> http://www.mps.mpg.de/dislin/exa_bars3d.html
> 
> i.e. a 3d barplot.
One alternative that exists is Qwt3d:
http://qwtplot3d.sourceforge.net/
which apparently can do 3d barplots. 
http://qwtplot3d.sourceforge.net/images/venrichment.png
Personally I'm not that familiar with that toolkit, but it does have
python bindings, in conjunction with PyQt:
http://pyqwt.sourceforge.net/
http://www.riverbankcomputing.co.uk/pyqt/index.php
Glen
From: Marquardt, C. <col...@zm...> - 2006年06月02日 10:19:21
Hi,
when I'm plotting something in the most straightforward way, like
 from pylab import *
 plot([1,2,3])
 title('A title')
 xlabel('foo')
 ylabel('bar')
 savefig('test.png')
MPL produces an output file that has quite some padding around the
drawing. Is there a way to remove that padding and only save the
"true bounding box"?
I know I can adjust that manually, but that would probably require
constant tweaking if e.g. the font size of the labels and title
changes.
Cheers,
 Colin
From: Willi R. <ri...@c-...> - 2006年06月02日 08:23:23
Hi,
is there a way to display confidence intervals other than using Polygon 
like, e.g.
ax = subplot(111)
# make the shaded region
upperPoints = zip(runs, upperConf)
upperPoints.reverse()
verts = [(runs[0], upperConf[0])] + zip(runs, lowerConf) + upperPoints
poly = Polygon(verts, facecolor=0.6, edgecolor=0.6)
ax.add_patch(poly)
Best regards,
wr
From: jules h. <hu...@ha...> - 2006年06月02日 07:56:39
Darned slow email tool; chose the wrong message
Slow brain in checking actual "send to" address
My apologies.
Jules
From: jules h. <hu...@ha...> - 2006年06月02日 07:55:03
Enjoy your trip Ma
I need to look for a Bike Friday for Steve.
He said he was interested/willing to think about loaded touring.
He can be the mule!
Jules
From: John H. <jdh...@ac...> - 2006年06月02日 02:46:11
>>>>> "Jonathan" == Jonathan Taylor <jon...@st...> writes:
 Jonathan> Thanks for all the replies -- I'm not such a huge fan,
 Jonathan> either, but a collaborator of mine is....
Ahh collaborators, can't live with 'em, can't dissuade them from excel
chart junk.
JDH
From: Jonathan T. <jon...@st...> - 2006年06月02日 02:14:56
Thanks for all the replies -- I'm not such a huge fan, either, but a 
collaborator of mine is....
-- Jonathan
John Hunter wrote:
>>>>>>"Jonathan" == Jonathan Taylor <jon...@st...> writes:
>>>>>> 
>>>>>>
>
> Jonathan> Hi,
>
> Jonathan> Was wondering if anyone knows if there was any way to
> Jonathan> reproduce this kind of example:
>
> Jonathan> http://www.mps.mpg.de/dislin/exa_bars3d.html
>
> Jonathan> i.e. a 3d barplot.
>
>Definitely not with matplotlib currently. Personally, I don't like
>these plots. One way to represent this data is with three calls to
>scatter, each with a different color, and use marker size for the
>z-axis.
>
>JDH
>
>
>_______________________________________________
>Matplotlib-users mailing list
>Mat...@li...
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
>
-- 
------------------------------------------------------------------------
I'm part of the Team in Training: please support our efforts for the
Leukemia and Lymphoma Society!
http://www.active.com/donate/tntsvmb/tntsvmbJTaylor
GO TEAM !!!
------------------------------------------------------------------------
Jonathan Taylor Tel: 650.723.9230
Dept. of Statistics Fax: 650.725.8977
Sequoia Hall, 137 www-stat.stanford.edu/~jtaylo
390 Serra Mall
Stanford, CA 94305
From: John H. <jdh...@ac...> - 2006年06月02日 00:46:26
>>>>> "Jonathan" == Jonathan Taylor <jon...@st...> writes:
 Jonathan> Hi,
 Jonathan> Was wondering if anyone knows if there was any way to
 Jonathan> reproduce this kind of example:
 Jonathan> http://www.mps.mpg.de/dislin/exa_bars3d.html
 Jonathan> i.e. a 3d barplot.
Definitely not with matplotlib currently. Personally, I don't like
these plots. One way to represent this data is with three calls to
scatter, each with a different color, and use marker size for the
z-axis.
JDH
1 message has been excluded from this view by a project administrator.

Showing 14 results of 14

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