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

Showing 4 results of 4

From: Benjamin R. <ben...@ou...> - 2010年07月05日 17:10:18
I should first note that the way to do animations in matplotlib will
probably be improved soon, the current methods should still be valid.
Ok, the way how I understand how blitting works is that a copy of the static
background is made before any of the "sprites" are drawn. That static
background is then redrawn at each frame to avoid having to do a complete
re-render of it.
So, if you can display a particular image to a plot before calling
copy_from_bbox(), but after the canvas.draw() call, then the animation
should work as you would like with blitting, and you won't need to repeat
the function call to plot the background in the animation.
Note, I have not tried this, so please let us know how this works for you.
Ben Root
On Mon, Jul 5, 2010 at 5:45 AM, German Ocampo <ger...@gm...> wrote:
> Good morning
>
> I have a question regarding to animation in matplotlib using Blit.How
> can I modify the example animation_blit_qt4.py that is in the
> matplotlib website, in order to animate data, but instead of a white
> background I want to have an image (tif or jpg)?
>
> Many thanks for your help
>
> German
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: German O. <ger...@gm...> - 2010年07月05日 10:45:36
Good morning
I have a question regarding to animation in matplotlib using Blit.How
can I modify the example animation_blit_qt4.py that is in the
matplotlib website, in order to animate data, but instead of a white
background I want to have an image (tif or jpg)?
Many thanks for your help
German
From: Stephen T. <obs...@ho...> - 2010年07月05日 08:32:18
Hi, I am having trouble installing matplotlib. I have OS X 10.5 with Python 2.6
 downloaded and installed from python.org.
 (10.5 came with Apple
 Python 2.5). I've also installed NumPy and SciPy for Python 2.6.
I've
 tried EasyInstall, svn, and dmg. The dmg expects Apple Python 2.6 so 
that's out. For the EasyInstall and svn routes I think I must be missing
 some external libraries? Below are some snippets of warnings/error 
messages:
from EasyInstall:
$ easy_install matplotlib
 
 matplotlib: 0.99.3
warning: no files found matching 
'MANIFEST'
warning: no files found matching 'lib/mpl_toolkits'
ld 
warning: in /opt/local/lib/libfreetype.dylib, file is not of required 
architecture
ld warning: in /opt/local/lib/libz.dylib, file is not of
 required architecture
ld warning: in 
/opt/local/lib/libfreetype.dylib, file is not of required architecture
ld
 warning: in /opt/local/lib/libz.dylib, file is not of required 
architecture
ld warning: in /opt/local/lib/libpng12.dylib, file is 
not of required architecture
ld warning: in 
/opt/local/lib/libz.dylib, file is not of required architecture
ld 
warning: in /opt/local/lib/libfreetype.dylib, file is not of required 
architecture
ld warning: in /opt/local/lib/libz.dylib, file is not of
 required architecture
ld: in /opt/local/lib/libxml2.2.dylib, file is
 not of required architecture for architecture ppc
collect2: ld 
returned 1 exit status
ld
 warning: duplicate dylib /opt/local/lib/libz.1.dylib
lipo: can't 
open input file: 
/var/folders/Yh/Yh3On1j+FXW+r-334Wk-vk+++TI/-Tmp-//ccWD9nm4.out (No such
 file or directory)
error: Setup script exited with error: command 
'c++' failed with exit status 1
from SVN:
$ python setup.py build
 
matplotlib: 1.0.svn
ld warning: in /opt/local/lib/libfreetype.dylib, 
file is not of required architecture
ld warning: in 
/opt/local/lib/libz.dylib, file is not of required architecture
ld: 
in /opt/local/lib/libxml2.2.dylib, file is not of required architecture 
for architecture ppc
collect2: ld returned 1 exit status
ld 
warning: duplicate dylib /opt/local/lib/libz.1.dylib
lipo: can't open
 input file: 
/var/folders/Yh/Yh3On1j+FXW+r-334Wk-vk+++TI/-Tmp-//cc6cv190.out (No such
 file or directory)
error: command 'c++' failed with exit status 1
and
 in both throughout the messages there are references to "linker input 
file unused because linking not done" for
powerpc-apple-darwin9-gcc-4.0.1
 and i686-apple-darwin9-gcc-4.0.1.
I'd tried the EPD version also
 (and had it working), but then EasyInstall would direct me to their repositories (for which I did not have a password) so I could not download and install RPy2 and other modules (easily), so I decided to build up 
from individual components...
Any advice you can provide on 
helping me complete the matplotlib installation? I think after this I 
will have the basics for data analysis in Python (with NumPy and SciPy).
Thanks!
Stephen
 		 	 		 
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 
From: Benjamin R. <ben...@ou...> - 2010年07月05日 02:39:25
Jeremy,
The pcolor function can take a vmin and a vmax parameter if you wish to
control the colorscaling. In addition, you can use a special array
structure called a "masked array" to have pcolor ignore "special" values.
Assuming your data is 'vals':
vals_masked = numpy.ma.masked_array(vals, vals == 0.0)
Note that depending on your situation, doing an equality with with a
floating point value probably isn't very reliable, so be sure to test and
modify to suit your needs. 'vals_masked' can then be passed to pcolor
instead of vals.
I hope this helps,
Ben Root
On Wed, Jun 30, 2010 at 9:39 AM, Jeremy Conlin <jlc...@gm...> wrote:
> I am trying to plot some data over a mesh using the plot_surface
> method. However when I plot my data, everything is the same color
> when I expected to get a nice rainbow of colors as in the example:
> http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo.html
>
> I have attached a simple script to show what I did as well as the
> result. Essentially, I just copied the above demo, but put my own
> data in. I think the problem arises because I have "holes" in my
> data, or areas where the data is zero. These zeros throw the scaling
> off so I tried to eliminate their effect, but this messed everything
> up.
>
> Essentially my question is: how can I get a nice color distribution
> while at the same time avoid the extreme scaling issues associated
> with some data being zero (while all the other data is ~16)?
>
> Thanks,
> Jeremy
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

Showing 4 results of 4

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