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






Showing 9 results of 9

From: Ryan K. <rya...@co...> - 2005年07月11日 23:29:03
A while back I asked whether or not I could set the legend fontsize from 
the rc file and John asked me to make it possible. I think I have it 
working, but don't know how to check it in to CVS and need some one else 
to try it. I have made two changes to legend.py:
1. added from matplotlib import rcParams (added at line 29)
2. changed the default parameters to the __init__ method to read from 
the rc:
prop = FontProperties(size=rcParams['legend.fontsize']),
(change line 116)
I made one change to __init__.py. A default value needs to be added for 
legend.fontsize:
#legend properties
'legend.fontsize' : ['small',validate_fontsize],
(lines 645-646)
 From there I added the following to my matplotlibrc file and it seems 
to work:
### Legend
legend.fontsize : 16
(lines 149-150)
Please let me know what else I need to do. I don't think I have access 
to upload stuff to sourceforge (nor am I sure I should be given that power).
Ryan
From: Danny S. <sh...@la...> - 2005年07月11日 18:20:35
Howdy, I'm struggling to understand the different intents between imshow 
and pcolor. They have different
return types but both seem to do pretty much the same thing. Pcolor seems 
to do non-rectangular domains
and bordered pixels if you want. Is there more to the story?
TIA,
Danny
From: Johnp <jo...@pi...> - 2005年07月11日 17:16:35
Chris,
Thanks for the suggestions. I remember now reading about RSPython, but I
hadn't considered it.
I guess one of my goals is to be able to share my analysis tools with my
coworkers, and requiring them to set up R to use the tools adds some
headaches. (Unless there's an "R2exe" I haven't heard about!) 
Python+matplotlib+wxpython+py2exe would be great for sharing my tools with
other users.
My datasets can be large for a PC, so having to move the data between
numarray and R probably means making copies and swapping, unless I'm careful
about subsetting on the numarray side before handing off data to be Trellis
plotted. Also, some of the data I'm analyzing is written by (black-box)
measurement equipment, and I've found it tricky to implement a pure-R file
reader in some cases. Python+numarray seems better with respect to file
I/O.
I really like the interactivity and the quality of the matplotlib backends,
and I'd be giving those up taking the RSPython route. However, R can write
Enhanced Metafiles, which I use quite a bit since we're an MS Office shop.
You're right that a lot of the expressiveness in S+Trellis is in the formula
notation, and that would be some work to replicate in Python. For the
relatively simple stuff I do, RecArrays seem like a good equivalent to
data.frames, and subscripting RecArrays can function like a formula spec in
Trellis.
So, those are my thoughts on what I'd gain and lose by going to
Python+matplotlib from R. If I've got some misconceptions or if there are
other options I've not considered, I'd like to know.
Best regards,
John
--------- Original Message --------
From: "Chris Neff" <ca...@gm...>
To: "John Pitney" <jo...@pi...>
Cc: mat...@li...
Subject: Re: [Matplotlib-users] Trellis-style plots
Date: 11/07/05 04:48
Hi John,
Any reason why you need to use matplotlib to do this? In my view of
things it would be easier to use R itself with the RSPython package:
http://www.omegahat.org/RSPython/index.html.
This way you can get whatever you want done in python and then just
plot the results in R. This is vastly preferable as there is no
formula expressions in Python as there are in R, and that is 95% of
Trellis's power. I guess you could cook up the formula capability
yourself, but why bother?
If you could explain a little more on what you want to do, I could
probably give the best course of action.
-Chris Neff
On 10/07/05, John Pitney <jo...@pi...> wrote:
> Hi,
>
> I'm a new user of matplotlib, and I'm trying to learn how to do some of
> the things I'm accustomed to doing in the R environment with matplotlib
> and numarray. I find R's Lattice implentation of Trellis graphics very
> useful in my industrial data analysis work.
>
> For those unfamiliar with Trellis, here's the user manual:
> http://www.stat.purdue.edu/~wsc/papers/trellis.user.pdf
>
> Does anyone have any experience with making conditioned plots or
> scatterplot matrices with matplotlib? I'd like to try them out with
> matplotlib and would appreciate seeing any code that's already out there.
>
> Thanks to the matplotlib developers for what looks like a great tool!
>
> Best regards,
> John
From: Jeff P. <jef...@se...> - 2005年07月11日 15:30:07
Hello, 
This subject caught my eye. I'm also using WXAgg as a backend and I'm
plotting approximately 500 points. I am using markers. I'm not using
antialiasing or interactive mode. My operating system is windows XP. It
takes approximately 1-3 seconds to make a simple plot.
-----Original Message-----
From: mat...@li...
[mailto:mat...@li...] On Behalf Of
mat...@li...
Sent: Sunday, July 10, 2005 8:34 PM
To: mat...@li...
Subject: Matplotlib-users digest, Vol 1 #695 - 4 msgs
Send Matplotlib-users mailing list submissions to
	mat...@li...
To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/matplotlib-users
or, via email, send a message with subject or body 'help' to
	mat...@li...
You can reach the person managing the list at
	mat...@li...
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Matplotlib-users digest..."
Today's Topics:
 1. performance problems (Donour Sizemore)
 2. Re: performance problems (John Hunter)
 3. Re: 0.83 iPython problem (John Hunter)
 4. Trellis-style plots (John Pitney)
--__--__--
Message: 1
To: mat...@li...
From: Donour Sizemore <do...@uc...>
Date: 2005年7月10日 00:58:26 -0500
Subject: [Matplotlib-users] performance problems
I'm having pretty serious performance problems using the wxpython
backend. On linux, it takes about 1-2 seconds to render a small
window with 1000 data points. On my mac laptop, it takes about three
times as long.
I've verified that interactive mode is off, antialiasing is disabled,
and the machine is otherwise idle. I'm using:
matplotlib 0.82
wxwindows 2.6.0.0
numeric 23.8
Profiling shows that all the time is being sucked into a couple
of axis drawing functions by way of OnPaint.
Any idea why it's so slow?
thanks
donour
|Donour Sizemore do...@cs...|
|Technical Programmer & Numerical Analyst |
|Economics Research Center Ph: 773-834-4399 |
|University of Chicago Office: Walker 303-a |
--__--__--
Message: 2
To: Donour Sizemore <do...@uc...>
Cc: mat...@li...
Subject: Re: [Matplotlib-users] performance problems
From: John Hunter <jdh...@ac...>
Date: 2005年7月10日 08:47:20 -0500
>>>>> "Donour" == Donour Sizemore <do...@uc...> writes:
 Donour> I'm having pretty serious performance problems using the
 Donour> wxpython backend. On linux, it takes about 1-2 seconds to
 Donour> render a small window with 1000 data points. On my mac
 Donour> laptop, it takes about three times as long.
 Donour> I've verified that interactive mode is off, antialiasing
 Donour> is disabled, and the machine is otherwise idle. I'm using:
 Donour> matplotlib 0.82 wxwindows 2.6.0.0 numeric 23.8
 Donour> Profiling shows that all the time is being sucked into a
 Donour> couple of axis drawing functions by way of OnPaint.
 Donour> Any idea why it's so slow?
Can you post a complete script that is slow for you? If it is a
marker plot and you are using 'backend : WX', it is likely to be pretty
slow because of a problem with marker drawing that was fixed for the
*Agg backends.
Also, are you using wx or wxagg? The WXAgg backend is likely faster
and certainly will produce better output with more features.
After you come up with your test script, please run it with
--verbose-helpful and post the script and the output.
Thanks,
JDH
--__--__--
Message: 3
To: Ryan Krauss <rya...@co...>
Cc: mat...@li...
Subject: Re: [Matplotlib-users] 0.83 iPython problem
From: John Hunter <jdh...@ac...>
Date: 2005年7月10日 08:50:28 -0500
>>>>> "Ryan" == Ryan Krauss <rya...@co...> writes:
 Ryan> I just updated to 0.83 and I am now having a problem with
 Ryan> Ipython. Running the following code as a script produces
 Ryan> the error message below. I am running Python 2.3.5 on
 Ryan> Windows XP with Ipython 0.6.15. I get the same message
 Ryan> regardless of whether or not I set ion().
 Ryan> How do I fix this?
Update from matplotlib CVS -- this bug was reported on Friday in the
thread "ipython and matplotlib-0.83" and will be included in a bug-fix
release next week.
http://sourceforge.net/mailarchive/message.php?msg_id=12305161
JDH
--__--__--
Message: 4
Date: 2005年7月10日 21:41:02 -0500
From: John Pitney <jo...@pi...>
To: mat...@li...
Subject: [Matplotlib-users] Trellis-style plots
Hi,
I'm a new user of matplotlib, and I'm trying to learn how to do some of 
the things I'm accustomed to doing in the R environment with matplotlib 
and numarray. I find R's Lattice implentation of Trellis graphics very 
useful in my industrial data analysis work.
For those unfamiliar with Trellis, here's the user manual:
http://www.stat.purdue.edu/~wsc/papers/trellis.user.pdf
Does anyone have any experience with making conditioned plots or 
scatterplot matrices with matplotlib? I'd like to try them out with 
matplotlib and would appreciate seeing any code that's already out
there.
Thanks to the matplotlib developers for what looks like a great tool!
Best regards,
John
--__--__--
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
End of Matplotlib-users Digest
From: John H. <jdh...@ac...> - 2005年07月11日 14:44:12
This fixes (we hope) the ipython run bug reported last week on the
mailing list.
https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474&release_id=340606
JDH
From: Gary R. <gr...@bi...> - 2005年07月11日 12:49:34
Well, I spoke too soon about this.
Apologies for saying tex_demo.py works under Win2k now. Unfortunately, 
only the png file backend rendering works and I've also only tried 
viewing in TkAgg. When I try saving the .eps, which is presumably what 
most people would want, it bombs out. I'm strictly a pdflatex user, 
hence my not trying the eps output until now.
Again, sorry for anyone wanting to use this, but you'll have to wait for 
more fixes,
Gary
Gary Ruben wrote:
> Hi John,
> thanks for the help pointing to the area to look at.
> I've made some progress on this. Just replying here rather than the dev 
> list to keep this thread together.
> 
> On Win98, running "dvipng --version" returms
> 
> DVIPNG.EXE (dvipng) 1.1
> kpathsea version 3.3.2
> Copyright (C) 2002-2004 Jan-+ke Larsson.
> There is NO warranty. You may redistribute this software
> under the terms of the GNU General Public License.
> For more information about these matters, see the files
> named COPYING and dvipng.c.
> 
> On Win2k it is lower case, like in linux.
> 
> The other problem is that Windows doesn't know about ' characters in 
> command-line commands, so when calling latex and dvipng I changed "''" 
> sequences to '""' to keep windows happy. I can't remember whether linux 
> is happy with this, but I'm sure you'll know. You may have to treat the 
> two OSes differently.
> 
> After making these changes it works in Win2k. Curiously there's 
> something nasty going on in Win98 still where it gets partway through 
> the tex demo and freezes saying there are system resource problems. I 
> suspect this is to do with pipes not being flushed, but I'm unlikely to 
> have time to look at this for a few weeks (I've got a 6 hour quantum 
> field theory exam coming up - eek).
> It would be worth incorporating the changes because it should get most 
> Windows users going with TeX. Note also that I'm using the MiKTeX 
> distribution, although I would expect other TeX distros to be fine.
> In summary, to get TeX working under Win2k I made the following changes:
> 
> Changed line:
> if line.startswith('dvipng '):
> to
> if line.lower().startswith('dvipng'):
> 
> Changed line:
> command = "latex -interaction=nonstopmode '%s'"%fname
> to
> command = 'latex -interaction=nonstopmode "%s"'%fname
> 
> Changed line:
> command = "dvipng -bg Transparent -fg 'rgb 0.0 0.0 0.0' -D %d -T 
> tight -o %s %s"% (dpi, pngfile, dvifile)
> to
> command = 'dvipng -bg Transparent -fg "rgb 0.0 0.0 0.0" -D %d -T 
> tight -o %s %s'% (dpi, pngfile, dvifile)
> 
> 
> regards,
> Gary
From: Werner F. B. <wer...@fr...> - 2005年07月11日 10:50:07
Hi All,
On a client machine (XP) I get the following traceback. I can't 
recreate this either on my Win XP or my Win 2000 machine.
Does anyone know what DLL numeric is trying to load here.
Thanks for any hints/help on this.
Best regards
Werner
Traceback (most recent call last):
 File "twcbF.pyo", line 1598, in OnToolbarChart
 File "frameplotmpl.pyo", line 20, in ?
 File "matplotlib\numerix\__init__.pyo", line 58, in ?
 File "Numeric.pyo", line 91, in ?
 File "multiarray.pyo", line 9, in ?
 File "multiarray.pyo", line 7, in __load
ImportError: DLL load failed: Le module spécifié est introuvable.
From: Chris N. <ca...@gm...> - 2005年07月11日 04:47:19
Hi John,
Any reason why you need to use matplotlib to do this? In my view of
things it would be easier to use R itself with the RSPython package:
http://www.omegahat.org/RSPython/index.html.
This way you can get whatever you want done in python and then just
plot the results in R. This is vastly preferable as there is no
formula expressions in Python as there are in R, and that is 95% of
Trellis's power. I guess you could cook up the formula capability
yourself, but why bother?
If you could explain a little more on what you want to do, I could
probably give the best course of action.
-Chris Neff
On 10/07/05, John Pitney <jo...@pi...> wrote:
> Hi,
>=20
> I'm a new user of matplotlib, and I'm trying to learn how to do some of
> the things I'm accustomed to doing in the R environment with matplotlib
> and numarray. I find R's Lattice implentation of Trellis graphics very
> useful in my industrial data analysis work.
>=20
> For those unfamiliar with Trellis, here's the user manual:
> http://www.stat.purdue.edu/~wsc/papers/trellis.user.pdf
>=20
> Does anyone have any experience with making conditioned plots or
> scatterplot matrices with matplotlib? I'd like to try them out with
> matplotlib and would appreciate seeing any code that's already out there.
>=20
> Thanks to the matplotlib developers for what looks like a great tool!
>=20
> Best regards,
> John
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by the 'Do More With Dual!' webinar happen=
ing
> July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
> core and dual graphics technology at this free one hour event hosted by H=
P,
> AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: John P. <jo...@pi...> - 2005年07月11日 02:41:04
Hi,
I'm a new user of matplotlib, and I'm trying to learn how to do some of 
the things I'm accustomed to doing in the R environment with matplotlib 
and numarray. I find R's Lattice implentation of Trellis graphics very 
useful in my industrial data analysis work.
For those unfamiliar with Trellis, here's the user manual:
http://www.stat.purdue.edu/~wsc/papers/trellis.user.pdf
Does anyone have any experience with making conditioned plots or 
scatterplot matrices with matplotlib? I'd like to try them out with 
matplotlib and would appreciate seeing any code that's already out there.
Thanks to the matplotlib developers for what looks like a great tool!
Best regards,
John

Showing 9 results of 9

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