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) |
|
|
|
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 >
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
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 >
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 >
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
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 -------------------------------------------------------------------
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.
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 > >
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 ------------------------------------------------
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 >
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.
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.
> -----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?
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
> > 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. > pass in interpolation='nearest' as a keyword argument. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
On 9/2/2009 4:11 PM Shixin Zeng apparently wrote: > 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. Yes, that was my experience as well, and not just with Word. I think MS products are not playing nicely with EPS, but you might try cleaning it with eps2eps to see if that helps. Alan Isaac