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
(5) |
2
(24) |
3
(2) |
4
|
5
(4) |
6
(1) |
7
(22) |
8
(9) |
9
(23) |
10
(6) |
11
|
12
(7) |
13
(17) |
14
(12) |
15
(10) |
16
(22) |
17
(11) |
18
(6) |
19
(11) |
20
(13) |
21
(10) |
22
(7) |
23
(7) |
24
(5) |
25
(3) |
26
(20) |
27
(17) |
28
(25) |
29
(16) |
30
(17) |
31
(8) |
Sorry, Jouni: I am not familiar with CVS syntax. Is there someway you can = email me a complete backend_pdf.py to try?=0A=0ARegards,=0A=0A> -----Origin= al Message-----=0A> From: mat...@li... = =0A> [mailto:mat...@li...] On =0A> Behalf= Of Jouni K. Sepp=E4nen=0A> Sent: Monday, March 12, 2007 11:20 PM=0A> To: m= atp...@li...=0A> Subject: Re: [Matplotlib-users] P= DF backend problem=0A> =0A> =0A> I fixed another filehandle leak in the pdf= backend, so here's =0A> a more complete patch. There are also several case= s of =0A> file(...) being passed to pickle.dump or pickle.load in =0A> font= _manager.py. I was going to take care of these by writing =0A> some utility= functions, but I started wondering why the =0A> import of cPickle or pickl= e is done only within methods of =0A> FontManager and not at the top level.= Are there some =0A> platforms where neither is available, or what is the r= ationale?=0A> =0A> Index: backend_pdf.py =0A> =3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=0A> --- backend_pdf.py (revision 3044)=0A> ++= + backend_pdf.py (revision 3046)=0A> @@ -457,7 +457,9 @@=0A> = self.writeObject(self.fontObject, fonts)=0A> =0A> def _write_afm_= font(self, filename):=0A> - font =3D AFM(file(filename))=0A> + = fh =3D file(filename)=0A> + font =3D AFM(fh)=0A> + fh.close= ()=0A> fontname =3D font.get_fontname()=0A> fontdict =3D = { 'Type': Name('Font'),=0A> 'Subtype': Name('Type1'),= =0A> @@ -1081,7 +1083,9 @@=0A> font =3D self.afm_font_cache.get(ke= y)=0A> if font is None:=0A> filename =3D fontManager.= findfont(prop, fontext=3D'afm')=0A> - font =3D AFM(file(filename= ))=0A> + fh =3D file(filename)=0A> + font =3D AFM(fh)= =0A> + fh.close()=0A> self.afm_font_cache[key] =3D = font=0A> return font=0A> =0A> -- =0A> Jouni K. Sepp=E4nen=0A> http= ://www.iki.fi/jks=0A> =0A> =0A> -------------------------------------------= -------------------=0A> -----------=0A> Take Surveys. Earn Cash. Influence = the Future of IT=0A> Join SourceForge.net's Techsay panel and you'll get th= e =0A> chance to share your opinions on IT & business topics through =0A> b= rief surveys-and earn cash =0A> http://www.techsay.com/default.php?page=3Dj= oin.php&p=3Dsourceforge=0A&CID=3DDEVDEV=0A_________________________________= ______________=0AMatplotlib-users mailing list Mat...@li...urc= eforge.net=0Ahttps://lists.sourceforge.net/lists/listinfo/matplotlib-users= =0A=0A =0A--=0AJohn Henry=0A=0A
Hi There I am new to Matplotlib. Indeed I am new to programming. I am learning Python and PyGtk. I rebuild and resell instruments used in laboratories. There is a dire need for affordable software. Researchers have to waste a lot of money on hyped up closed source software. I would like to write an open source application in the hopes that others will contribute. Could someone recommend an instrumentation oriented application that uses Matplotlib. The examples on the website are great but it would be nice to see how it integrates into an entire application. Thanks in advance-Patrick
CS wrote: > Hello - I've been searching around for a good plotting package for > python; matplotlib seems great - the problem is, I can't get anything > to show(). > > I'm on os x 10.4.8, python 2.4. > I've installed (and uninstalled and installed) matplotlib via darwin ports: > > novelbox:~/dev/py/work knot$ sudo port installed | grep matplot > py-matplotlib @0.87.6_0 (active) > > I can execute this from the interactive python prompt: > > Python 2.4.3 (#1, Mar 30 2006, 11:02:16) > [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin > >>>> from pylab import * >>>> plot([1,2,3]) >>>> > [<matplotlib.lines.Line2D instance at 0x2bdf800>] > >>>> show() >>>> > > but I don't get any output window... > Same for executing this snippet from the shell: > > novelbox:~/dev/py/work knot$ cat matplot.py > > from pylab import * > plot([1,2,3]) > show() > raw_input() > > > novelbox:~/dev/py/work knot$ python matplot.py --verbose-helpful > > matplotlib data path /opt/local/lib/python2.4/site-packages/matplotlib/mpl-data > $HOME=/Users/knot > CONFIGDIR=/Users/knot/.matplotlib > loaded rc file /opt/local/lib/python2.4/site-packages/matplotlib/mpl-data/matplotlibrc > matplotlib version 0.87.6 > verbose.level helpful > interactive is False > platform is darwin > numerix numarray 1.5.1 > font search path ['/opt/local/lib/python2.4/site-packages/matplotlib/mpl-data'] > loaded ttfcache file /Users/knot/.matplotlib/ttffont.cache > backend Agg version v2.2 > > > > I found nothing in the FAQ or mailing list archive similar to this problem. > I must be doing something dumb, but without an error I'm a bit perplexed. > > Can anyone please point me in a direction that might help me solve this? > > TIA > You're using the Agg backend, which has no GUI. It can only produce image (i.e. png) files, which you can save to disk with the savefig command and then display with an external viewer. Try a GUI backend such as TkAgg if you want the show command to open a window. See http://matplotlib.sourceforge.net/backends.html for information on how to change your default backend. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
Hello - I've been searching around for a good plotting package for python; matplotlib seems great - the problem is, I can't get anything to show(). I'm on os x 10.4.8, python 2.4. I've installed (and uninstalled and installed) matplotlib via darwin ports: novelbox:~/dev/py/work knot$ sudo port installed | grep matplot py-matplotlib @0.87.6_0 (active) I can execute this from the interactive python prompt: Python 2.4.3 (#1, Mar 30 2006, 11:02:16) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin >>> from pylab import * >>> plot([1,2,3]) [<matplotlib.lines.Line2D instance at 0x2bdf800>] >>> show() but I don't get any output window... Same for executing this snippet from the shell: novelbox:~/dev/py/work knot$ cat matplot.py from pylab import * plot([1,2,3]) show() raw_input() novelbox:~/dev/py/work knot$ python matplot.py --verbose-helpful matplotlib data path /opt/local/lib/python2.4/site-packages/matplotlib/mpl-data $HOME=/Users/knot CONFIGDIR=/Users/knot/.matplotlib loaded rc file /opt/local/lib/python2.4/site-packages/matplotlib/mpl-data/matplotlibrc matplotlib version 0.87.6 verbose.level helpful interactive is False platform is darwin numerix numarray 1.5.1 font search path ['/opt/local/lib/python2.4/site-packages/matplotlib/mpl-data'] loaded ttfcache file /Users/knot/.matplotlib/ttffont.cache backend Agg version v2.2 I found nothing in the FAQ or mailing list archive similar to this problem. I must be doing something dumb, but without an error I'm a bit perplexed. Can anyone please point me in a direction that might help me solve this? TIA
SGkgQW50b25pbm8sCgpJZiB5b3VyIHVzaW5nIHRoZSB2ZXJzaW9uIDAuOTAgKG9yIFNWTikgb2Yg bWF0cGxvdGxpYiB5b3UgY2FuIGFsc28gdXNlCm1hdGh0ZXh0Mi4KClRvIGVuYWJsZSBpdCwgcHV0 IHRoZXNlIGxpbmVzIGluIHlvdXIgbWF0cGxvdGxpYnJjIGZpbGU6Cm1hdGh0ZXh0Lm1hdGh0ZXh0 MiA6IFRydWUKbWF0aHRleHQubm9uYXNjaWkgIDogRnJlZVNlcmlmLnR0ZiAjIE9yIGFueSB1bmlj b2RlIGZvbnQKCm9yLCB5b3UgY2FuIHNldCBpdCBmb3IgeW91ciBwYXJ0aWN1bGFyIHNjcmlwdDoK cmNQYXJhbXNbJ21hdGh0ZXh0Lm1hdGh0ZXh0MiddID0gVHJ1ZQpyY1BhcmFtc1snbWF0aHRleHQu bm9uYXNjaWknXSA9ICdGcmVlU2VyaWYudHRmJwoKWW91IGNhbiBhbHNvIHNldDoKbWF0aHRleHQu cm0gICAgIDogICBGcmVlU2VyaWYudHRmICMgUm9tYW4gZm9udAptYXRodGV4dC5pdCAgICAgOiAg IEZyZWVTZXJpZkl0YWxpYy50dGYgICAgICMgVGV4dCBpdGFsaWMKbWF0aHRleHQudHQgICAgIDog ICBGcmVlTW9uby50dGYgICAgIyBUeXBld3JpdGVyIChtb25vc3BhY2VkKQptYXRodGV4dC5taXQg ICAgOiAgIEZyZWVTZXJpZkl0YWxpYy50dGYgICAgIC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m9yZ2UubmV0L2xpc3RzL2xpc3RpbmZvL21hdHBsb3RsaWItdXNlcnMKPgo=
This doesn't seem to be having the desired effect. I can set the frame's edgecolor to whatever I want, and it is displayed correctly, but there is still a black line surrounding it? Is there another property I need to set somewhere to completely change the border color? ax=gca() frame = ax.get_frame() setp(frame, 'linewidth', 1) setp(frame, 'edgecolor', 'blue') Best regards, Peter Buschman
David Fokkema <dfo...@il...> writes: > basically a horizontal cumulative histogram, apart from the fact that > the plot should be rotated 90 degrees counter-clockwise. Does hist(..., orientation='horizontal') look right? -- Jouni K. Seppänen http://www.iki.fi/jks
Hi list, I started to use ipython with matplotlib and I'm starting to become a fan. However, I encountered a problem which is nagging me big time. http://procyon.homeunix.net/~dfokkema/plot-matplotlib-070313.png This is a plot of a 2d histogram of events where peak heights and time differences are histogrammed. Below that one I made a 1D histogram of only time differences, which is basically a vertical cumulative histogram. On the top right, I did the same for the peak heights, which is basically a horizontal cumulative histogram, apart from the fact that the plot should be rotated 90 degrees counter-clockwise. I looked through the matplotlib.transforms and in the Cookbook/wiki, but couldn't work it out. Is it possible to use some kind of transform to rotate my plot? Thanks! David
On 13/03/07, Antonino Ingargiola <tri...@gm...> wrote: > On 3/13/07, John Travers <jt...@gm...> wrote: > > On 13/03/07, Antonino Ingargiola <tri...@gm...> wrote: > > > 1. This method works ok as far as I choose a unicode font with the > > > greek letters, for example: > > > > > > rcParams['font.serif'] = 'DejaVu Serif' > > > > > > However with unicode strings I'm not able to do exponent and deponent > > > text (i.e cm^-1) > > > > You should be able to do super/subscripts in unicode. For example a > > superscript '-' is unicode 207B. If you haven't already found it you > > should check out: > > http://unicode.org/charts/symbols.html > > for more codes. However, the font you choose must support the unicode > > (most only support a certain subset). > > Many thanks. Now I can do superscript and subscript (using GuCharMap I > can search in symbol description so it's easy to find them). > > However the only font I know that has the superscript with the minus > sign is "DejaVu Sans". Anyone know a serif font (or also another sans > font) with all those symbols? DejaVu Serif appears to, and both FreeSans and FreeSerif from freefont project do. John
T24gMy8xMy8wNywgQW50b25pbm8gSW5nYXJnaW9sYSA8dHJpdGVtaW9AZ21haWwuY29tPiB3cm90 ZToKCj4gMS4gVXNlIHRoZSB1bmljb2RlIHN0cmluZzogeGxhYmVsKHUnV2F2ZWxlbmd0aCBb7G1d JykKPiAyLiBVc2UgbWF0aHRleHQ6IHhsYWJlbChyJyRccm17V2F2ZWxlbmd0aCBbXG11IG1dfSQn KQo+IDMuIFVzZSB1c2V0ZXg6IHJjKHRleHQsIHVzZXRleD1UcnVlKSwgeGxhYmVsKHInV2F2ZWxl bmd0aCBbJFxybXtcbXUgbX0kXScpCj4KPiBJIGhhdmUgc29tZSBwcm9ibGVtIHdpdGggZWFjaCBt ZXRob2QgKGFueSBoaW50IGlzIGFwcHJlY2lhdGVkKS4KCldoYXQgaXMgdGhlIHByb2JsZW0gd2l0 aCBtZXRob2QgMz8KCkpESAo=
On 13/03/07, Antonino Ingargiola <tri...@gm...> wrote: > 1. This method works ok as far as I choose a unicode font with the > greek letters, for example: > > rcParams['font.serif'] = 'DejaVu Serif' > > However with unicode strings I'm not able to do exponent and deponent > text (i.e cm^-1) You should be able to do super/subscripts in unicode. For example a superscript '-' is unicode 207B. If you haven't already found it you should check out: http://unicode.org/charts/symbols.html for more codes. However, the font you choose must support the unicode (most only support a certain subset). Regards, John
Hello, I'm trying to display some unicode text in matplotlib graphs embedded in a Qt application. The text contains characters belonging to Turkish and Korean idioms. I've started modifying the simple demo examples/unicode_demo.py, I ran it and I got a nice test.svg file with the correct glyphs. So far everything was good. Then I moved to examples/embedding_in_qt.py, and placed there the very same unicode strings I used in the previous example: in the running application, Turkish glyphs are displayed correctly, Korean ones are represented by "squares" instead. (I'm attaching the modified sources if somebody wants to do some quick tests) It seems that the unicode handling code is different between SVG and Qt backends. If so, am I missing something in the Qt code to get all the correct glyphs? This is with matplotlib 0.86.2, pyqt 3.16. Thanks in advance! -- Lorenzo Mancini
U29ycnkgZm9yIHRoZSBwcmV2aW91cyBtYWlsIEkndmU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hc3RlciB0aGVzaXMuIEkKd2FudCB0byB0aGFuayBhbGwgdGhlIGRldmVsb3Bl ciBmb3IgcHJvdmlkaW5nIHN1Y2ggZmxleGlibGUgdG9vbC4KCkluIHNvbWUgcGxvdHMgSSBoYXZl IHRvIHB1dCBncmVlayBsZXR0ZXJzIChvciBzb21ldGltZXMgc21hbGwgZm9tdWxhcykKYXMgYXhp cyBsYWJlbC4gSSd2ZSBmb3VuZCB0aHJlZSB3YXkgdG8gYWNjb21wbGlzaCB0aGlzOgoKMS4gVXNl IHRoZSB1bmljb2RlIHN0cmluZzogeGxhYmVsKHUnV2F2ZWxlbmd0aCBb7G1dJykKMi4gVXNlIG1h dGh0ZXh0OiB4bGFiZWwocickXHJte1dhdmVsZW5ndGggW1xtdSBtXX0kJykKMy4gVXNlIHVzZXRl eDogcmModGV4dCwgdXNldGV4PVRydWUpLCB4bGFiZWwocidXYXZlbGVuZ3RoIFskXHJte1xtdSBt fSRdJykKCkkgaGF2ZSBzb21lIHByb2JsZW0gd2l0aCBlYWNoIG1ldGhvZCAoYW55IGhpbnQgaXMg YXBwcmVjaWF0ZWQpLgoKMS4gVGhpcyBtZXRob2Qgd29ya3Mgb2sgYXMgZmFyIGFzIEkgY2hvb3Nl IGEgdW5pY29kZSBmb250IHdpdGggdGhlCmdyZWVrIGxldHRlcnMsIGZvciBleGFtcGxlOgo=
I fixed another filehandle leak in the pdf backend, so here's a more complete patch. There are also several cases of file(...) being passed to pickle.dump or pickle.load in font_manager.py. I was going to take care of these by writing some utility functions, but I started wondering why the import of cPickle or pickle is done only within methods of FontManager and not at the top level. Are there some platforms where neither is available, or what is the rationale? Index: backend_pdf.py =================================================================== --- backend_pdf.py (revision 3044) +++ backend_pdf.py (revision 3046) @@ -457,7 +457,9 @@ self.writeObject(self.fontObject, fonts) def _write_afm_font(self, filename): - font = AFM(file(filename)) + fh = file(filename) + font = AFM(fh) + fh.close() fontname = font.get_fontname() fontdict = { 'Type': Name('Font'), 'Subtype': Name('Type1'), @@ -1081,7 +1083,9 @@ font = self.afm_font_cache.get(key) if font is None: filename = fontManager.findfont(prop, fontext='afm') - font = AFM(file(filename)) + fh = file(filename) + font = AFM(fh) + fh.close() self.afm_font_cache[key] = font return font -- Jouni K. Seppänen http://www.iki.fi/jks
kc1...@ya... writes: > Now, I am running into another problem. Everything works fine up to > 8 page plots. Starting with the 9th page, MPL chokes at line 1084 in > backend_pdf.py and couldn't find the cooresponding ttf file > (VeraSe.ttf) but it had no problem reading that file for the first 8 > plots. Does the following change help with this? (If you are following svn, just run "svn update"; otherwise, the easiest way is to replace line 1084 by the three lines prefixed with + below.) Index: backend_pdf.py =================================================================== --- backend_pdf.py (revision 3044) +++ backend_pdf.py (revision 3045) @@ -1081,7 +1081,9 @@ font = self.afm_font_cache.get(key) if font is None: filename = fontManager.findfont(prop, fontext='afm') - font = AFM(file(filename)) + fh = file(filename) + font = AFM(fh) + fh.close() self.afm_font_cache[key] = font return font -- Jouni K. Seppänen http://www.iki.fi/jks
Hi list,=0A=0AFirst of all, thanks to Bill Dandreta and Jouni Seppanen for = helping with my combining single page pdf into multipage pdf question. I t= ried both method and went with pdftex because it's very simple (and fits my= need).=0A=0ANow, I am running into another problem. Everything works fin= e up to 8 page plots. Starting with the 9th page, MPL chokes at line 1084= in backend_pdf.py and couldn't find the cooresponding ttf file (VeraSe.ttf= ) but it had no problem reading that file for the first 8 plots.=0A=0A???= =0A=0ARegards,=0A =0A--=0AJohn Henry=0A=0A