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



Showing results of 480

<< < 1 .. 15 16 17 18 19 20 > >> (Page 17 of 20)
From: Phil A. <pa...@eo...> - 2009年09月04日 21:56:41
Thanks for all the suggestions,
for future reference here's a summary of my results producing
various kinds of quicktime compatible videos from matplotlib.
I used Ubuntu Jaunty and had the medibuntu codecs installed.
The target audience is undergraduates, so straightforward is
good.
Executive summary:
either MOV or mjpeg work with quicktime 7.6.2 as-is. Ogg-vorbis
is the compression winner, so requiring that students
install vlc is another option for large animations.
1) MOV
ffmpeg -r 60 -i shum%05d.png -vcodec libx264 -b 2000k out.mov
http://clouds.eos.ubc.ca/~phil/video/samples/out.mov
size: 0.9 Mbytes
note: works with my (patient) colleague's stock QT 7.6.2
2) FLV
ffmpeg -r 60 -i shum%05d.png -vcodec libx264 -b 2000k out.flv
http://clouds.eos.ubc.ca/~phil/video/samples/out.flv
size: 0.9 Mbytes
note: Safari tried to open this as a text file
3) WMV2:
ffmpeg -r 60 -i shum%05d.png -vcodec wmv2 -b 2000k out.avi
http://clouds.eos.ubc.ca/~phil/video/samples/out.avi
size: 1.1 Mbytes
note: no luck getting quicktime to recognize this, even
 after we installed the codecs from
 
http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx
4) jpeg:
mencoder -nosound -ovc lavc \
 -lavcopts vbitrate=5000:vcodec=mjpeg \
 -mf type=png:fps=15 -o moviejpeg.avi mf://\*.png -v
http://clouds.eos.ubc.ca/~phil/video/samples/moviejpeg.avi
size: 5.7 Mbytes
note: works, although not svelt
5) ogv
ffmpeg2theora --nosound --optimize --width 800 --height 600 
--inputfps=15 --aspect 4:3 shum%05d.png -o movie.ogv
http://clouds.eos.ubc.ca/~phil/video/samples/movie.ogv
size: 0.33 Mbytes (!)
note: we followed the install instructions at 
http://www.theora.org/downloads/
 but Safari didn't recognize the ogv suffix, and didn't
 offer to associate it with a player
From: Brent P. <bpe...@gm...> - 2009年09月04日 18:10:15
On Fri, Sep 4, 2009 at 10:11 AM, Westly Ward<son...@gm...> wrote:
> Hi. I need some help creating a 3d wireframe in matplotlib in python. Here
> is my code.
>
> Code:
> from __future__ import division
> import matplotlib.pyplot as plt
> from numpy import *
>
> fig = plt.figure()
> from mpl_toolkits.mplot3d import Axes3D
> ax = Axes3D(fig)
> xlist = []
> ylist = []
> zlist = []
> for x in range(1, 100) :
>  for y in range(1, 100) :
>    xlist.append(x)
>    ylist.append(y)
>    zlist.append(x/y)
> numpyx = array(xlist)
> numpyy = array(ylist)
> numpyz = array(zlist)
> ax.plot_wireframe(numpyx, numpyy, numpyz)
> ax.set_xlabel('X Label')
> ax.set_ylabel('Y Label')
> ax.set_zlabel('Z Label')
> plt.show()
>
>
> Traceback (most recent call last):
> File "C:\Users\Westly\Desktop3円dimage.py", line 19, in <module>
>  ax.plot_wireframe(numpyx, numpyy, numpyz)
> File "C:\Python25\Lib\site-packages\mpl_toolkits\mplot3d\axes3d.py", line
> 684, in plot_wireframe
>  rows, cols = Z.shape
> ValueError: need more than 1 value to unpack
>
> How exactly do I give it my arrays?
> Thanks in advance for any help.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
how about:
from __future__ import division
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
from mpl_toolkits.mplot3d import Axes3D
ax = Axes3D(fig)
ys, xs = np.mgrid[1:100, 1:100]
ax.plot_wireframe(xs, ys, xs/ys)
plt.show()
From: Westly W. <son...@gm...> - 2009年09月04日 17:12:06
Hi. I need some help creating a 3d wireframe in matplotlib in python. Here
is my code.
Code:
from __future__ import division
import matplotlib.pyplot as plt
from numpy import *
fig = plt.figure()
from mpl_toolkits.mplot3d import Axes3D
ax = Axes3D(fig)
xlist = []
ylist = []
zlist = []
for x in range(1, 100) :
 for y in range(1, 100) :
 xlist.append(x)
 ylist.append(y)
 zlist.append(x/y)
numpyx = array(xlist)
numpyy = array(ylist)
numpyz = array(zlist)
ax.plot_wireframe(numpyx, numpyy, numpyz)
ax.set_xlabel('X Label')
ax.set_ylabel('Y Label')
ax.set_zlabel('Z Label')
plt.show()
Traceback (most recent call last):
 File "C:\Users\Westly\Desktop3円dimage.py", line 19, in <module>
 ax.plot_wireframe(numpyx, numpyy, numpyz)
 File "C:\Python25\Lib\site-packages\mpl_toolkits\mplot3d\axes3d.py", line
684, in plot_wireframe
 rows, cols = Z.shape
ValueError: need more than 1 value to unpack
How exactly do I give it my arrays?
Thanks in advance for any help.
From: Jae-Joon L. <lee...@gm...> - 2009年09月04日 16:35:59
In [162]: print "$\beta$"
eta$
In [163]: print r"$\beta$"
$\beta$
use the raw sting for math expression.
Regards,
-JJ
On Fri, Sep 4, 2009 at 12:06 PM, Nicolas
Chopin<nic...@br...> wrote:
> Hi list,
> when I do:
> hist(randn(100)); xlabel('$\gamma$')
> things work as expected.
> However, if I try:
> hist(randn(100)); xlabel('$\beta$')
> then either I get an error, or I get the label "eta" under the plot.
> Other letters seem to trigger this: tau, alpha, rho, maybe others.
> This problems wether text.usetex is set to True or not (in matplolibrc file).
>
> Version: 0.98.5.2 (Ubuntu Jaunty, ipython 0.9.1 shell).
>
> Has anyone had the same problem, and is there any fix?
> Sorry if this has been reported before, I tried to find it, but
> nothing came out.
>
> Thanks in advance
>
> --
> ________________________________________________________
> Nicolas Chopin
> ENSAE
> 3, Avenue Pierre Larousse
> 92245 Malakoff CEDEX
> FRANCE
> tel +33 1 41 17 65 22 | fax +33 1 41 17 38 52
> http://www.crest.fr/pageperso/Nicolas.Chopin/Nicolas.Chopin.htm
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Nicolas C. <nic...@br...> - 2009年09月04日 16:07:05
 Hi list,
when I do:
hist(randn(100)); xlabel('$\gamma$')
things work as expected.
However, if I try:
hist(randn(100)); xlabel('$\beta$')
then either I get an error, or I get the label "eta" under the plot.
Other letters seem to trigger this: tau, alpha, rho, maybe others.
This problems wether text.usetex is set to True or not (in matplolibrc file).
Version: 0.98.5.2 (Ubuntu Jaunty, ipython 0.9.1 shell).
Has anyone had the same problem, and is there any fix?
Sorry if this has been reported before, I tried to find it, but
nothing came out.
Thanks in advance
-- 
________________________________________________________
Nicolas Chopin
ENSAE
3, Avenue Pierre Larousse
92245 Malakoff CEDEX
FRANCE
tel +33 1 41 17 65 22 | fax +33 1 41 17 38 52
http://www.crest.fr/pageperso/Nicolas.Chopin/Nicolas.Chopin.htm
From: Wolfgang K. <wke...@go...> - 2009年09月04日 09:52:54
Hi,
I have found a bug that might or might not be related to my setup, 
when building matplotlib from svn:
When building I get the following error:
In file included from src/ft2font.h:13,
 from src/ft2font.cpp:1:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ 
ftheader.h: No such file or directory
--------
I can solve this problem by making a soft link from /usr/local/include/ 
freetype2/freetype to /usr/local/include/. It doesnt seem to know that 
there is a freetype2 directory and then a freetype directory.
I hope that helps
 Wolfgang
From: Fabrice S. <si...@lm...> - 2009年09月04日 09:48:47
Le jeudi 03 septembre 2009 à 20:16 -0500, John Hunter a écrit :
> On Thu, Sep 3, 2009 at 8:04 PM, Alan G Isaac<ala...@gm...> wrote:
> > The default download from the Matplotlib page
> > link to http://sourceforge.net/projects/matplotlib/
> > which once again highlights basemap. (I think
> > this was fixed at one point.)
> 
> I'm not seeng this, nor am I seeing basemap settings in the File
> Manager which would trigger this. Of course, the default download is
> platform specific, which may be why I am not seeing this, so please
> give us as much info as possible about your platform (mainly the OS)
> 
> When I click on the green download button at
> http://sourceforge.net/projects/matplotlib using mac OSX 10.5, I get
> redirected to the mpl 0.99 OSX download::
> 
> https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99/matplotlib-0.99.0-py2.5-macosx10.5.dmg/download
Strangely, the green button points to
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99/matplotlib-0.99.0-py2.5-macosx-10.3-i386.egg/download
when I browse on a linux (debian) machine with epiphany (which uses
gecko, the firefox engine). Why macosx ?
-- 
Fabrice Silva
Laboratory of Mechanics and Acoustics - CNRS
31 chemin Joseph Aiguier, 13402 Marseille, France.
From: Auré G. <aur...@ya...> - 2009年09月04日 09:18:50
Dear all,
I recently cried for help (see below) but sadly didn't get any answer... This problem is really a bottleneck for me and if I must find a solution... Can anyone PLEAAAAAAAAASE point me in the right direction ? 
I recently bumped into a problem while trying to display
imshow images (2048x2048 pix) in a GUI based on TkAgg (matplotib0.91.2,
python 2..4..4, numpy1.0.4). In brief, building the image with imshow is
Ok, but the call to show() or draw() takes about 1.2 s on my system
(XP, 2.8Ghz, 2Go ram). After reading a lot of posts and trying out a
few things, I turned to the Animation_blit_tk.py example and modified
it accordingly (code attached below). In the end, the display is still
not much faster using this method (still in the order of 1.2 s as
indicated by the result below).
Could any one tel me whether I'm doing something wrong ? 
As
far as I understand, at least in my Tk GUI, the limiting step using the
ImageTk.FigureCanvasTkAgg is the call to draw() or draw_artist(). I
read some comments from John regarding TkAgg being slow in some cases
but couldn't find a definite answer.
Any hint would be much appreciated....
Cheers,
Aure
--------
# For detailed comments on animation and the techniqes used here, see
# the wiki entry http://www.scipy.org/Cookbook/Matplotlib/Animations
import matplotlib
matplotlib.use('TkAgg')
import sys
import pylab as p
#import matplotlib.numerix as nx
import time
from FileUtils10 import fileHandling
# for profiling
tstart = time.time()
tprevious = time.time()
fnamelist = ['fname1','fname2','fname3']
ax = p.subplot(111)
canvas = ax.figure.canvas
print 't1 ',time.time()-tprevious
tprevious = time.time()
# create the initial line
dataarr = fileHandling(fnamelist[0]).readSpecial()
#print dataarr.dtype => numpy dtype uint16
#dataarr = dataarr.astype('uint8')
print 't2 ',time.time()-tprevious
tprevious = time.time()
image = p.imshow(dataarr, animated=True)
print 't3 ',time.time()-tprevious
tprevious = time.time()
def run(*args):
 tprevious = time.time()
 background = canvas.copy_from_bbox(ax.bbox)
 print 't4 ',time.time()-tprevious
 tprevious = time.time()
 while 1:
 #print fnamelist[run.cnt]
 # restore the clean slate background
 canvas.restore_region(background)
 print 't5 ',time.time()-tprevious
 tprevious = time.time()
 # update the data
 dataarr = fileHandling(fnamelist[run.cnt]).readSpecial()
 print 't6 ',time.time()-tprevious
 tprevious = time.time()
 image.set_data(dataarr)
 print 't7 ',time.time()-tprevious
 tprevious = time.time()
 # just draw the animated artist
 ax.draw_artist(image)
 print 't8 ',time.time()-tprevious
 tprevious = time.time()
 # just redraw the axes rectangle
 canvas.blit(ax.bbox)
 print 't9 ',time.time()-tprevious
 tprevious = time.time()
 if fnamelist[run.cnt] == fnamelist[-1]:
 # print the timing info and quit
 print 'total time:' , time.time()-tstart
 print 'FPS:' , 1000./(time.time()-tstart)
 p.close('all')
 sys.exit()
 run.cnt += 1
run.cnt = 0
p.subplots_adjust(left=0.3, bottom=0.3) # check for flipy bugs
p.grid() # to ensure proper background restore
manager = p.get_current_fig_manager()
manager.window.after(100, run)
p.show()
====
Results in:
t1 0.858999967575
t2 0.0320000648499
t3 1.31299996376
t4 0.0
t5 0.0
t6 0.0310001373291
t7 0.0
t8 1.18700003624
t9 0.0160000324249
t5 0.0
t6 0.0469999313354
t7 0.0
t8 1.17200016975
t9 0.0149998664856
t5 0.0
t6 0.047000169754
t7 0.0
t8 1.21899986267
t9 0.0
t5 0.0
t6 0.0460000038147
t7 0.0
t8 1.17199993134
t9 0.0
t5 0.0
t6 0.0469999313354
t7 0.0
t8 1.18700003624
t9 0.0160000324249
total time: 8.75
FPS: 114.285714286
 
From: Christian M. <mee...@im...> - 2009年09月04日 08:54:29
Hi,
I have the following code:
 pylab.pcolormesh(data, multialignment='center')
 xlocs, xlabels = pylab.xticks(range(0, data.shape[1]+1), xlabels)
 pylab.setp(xlabels, 'rotation', 70)
 pylab.colorbar()
 pylab.show()
where data is a 2D numpy array containing some masked values and
'xlabels' is - originally - a list of strings for the xlabels.
This gives me two problems:
- The "column" on the right is shown as blank, although this column has
valid data and
- the labels aren't placed below the center of a field, but below the
xticks. I would like to have them centered, below a field, as the ticks
are merely separators and not associated with any unit.
TIA
Christian
From: Andrew S. <str...@as...> - 2009年09月04日 08:06:14
Phil Austin wrote:
> Andrew Straw wrote:
> 
>> I use::
>>
>> ffmpeg -r 60 -i frame%05d.png -vcodec wmv2 -b 2000k out.avi
>>
>> 
>
> That's encouraging, thanks. I tried this and produced
>
> http://clouds.eos.ubc.ca/~phil/video/out.avi
>
> Just to confirm: the two OSX users down the hall get a "missing
> components" message from quicktime when they click on this file in
> firefox or safari, and
> are sent to a page that gives an undifferentiated list of extra codecs
> (divx, etc.).
Hmm. It plays fine on QuickTime 7.6.2 on Mac OS X 10.5.7 using Firefox 
3.5.2 for me. I don't remember installing any extra codecs for wmv, but 
I do remember installing the Theora codec.
> Do I need to tell them to install something like
> http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx
> or am I still missing some proprietary codec on my end? I'm happy to
> post the detailed ffmpeg output if it would provide any clues.
> 
Hmm, come to this of it, that does look familiar. I think I installed it 
at one point.
A colleague of mine managed to get .avi files with an mpeg4 codec 
variant encoded using ffmpeg or mencoder on linux that played in Mac and 
Windows versions of Adobe Reader and in the linux video players. I don't 
know whether this also required an additional codec.
Apple seems to push the h264 codec, so maybe that would be the best bet 
on Mac?
-Andrew
From: Vicent M. <uv...@gm...> - 2009年09月04日 07:51:10
Hi Matthias ,
thanks a lot for your explanations. They were very useful.
Vicent
-- 
Share what you know, learn what you don't.
From: Scott S. <sco...@gm...> - 2009年09月04日 06:21:49
> 2009年9月3日 Dave Draper <dd...@wi...>:
> Scott,
>
> Have you done any plots using boxplot?
>
> I am having an issue with the xaxis and trying to change the Date Formatter...
>
> Thanks,
>
> David
Hi David,
Please post questions to the mailing list, if you can clarify what
issues you are having (with a stand alone example) then I'm sure
you'll get help.
I guess you can specify the labels directly using something like:
import matplotlib.pyplot as plt
from matplotlib.dates import date2num
# dates is a sequence of datetime.datetime objects
# x is as per boxplot docstring
fig = plt.figure()
ax = fig.add_subplot(111)
ax.boxplot(x, positions=date2num(dates))
xlabels = []
for dt in dates:
 xlabels.append(dt.strftime('%Y/%m/%d/%H:00'))
ax.xaxis.set_ticklabels(xlabels)
If you want to use date formatters it looks like you might need to add
a second axis using twinx. Perhaps there is a better way?
Cheers,
Scott
From: william r. <wil...@gm...> - 2009年09月04日 04:12:59
I should mention that I tested 32 bit
On Thu, Sep 3, 2009 at 11:59 PM, Alan G Isaac <ala...@gm...> wrote:
> John Hunter wrote:
> > I'm not seeng this, nor am I seeing basemap settings in the File
> > Manager which would trigger this. Of course, the default download is
> > platform specific, which may be why I am not seeing this, so please
> > give us as much info as possible about your platform (mainly the OS)
> >
> > When I click on the green download button at
> > http://sourceforge.net/projects/matplotlib using mac OSX 10.5, I get
> > redirected to the mpl 0.99 OSX download:
>
>
> Windows Vista 64bit.
> I see
>
> http://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-0.99.4/basemap-0.99.4.win32-py2.6.exe/download
>
> Alan Isaac
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Alan G I. <ala...@gm...> - 2009年09月04日 03:59:23
John Hunter wrote:
> I'm not seeng this, nor am I seeing basemap settings in the File
> Manager which would trigger this. Of course, the default download is
> platform specific, which may be why I am not seeing this, so please
> give us as much info as possible about your platform (mainly the OS)
>
> When I click on the green download button at
> http://sourceforge.net/projects/matplotlib using mac OSX 10.5, I get
> redirected to the mpl 0.99 OSX download:
Windows Vista 64bit.
I see
http://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-0.99.4/basemap-0.99.4.win32-py2.6.exe/download
Alan Isaac
From: william r. <wil...@gm...> - 2009年09月04日 03:57:08
I saw this for windows when I was downloading .99. I just checked again in
Vista--I believe it did the same thing in XP
Cheers,
William
On Thu, Sep 3, 2009 at 9:16 PM, John Hunter <jd...@gm...> wrote:
> On Thu, Sep 3, 2009 at 8:04 PM, Alan G Isaac<ala...@gm...> wrote:
> > The default download from the Matplotlib page
> > link to http://sourceforge.net/projects/matplotlib/
> > which once again highlights basemap. (I think
> > this was fixed at one point.)
>
> I'm not seeng this, nor am I seeing basemap settings in the File
> Manager which would trigger this. Of course, the default download is
> platform specific, which may be why I am not seeing this, so please
> give us as much info as possible about your platform (mainly the OS)
>
> When I click on the green download button at
> http://sourceforge.net/projects/matplotlib using mac OSX 10.5, I get
> redirected to the mpl 0.99 OSX download::
>
>
> https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99/matplotlib-0.99.0-py2.5-macosx10.5.dmg/download
>
> JDH
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: John H. <jd...@gm...> - 2009年09月04日 01:16:22
On Thu, Sep 3, 2009 at 8:04 PM, Alan G Isaac<ala...@gm...> wrote:
> The default download from the Matplotlib page
> link to http://sourceforge.net/projects/matplotlib/
> which once again highlights basemap. (I think
> this was fixed at one point.)
I'm not seeng this, nor am I seeing basemap settings in the File
Manager which would trigger this. Of course, the default download is
platform specific, which may be why I am not seeing this, so please
give us as much info as possible about your platform (mainly the OS)
When I click on the green download button at
http://sourceforge.net/projects/matplotlib using mac OSX 10.5, I get
redirected to the mpl 0.99 OSX download::
 https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99/matplotlib-0.99.0-py2.5-macosx10.5.dmg/download
JDH
From: Alan G I. <ala...@gm...> - 2009年09月04日 01:03:45
The default download from the Matplotlib page
link to http://sourceforge.net/projects/matplotlib/
which once again highlights basemap. (I think
this was fixed at one point.)
fwiw,
Alan Isaac
From: George N. <gn...@go...> - 2009年09月03日 22:32:56
I have successfully used
mencoder -nosound -ovc lavc \
 -lavcopts vbitrate=5000:vcodec=mjpeg \
 -mf type=png:fps=30 -o moviename.avi mf://\*.png -v
I don't think the resulting files are very compressed, but they play
well with quicktime.
Another option for the mac is of course quicktime pro.
George Nurser.
2009年9月3日 Phil Austin <pa...@eo...>:
> Andrew Straw wrote:
>> I use::
>>
>> ffmpeg -r 60 -i frame%05d.png -vcodec wmv2 -b 2000k out.avi
>>
>
> That's encouraging, thanks. I tried this and produced
>
> http://clouds.eos.ubc.ca/~phil/video/out.avi
>
> Just to confirm: the two OSX users down the hall get a "missing
> components" message from quicktime when they click on this file in
> firefox or safari, and
> are sent to a page that gives an undifferentiated list of extra codecs
> (divx, etc.). Do I need to tell them to install something like
> http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx
> or am I still missing some proprietary codec on my end? I'm happy to
> post the detailed ffmpeg output if it would provide any clues.
>
> best, Phil
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Phil A. <pa...@eo...> - 2009年09月03日 22:05:37
Andrew Straw wrote:
> I use::
> 
> ffmpeg -r 60 -i frame%05d.png -vcodec wmv2 -b 2000k out.avi
> 
That's encouraging, thanks. I tried this and produced
http://clouds.eos.ubc.ca/~phil/video/out.avi
Just to confirm: the two OSX users down the hall get a "missing
components" message from quicktime when they click on this file in
firefox or safari, and
are sent to a page that gives an undifferentiated list of extra codecs
(divx, etc.). Do I need to tell them to install something like
http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx
or am I still missing some proprietary codec on my end? I'm happy to
post the detailed ffmpeg output if it would provide any clues.
best, Phil
From: Nicolas B. <nbi...@gm...> - 2009年09月03日 19:02:55
I produce all my movies in Ogg container + Theora compression. I use
ffmpeg2theora for that, available on all platforms:ffmpeg2theora --nosound
--optimize --width 1024 --height 768 --inputfps=15 --aspect 4:3
png/mov%04d.png -o movie.ogv
2009年9月3日 Andrew Straw <str...@as...>
> I use::
>
> ffmpeg -r 60 -i frame%05d.png -vcodec wmv2 -b 2000k out.avi
>
> And this works well to generate movies that play on Windows, Mac and
> Linux. As a bonus, these movies can be included in Latex/Beamer output
> using the movies15 package and played within the PDF via Adobe Reader on
> Mac and Windows. (I'm sure it's just a matter of time before the linux
> PDF readers can do this, too.) Finally I feel I am near a an end to my
> cross-platform, doesn't-suck presentation-with-movies quest. I only wish
> the movie format required to make this possible was less license and
> patent encumbered...
>
> I have been encoding on Ubuntu Jaunty with libraries from mediabuntu. I
> haven't tested the above using the plain Ubuntu ffmpeg yet.
>
> -Andrew
>
> Philip Austin wrote:
> > This isn't strictly a matplotlib question, but I'm hoping
> > dual mac/linux users can provide some advice on converting png
> > files to quicktime movies using mencoder on Ubuntu or Centos.
> > So far I've found that
> >
> > 1) starting with
> > http://matplotlib.sourceforge.net/examples/animation/movie_demo.html
> > using
> >
> > mencoder mf://*.png -mf type=png:w=800:h=600:fps=25\
> > -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi
> >
> > produces an avi file that works with Ubuntu/mplayer, but
> > fails with Windows Media Player.
> >
> > 2) changing the codec based on
> http://pymolwiki.org/index.php/Making_Movies
> >
> > mencoder -mc 0 -noskip -skiplimit 0 -ovc lavc -lavcopts
> > vcodec=msmpeg4v2:vhq "mf://*.png" -mf type=png:fps=18 -o output.avi
> >
> > works with mplayer and windows media player, but won't play
> > on macs (unless they install vlc).
> > When I try to convert the avi file to quicktime using
> >
> >> h264enc -2p -p qt
> >>
> > and accepting all defaults
> > it makes it through both passes, gets to
> > "converting avi file to mp4 container"
> > and exits the "-> Failed!"
> >
> > Any pointers appreciated. I'm open to any linux based
> > solution that produces animations
> > that can be be viewed on all three platforms -- thanks, Phil
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> > trial. Simplify your report design, integration and deployment - and
> focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now. http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Andrew S. <str...@as...> - 2009年09月03日 18:22:42
I use::
 ffmpeg -r 60 -i frame%05d.png -vcodec wmv2 -b 2000k out.avi
And this works well to generate movies that play on Windows, Mac and
Linux. As a bonus, these movies can be included in Latex/Beamer output
using the movies15 package and played within the PDF via Adobe Reader on
Mac and Windows. (I'm sure it's just a matter of time before the linux
PDF readers can do this, too.) Finally I feel I am near a an end to my
cross-platform, doesn't-suck presentation-with-movies quest. I only wish
the movie format required to make this possible was less license and
patent encumbered...
I have been encoding on Ubuntu Jaunty with libraries from mediabuntu. I
haven't tested the above using the plain Ubuntu ffmpeg yet.
-Andrew
Philip Austin wrote:
> This isn't strictly a matplotlib question, but I'm hoping
> dual mac/linux users can provide some advice on converting png
> files to quicktime movies using mencoder on Ubuntu or Centos.
> So far I've found that
>
> 1) starting with
> http://matplotlib.sourceforge.net/examples/animation/movie_demo.html
> using
>
> mencoder mf://*.png -mf type=png:w=800:h=600:fps=25\
> -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi
>
> produces an avi file that works with Ubuntu/mplayer, but
> fails with Windows Media Player.
>
> 2) changing the codec based on http://pymolwiki.org/index.php/Making_Movies
>
> mencoder -mc 0 -noskip -skiplimit 0 -ovc lavc -lavcopts 
> vcodec=msmpeg4v2:vhq "mf://*.png" -mf type=png:fps=18 -o output.avi
>
> works with mplayer and windows media player, but won't play
> on macs (unless they install vlc).
> When I try to convert the avi file to quicktime using
> 
>> h264enc -2p -p qt
>> 
> and accepting all defaults
> it makes it through both passes, gets to
> "converting avi file to mp4 container"
> and exits the "-> Failed!"
>
> Any pointers appreciated. I'm open to any linux based
> solution that produces animations
> that can be be viewed on all three platforms -- thanks, Phil
>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: Philip A. <pa...@eo...> - 2009年09月03日 17:44:06
This isn't strictly a matplotlib question, but I'm hoping
dual mac/linux users can provide some advice on converting png
files to quicktime movies using mencoder on Ubuntu or Centos.
So far I've found that
1) starting with
http://matplotlib.sourceforge.net/examples/animation/movie_demo.html
using
mencoder mf://*.png -mf type=png:w=800:h=600:fps=25\
 -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi
produces an avi file that works with Ubuntu/mplayer, but
fails with Windows Media Player.
2) changing the codec based on http://pymolwiki.org/index.php/Making_Movies
mencoder -mc 0 -noskip -skiplimit 0 -ovc lavc -lavcopts 
vcodec=msmpeg4v2:vhq "mf://*.png" -mf type=png:fps=18 -o output.avi
works with mplayer and windows media player, but won't play
on macs (unless they install vlc).
When I try to convert the avi file to quicktime using
> h264enc -2p -p qt
and accepting all defaults
it makes it through both passes, gets to
"converting avi file to mp4 container"
and exits the "-> Failed!"
Any pointers appreciated. I'm open to any linux based
solution that produces animations
that can be be viewed on all three platforms -- thanks, Phil
From: Richard M. <rg...@as...> - 2009年09月03日 16:28:19
Thanks Eric and also Ryan,
interpolation='nearest' worked. Maybe if the correct person is
listening, this could be highlighted in the imshow documentation since
the default of interpolation=none is not doing 'nothing' IMHO.
Also, I have looked 
> http://matplotlib.sourceforge.net/examples/pylab_examples/contour_image.html
This highlights the various issues nicely. I noticed that the contourf 
example has white space at the top.
Also, the use of arange(-3.0, 4.001, delta) implies some subtle
work around may be needed.
thanks
On Wed, 2 Sep 2009, Eric Firing wrote:
> Date: 2009年9月02日 15:08:49 -1000
> From: Eric Firing <ef...@ha...>
> To: Richard McMahon <rg...@as...>
> Cc: mat...@li...
> Subject: Re: [Matplotlib-users] imshow and pcolor differences
> 
> Richard McMahon wrote:
>> Hello,
>>
>> I want to display some data as an image and also as a contour.
>>
>> I have been looking at imshow and pcolor and find that contour
>> and imshow are behaving differently than pcolor. In the example below I
>> have a 5x5 image. pshow displays the pixels but imshow and contour shows
>> resampling artifacts since they resample offset by 0.5pixels.
>>
>> The advantage of imshow is that the pixels are square which is what I
>> want. I also want to use contour which also seems to show the same
>> type of resampling as imshow.
>
> This is not a matter of resampling (unless I am misunderstanding you)--it is 
> a difference in the grid. For imshow and contour, the data points and the 
> grid intersections coincide; for pcolor (and pcolormesh), the grid gives the 
> boundaries of colored quadrilaterals. Therefore, if the data array is MxN, 
> then the the grid X dimension should be N+1 and the grid Y dimension should 
> be M+1.
>
> For an example of how to use contours with images, see:
>
> http://matplotlib.sourceforge.net/examples/pylab_examples/contour_image.html
>
> Also, it sounds like maybe you don't want imshow to interpolate: try using 
> the interpolation='nearest' kwarg.
>
> If you do want to use pcolor or pcolormesh or Axes.pcolorfast, then you can 
> still get square pixels by suitable choice of aspect ratio. Try 
> axis('equal') or axis('scaled'), or axis('image'), or use the set_aspect() 
> method of the Axes instance.
>
> Eric
>
>>
>> import numpy as np
>> import matplotlib as mpl
>> import matplotlib.pyplot as plt
>>
>> image = np.random.rand(5,5)
>>
>> plt.figure()
>> plt.pcolor(image)
>> plt.title('pcolor defaults')
>>
>> plt.figure()
>> plt.imshow(image, origin='lower')
>> plt.title('imshow defaults with origin=lower')
>>
>> plt.show()
>>
>> Is there a method to force imshow to not resample the image
>> It is not obvius to me from reading the help for imshow and pcolor.
>>
>>
>> Thanks, richard
>>
>> -------------------------------------------------------------------
>> Dr. Richard G. McMahon | Phone (office) 44-(0)-1223-337519
>> University of Cambridge | (switchboard) 1223-337548
>> Institute of Astronomy | (secretary) 1223-337516
>> Madingley Rd | FAX 1223-337523
>> Cambridge, CB3 OHA, UK. | mobile 7885-409019
>> Office: Hoyle 18 | home 1223-359770
>> -------------------------------------------------------------------
>> email: rg...@as... | WWW: http://www.ast.cam.ac.uk/~rgm
>> ric...@gm... | skype: richardgmcmahon
>> -------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day trial. Simplify your report design, integration and deployment -
>> and focus on what you do best, core application coding. Discover what's
>> new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-- 
-------------------------------------------------------------------
 Dr. Richard G. McMahon | Phone (office) 44-(0)-1223-337519
 University of Cambridge | (switchboard) 1223-337548
 Institute of Astronomy | (secretary) 1223-337516
 Madingley Rd | FAX 1223-337523
 Cambridge, CB3 OHA, UK. | mobile 7885-409019
 Office: Hoyle 18 | home 1223-359770
-------------------------------------------------------------------
 email: rg...@as... | WWW: http://www.ast.cam.ac.uk/~rgm
 ric...@gm... | skype: richardgmcmahon
-------------------------------------------------------------------
From: Vicent M. <uv...@gm...> - 2009年09月03日 16:14:48
Hi Matthias,
2009年9月3日 Matthias Michler <Mat...@gm...>:
> Hi Vicent,
>
> I think the following example may help you, althogh their might be a better
> way:
>
thanks for your answer. It really helps. I didn't know about the mode
attribute of navigation toolbars. Inspecting the
NavigationToolbar2QTAgg class interactively with an IPython shell
doesn't show such attribute for this class. Maybe it is created
dynamically when the pan/zoom button is clicked?
Now I still have to find out how to distinguish axes pan from axes
zoom cases. I suppose I can use 'button_press_event' canvas events and
use the button attribute of these events for knowing if the user is
doing a pan or a zoom: pan/zoom mode + left button --> user is panning
axes, pan/zoom mode + right button --> user is zooming axes. Right?
Anyway, thanks again for your help.
-- 
Share what you know, learn what you don't.
From: Shixin Z. <zen...@gm...> - 2009年09月03日 15:50:04
Yes, Me feel sad as well. But I don't think he wants to learn python
and then matplotlib. He is not a computer professor after all.
Best Regards
Shixin Zeng
On Thu, Sep 3, 2009 at 8:54 AM, Nicolas Bigaouette<nbi...@gm...> wrote:
> I'm sure everybody find this really sad... If he wants control over the
> ploting capabilities, then why not have matplotlib and send him the script?
> I know when I switched to matplotlib from matlab I wanted to be able to edit
> directly the graph with point and click, but sometimes it is more powerful
> or even easier to edit the script.
>
> If the changes are really small, you could always send him an SVG that he
> edits in Inkscape. I do that sometimes.
> There might be other open source plotting packages which are WYSIWYG, like
> qtiplot. Please, please! don't go with excel ;) Its quality is so much lower
> then any other software.
>
> 2009年9月3日 Shixin Zeng <zen...@gm...>
>>
>> Forgot CC list.
>>
>> Thanks for your helps.
>>
>> Best Regards
>>
>> Shixin Zeng
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Shixin Zeng <zen...@gm...>
>> Date: Wed, Sep 2, 2009 at 11:02 PM
>> Subject: Re: [Matplotlib-users] best format for MS word?
>> To: Stan West <sta...@nr...>
>>
>>
>> On Wed, Sep 2, 2009 at 8:59 PM, Stan West<sta...@nr...> wrote:
>> >> -----Original Message-----
>> >> From: Shixin Zeng [mailto:zen...@gm...]
>> >> Sent: Wednesday, September 02, 2009 16:11
>> >>
>> >> While for embeding eps files in word, I've just tried that. MS word
>> >> 2007 seems to have some problem on this. See the attached eps
>> >> file produced from matplotlib. In MS word 2007, the labels
>> >> and titles of axes are gone, even on the printed version of
>> >> the word file. It's there when I view/print it with gsview.
>> >
>> > I don't have Word 2007, but I imported your file into Word 2003 and saw
>> > that
>> > the titles and labels were missing. I would blame that on shortcomings
>> > of the
>> > Word PS engine. When I printed to a non-PostScript printer, the titles
>> > and
>> > labels were missing as in your test; that doesn't surprise me, because
>> > the
>> > Word PS engine would be used to render for a non-PS printer. However,
>> > when I
>> > printed to PostScript devices (the Adobe PDF driver and the PDFCreator
>> > driver), the titles and text were present; Word shouldn't invoke its PS
>> > engine
>> > when the printer understands PS. Is there any chance that you were
>> > using a
>> > non-PS printer, or that your printer has two or more modes (like the
>> > Hewlett-Packard models that automatically switch between PCL and PS) and
>> > you
>> > were not using a PS driver? How about testing with PDFCreator?
>> >
>> >
>> I'm not sure if my printer supports PS or not, it's Dell Laser 1320c,
>> I couldn't find any information from its property page.
>>
>> I'm afraid that I'm giving up matplotlib for my paper plotting, since
>> my professor wants me to do plotting with excel such that he doesn't
>> have to ask me to do every small change on the plot if he could do it
>> himself.
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
12 messages has been excluded from this view by a project administrator.

Showing results of 480

<< < 1 .. 15 16 17 18 19 20 > >> (Page 17 of 20)
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 によって変換されたページ (->オリジナル) /