[Matplotlib-users] pan/zoom axes problem
Hi, I'm a newbie to matplotlib. I'm embedding matplotlib (0,98.5.3) in a pyqt application. I'm using the qt4 backend and its navigation toolbar. I wish to execute a certain function every time the view interval of a figure is changed interactively (i.e. using the zoom rectangle or the axes pan/zoom button of the navigation toolbar). I'm interested in changes due to axes zoom and rectangle zoom but not in changes due axes pan. The only way I know for detecting this changes is 'x/ylim_changed' events. Unfortunately I don't know how to distinguish if the event is caused by a rectangle zoom, an axes zoom or an axes pan. I've read the events section of the documentation and searched the archives for a solution with no luck. Could somebody help me to solve this problem? Thanks in advance. Vicent PS: -- Share what you know, learn what you don't. -- 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Fwd: best format for MS word?
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 > Forgot CC list. > > Thanks for your helps. > > Best Regards > > Shixin Zeng > > > > > -- Forwarded message -- > From: Shixin Zeng > Date: Wed, Sep 2, 2009 at 11:02 PM > Subject: Re: [Matplotlib-users] best format for MS word? > To: Stan West > > > On Wed, Sep 2, 2009 at 8:59 PM, Stan West wrote: > >> -Original Message- > >> From: Shixin Zeng [mailto:zeng.shi...@gmail.com] > >> 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 > Matplotlib-users@lists.sourceforge.net > 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Filling in missing samples by interpolating.
Ryan Neve wrote: > Hello, > > [...] > This works, but is very slow for something that will be on the back end > of a web page. Iterating in python is usually slow, so you should use numpy array methods if possible. I've made a faster version. It gives the same result for your test case, but you should test it further to see if it treats all cases properly. Regards, João Silva import numpy as np sample_array = np.array(([np.nan,1,2,3,np.nan,5,6,7,8,np.nan,np.nan,11,12,np.nan,np.nan,np.nan])) #Replace single nan with the neighbours average sample_array[1:-1] = np.where(np.isnan(sample_array[1:-1]),(sample_array[:-2]+sample_array[2:])/2.0,sample_array[1:-1]) #Fix ... Number nan ... sample_array[1:]= np.where(np.logical_and(np.logical_not(np.isnan(sample_array[:-1])),np.isnan(sample_array[1:])),sample_array[:-1],sample_array[1:]) #Fix ... nan Number ... sample_array[:-1]= np.where(np.logical_and(np.logical_not(np.isnan(sample_array[1:])),np.isnan(sample_array[:-1])),sample_array[1:],sample_array[:-1]) print sample_array -- 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] pan/zoom axes problem
Hi Vicent, I think the following example may help you, althogh their might be a better way: ## import matplotlib.pyplot as plt def callback(ax): """ prints mode of toolbar after limits changed e.g. mode : >zoom rect< mode : >pan/zoom< """ print " mode : >%s<" % (plt.get_current_fig_manager().toolbar.mode) ax = plt.gca() ax.callbacks.connect('xlim_changed', callback) ax.callbacks.connect('ylim_changed', callback) plt.show() ## kind regards Matthias On Thursday 03 September 2009 14:07:06 Vicent Mas wrote: > Hi, > > I'm a newbie to matplotlib. I'm embedding matplotlib (0,98.5.3) in a > pyqt application. I'm using the qt4 backend and its navigation > toolbar. > > I wish to execute a certain function every time the view interval of > a figure is changed interactively (i.e. using the zoom rectangle or > the > axes pan/zoom button of the navigation toolbar). I'm interested in > changes due to axes zoom and rectangle zoom but not in changes due > axes pan. The only way I know for detecting this changes is > 'x/ylim_changed' events. Unfortunately I don't know how to distinguish > if the > event is caused by a rectangle zoom, an axes zoom or an axes pan. > I've read the events section of the documentation and searched the > archives for a solution with no luck. Could somebody help me to > solve this problem? > > Thanks in advance. > > Vicent > > PS: -- 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Fwd: best format for MS word?
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 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 >> >> Forgot CC list. >> >> Thanks for your helps. >> >> Best Regards >> >> Shixin Zeng >> >> >> >> >> -- Forwarded message -- >> From: Shixin Zeng >> Date: Wed, Sep 2, 2009 at 11:02 PM >> Subject: Re: [Matplotlib-users] best format for MS word? >> To: Stan West >> >> >> On Wed, Sep 2, 2009 at 8:59 PM, Stan West wrote: >> >> -Original Message- >> >> From: Shixin Zeng [mailto:zeng.shi...@gmail.com] >> >> 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 >> Matplotlib-users@lists.sourceforge.net >> 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 > Matplotlib-users@lists.sourceforge.net > 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] pan/zoom axes problem
Hi Matthias, 2009/9/3 Matthias Michler : > 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. -- 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] imshow and pcolor differences
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: Wed, 02 Sep 2009 15:08:49 -1000 > From: Eric Firing > To: Richard McMahon > Cc: matplotlib-users@lists.sourceforge.net > 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. | mobile7885-409019 >> Office: Hoyle 18 | home 1223-359770 >> --- >> email: r...@ast.cam.ac.uk | WWW:http://www.ast.cam.ac.uk/~rgm >> richardgmcma...@gmail.com | 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 >> Matplotlib-users@lists.sourceforge.net >> 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. | mobile7885-409019 Office: Hoyle 18 | home 1223-359770 --- email: r...@ast.cam.ac.uk | WWW:http://www.ast.cam.ac.uk/~rgm richardgmcma...@gmail.com | skype:richardgmcmahon --- -- Let Crystal Reports ha
[Matplotlib-users] making quicktime animations from linux
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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] making quicktime animations from linux
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 > Matplotlib-users@lists.sourceforge.net > 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] making quicktime animations from linux
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 > 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 > > Matplotlib-users@lists.sourceforge.net > > 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 > Matplotlib-users@lists.sourceforge.net > 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] making quicktime animations from linux
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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] making quicktime animations from linux
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 : > 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 > Matplotlib-users@lists.sourceforge.net > 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] download
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 -- 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] download
On Thu, Sep 3, 2009 at 8:04 PM, Alan G Isaac 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] download
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 wrote: > On Thu, Sep 3, 2009 at 8:04 PM, Alan G Isaac 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 > Matplotlib-users@lists.sourceforge.net > 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] download
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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] download
I should mention that I tested 32 bit On Thu, Sep 3, 2009 at 11:59 PM, Alan G Isaac 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 > Matplotlib-users@lists.sourceforge.net > 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Boxplot date formatting
> 2009/9/3 Dave Draper : > 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 -- 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users