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
(1) |
2
(10) |
3
(29) |
4
(56) |
5
(44) |
6
(26) |
7
(12) |
8
(1) |
9
(2) |
10
(11) |
11
(28) |
12
(17) |
13
(6) |
14
(17) |
15
(7) |
16
(1) |
17
(8) |
18
(8) |
19
(7) |
20
(2) |
21
(8) |
22
(4) |
23
(6) |
24
(1) |
25
(2) |
26
(8) |
27
(3) |
28
(5) |
29
(1) |
30
|
31
(1) |
|
|
|
|
|
From: Christiaan P. <cep...@go...> - 2007-12-23 08:43:54
|
Hi there, Just an update regarding the svg problem I was having: I simply went back to 0.90 and that's working now. Would still be nice to know if the svg output from matplotlib complies with the standard or whether it's Qt that's messing things up. Merry x-mass! cputter On 21/12/2007, Christiaan Putter <cep...@go...> wrote: > > Hi guys and girls, > > Quick question regarding matplotlib's svg backend... > > I've embeded pyhton into c++ and Qt's (4.3.3) svg support is having some > problems with .svg files created by matplotlib. Text isn't showing up. > Firefox displays the same .svg file correctly though... > > The problem: > > It seems some text stuff is stored in a section called defs at the end of > the file with stuff linking to this earlier in the file. Qt doesn't like > that and only displays the normal plot stuff (lines, etc.) but not the > labels and other text. > > More exact: > > <use xlink:href="#c_7" ..... > > references > > <path id="c_7" d="M10.6875 ..... > > at the end of the file. > > > > When I simply cut and paste the defs section to the beginning of the file > it solves the problem. > > What does the svg standard say about this? I assume Qt's implementation > is defect... > > Has anybody else encountered this problem? I'll send an e-mail to Qt too > and ask them about it. > > Hope you're all having a nice day. > > Regards, > cputter > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Johann Cohen-T. <co...@sl...> - 2007-12-23 05:03:48
|
hi jessica, This FittingData tutorial is very nice. Could you illustrate how to fix/thaw parameters? I did not find any such attribute and when I try some kludges they fail with a msg saying <type 'exceptions.ValueError'>: shape mismatch: objects cannot be broadcast to a single shape thanks, Johann |
From: Yongtao C. <cui...@gm...> - 2007-12-22 21:15:23
|
Hi Jack, In \matplotlib\axes.py, Axes.format_xdata() func = self.xaxis.get_major_formatter().format_data_short ->func = self.xaxis.get_major_formatter().format_data same for Axes.format_ydata() -Yongtao On Dec 22, 2007 1:46 PM, Jack Sankey <jac...@gm...> wrote: > Hello, > > When you make a figure and move the mouse around inside the axes, the > x- and y-values appear in the status bar. Is there a way to change the > precision of this data? It's only tracking 3 significant figures and I > need more (say you're zoomed in on some data with a large offset). > > Is there a way to change this in matplotlibrc or some global > preference? If not, is it a figure property? > > Thanks in advance, > Jack > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Jack S. <jac...@gm...> - 2007-12-22 18:46:43
|
Hello, When you make a figure and move the mouse around inside the axes, the x- and y-values appear in the status bar. Is there a way to change the precision of this data? It's only tracking 3 significant figures and I need more (say you're zoomed in on some data with a large offset). Is there a way to change this in matplotlibrc or some global preference? If not, is it a figure property? Thanks in advance, Jack |
From: Gary R. <gr...@bi...> - 2007-12-22 02:31:55
|
Beautiful! Many thanks John. Gary R. John Hunter wrote: <snip> > You can manually turn off autoscaling on the axes instance with the > following, and both scatter and plot should then work as you want. > > ax1 = subplot(121) > axis('off') > ax1.imshow(rand(20,20)) > ax2 = subplot(122) > axis('off') > ax2.imshow(rand(20,20)) > > ax1.set_autoscale_on(False) > #ax1.scatter([5,10],[5,10]) # note 2 > ax1.plot([5,10],[5,10], 'o') # note 3 > show() |
From: Emmanuel <man...@gm...> - 2007-12-22 02:03:42
|
IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgZW1iZWRkaW5nX2luX3d4LnB5CiMKCiIiIgpDb3B5cmln aHQgKEMpIEplcmVteSBPJ0Rvbm9naHVlLCAyMDAzCgpMaWNlbnNlOiBU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bGwgaW50 byBhIHNpemVyCiAgICAgICAgc2l6ZXIgPSB3eC5Cb3hTaXplcih3eC5WRVJUSUNBTCkKICAgICAg ICAjIFRoaXMgd2F5IG9mIGFkZGluZyB0byBzaXplciBhbGxvd3MgcmVzaXppbmcKICAgICAgICBz aXplci5BZGQoc2VsZi5jYW52YXMsIDEsIHd4LkxFRlR8d3guVE9QfHd4LkdST1cpCiAgICAgICAg IyBCZXN0IHRvIGFsbG93IHRoZSB0b29sYmFyIHRvIHJlc2l6ZSEKICAgICAgICBzaXplci5BZGQo c2VsZi50b29sYmFyLCAwLCB3eC5HUk9XKQogICAgICAgIHNlbGYuU2V0U2l6ZXIoc2l6ZXIpCiAg ICAgICAgc2VsZi5GaXQoKQoKICAgIGRlZiBwbG90X2RhdGEoc2VsZik6CiAgICAgICAgIyBVc2Ug dGhzIGxpbmUgaWYgdXNpbmcgYSB0b29sYmFyCiAgICAgICAgYSA9IHNlbGYuZmlnLmFkZF9zdWJw bG90KDExMSkKCiAgICAgICAgIyBPciB0aGlzIG9uZSBpZiB0aGVyZSBpcyBubyB0b29sYmFyCiAg ICAgICAgI2EgPSBTdWJwbG90KHNlbGYuZmlnLCAxMTEpCgogICAgICAgIHQgPSBudW1weS5hcmFu Z2UoMC4wLDMuMCwwLjAxKQogICAgICAgIHMgPSBudW1weS5zaW4oMipudW1weS5waSp0KQogICAg ICAgIGMgPSBudW1weS5jb3MoMipudW1weS5waSp0KQogICAgICAgIGEucGxvdCh0LHMpCiAgICAg ICAgYS5wbG90KHQsYykKICAgICAgICBzZWxmLnRvb2xiYXIudXBkYXRlKCkKCiAgICBkZWYgR2V0 VG9vbEJhcihzZWxmKToKICAgICAgICAjIFlvdSB3aWxsIG5lZWQgdG8gb3ZlcnJpZGUgR2V0VG9v bEJhciBpZiB5b3UgYXJlIHVzaW5nIGFuCiAgICAgICAgIyB1bm1hbmFnZWQgdG9vbGJhciBpbiB5 b3VyIGZyYW1lCiAgICAgICAgcmV0dXJuIHNlbGYudG9vbGJhcgoKaWYgX19uYW1lX18gPT0gJ19f bWFpbl9fJzoKICAgIGFwcCA9IHd4LlB5U2ltcGxlQXBwKDApCiAgICBmcmFtZSA9IFBsb3RGaWd1 cmUoKQogICAgZnJhbWUucGxvdF9kYXRhKCkKICAgIGZyYW1lLlNob3coKQogICAgYXBwLk1haW5M b29wKCkK |
From: Bryan F. <bry...@gm...> - 2007-12-21 23:42:53
|
I have a pcolormest and a fill that are plotted on the same graph (they hav= e the same scale). Is there an easy way to only plot the values of pcolormesh that lie in the fill? pcolormesh(oX, oY, test, shading=3D'flat', cmap=3Dcm.gray_r) fill([-x1,x2,x2,-x1], [-y1,-y1,y2,y2], 'b', alpha=3D0.2, edgecolor=3D'r') --=20 "The game of science can accurately be described as a never-ending insult t= o human intelligence." - Jo=E3o Magueijo |
From: Utkarsh U. <mus...@gm...> - 2007-12-21 21:26:05
|
+1 Worked for me too. Thanks. ~ musically_ut On Dec 12, 2007 7:45 PM, Armando Serrano Lombillo <ars...@gm...> wrote: > Ok, I've just read the thread "Repeated calls to set_text using TeX > formatting results in RuntimeError" which looked very similar to our problem > and after applying the fix which is suggested there by Michael Droettboom > (see below), the problem seems to disappear. Let's hope this gets fixed in > 0.91.2. > > > Open the file "font_manager.py", which should live in > "%PYTHONPATH%/Lib/site-packages/matplotlib". Around line 681, you'll > find the function: > > def __hash__(self): > return hash(repr(self.__props)) > > Change it to: > > def __hash__(self): > return hash(repr(self.__props.__dict__)) > > (Obviously, back up the file first...) > > > On Dec 12, 2007 8:32 PM, Armando Serrano Lombillo <ars...@gm...> > wrote: > > > I'm running into the very same problem. I'm using matplotlib from a > > wxPython application, the same versions as you (Yongtao Cui), and I get the > > same error (see below) after repainting a figure many times. In my case I > > plot several figures (16 figures) and I get the error with very few > > repaintings. This didn't happen with matplotlib 0.90.1. > > > > Any fix besides going back to matplotlib 0.90.1? > > > > > > Traceback (most recent call last): > > Traceback (most recent call last): > > File "C:\Tesis\Programa\visualizador.py", line 93, in on_intervalos > > File "C:\Tesis\Programa\visualizador.py", line 126, in pinta > > File > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py", line > > 61, in draw > > File > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", line > > 380, in draw > > File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line 612, > > in draw > > File "C:\Python25\Lib\site-packages\matplotlib\axes.py", line 1344, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\axis.py", line 596, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\axis.py", line 170, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line 775, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line 317, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line 195, in > > _get_layout > > File > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", line > > 234, in get_text_width_height_descent > > File > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", line > > 301, in _get_agg_font > > RuntimeError: Could not open facefile C:\WINDOWS\Fonts\verdana.ttf; > > Cannot_Open_Resource > > > > File "C:\Tesis\Programa\visualizador.py", line 93, in on_intervalos > > File "C:\Tesis\Programa\visualizador.py", line 126, in pinta > > File > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py", line > > 61, in draw > > File > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", line > > 380, in draw > > File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line 612, > > in draw > > File "C:\Python25\Lib\site-packages\matplotlib\axes.py", line 1344, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\axis.py", line 596, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\axis.py", line 170, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line 775, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line 317, in > > draw > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line 195, in > > _get_layout > > File > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", line > > 234, in get_text_width_height_descent > > File > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", line > > 301, in _get_agg_font > > RuntimeError: Could not open facefile C:\WINDOWS\Fonts\verdana.ttf; > > Cannot_Open_Resource > > > > > > > > > > On Dec 5, 2007 3:15 AM, Yongtao Cui <cui...@gm...> wrote: > > > > > I don't know why those spaces always don't show up on the mailing list > > > webpage. They looked fine on my gmail page. > > > > > > The 'test' function only has one 'for' loop. The four lines below the > > > 'for' line are all in the loop. > > > > > > > > > > > > On Dec 4, 2007 8:52 PM, Yongtao Cui <cui...@gm...> wrote: > > > > >>> import pylab > > > > >>> def test(n): > > > > >>> for i in range(n): > > > > >>> f=pylab.figure(1) > > > > >>> f.clf() > > > > >>> a=f.add_axes([0.2, 0.2, 0.6 , 0.6]) > > > > >>> a.plot([1,2,3,4,5], 'ro') > > > > >>> > > > > > > > > I tracked down the svn tree. The above script works ok in revision > > > > 3737 and before, but crashes from revision 3738 and after. > > > > > > > > Yongtao > > > > > > > > > > > > On Dec 2, 2007 4:15 PM, Yongtao Cui <cui...@gm...> wrote: > > > > > Below is the minimum code with the right indent > > > > > > > > > > import pylab > > > > > def test(n): > > > > > for i in range(n): > > > > > f=pylab.figure(1) > > > > > f.clf() > > > > > a=f.add_axes([0.2, 0.2, 0.6 , 0.6]) > > > > > a.plot([1,2,3,4,5], 'ro') > > > > > > > > > > > > > > > On Dec 2, 2007 4:07 PM, Yongtao Cui <cui...@gm... > wrote: > > > > > > Hi, > > > > > > > > > > > > I got the following error when clearing and plotting on the same > > > > > > figure for many times. I found the following minimum code to > > > reproduce > > > > > > this error. I am using matplotlib-0.91.1 and wxpython2.8 on > > > windows > > > > > > xp. In the matplotlibrc file, I changed the backend to WXAgg and > > > > > > interactive to True. > > > > > > > > > > > > import pylab > > > > > > def test(n): > > > > > > for i in range(n): > > > > > > f=pylab.figure(1) > > > > > > f.clf() > > > > > > a=f.add_axes([0.2, 0.2, 0.6, 0.6]) > > > > > > a.plot([1,2,3,4,5], 'ro') > > > > > > > > > > > > > > > > > > The error only happens for a large n. For example, test(10) > > > works > > > > > > fine, but test(50) will cause the error. Also runing test(10) > > > for a > > > > > > few times will also cause the error. > > > > > > > > > > > > Could anyone give me some help? > > > > > > > > > > > > Thanks. > > > > > > > > > > > > The following is the error message: > > > > > > > > > > > > Traceback (most recent call last): > > > > > > File "<input>", line 1, in <module> > > > > > > File "<input>", line 3, in test > > > > > > File "C:\Python25\Lib\site-packages\matplotlib\pyplot.py", line > > > 191, in figure > > > > > > File > > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_wx.py", > > > > > > line 1227, in draw_if_interactive > > > > > > File > > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py", > > > > > > line 61, in draw > > > > > > File > > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", > > > > > > line 380, in draw > > > > > > File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line > > > 612, in draw > > > > > > File "C:\Python25\Lib\site-packages\matplotlib\axes.py", line > > > 1344, in draw > > > > > > File "C:\Python25\Lib\site-packages\matplotlib\axis.py", line > > > 596, in draw > > > > > > File "C:\Python25\Lib\site-packages\matplotlib\axis.py", line > > > 170, in draw > > > > > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line > > > 775, in draw > > > > > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line > > > 317, in draw > > > > > > File "C:\Python25\Lib\site-packages\matplotlib\text.py", line > > > 195, > > > > > > in _get_layout > > > > > > File > > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", > > > > > > line 234, in get_text_width_height_descent > > > > > > File > > > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", > > > > > > line 301, in _get_agg_font > > > > > > RuntimeError: Could not open facefile > > > > > > > > > C:\Python25\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf; > > > > > > Cannot_Open_Resource > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > > from Novell. From the desktop to the data center, Linux is going > > > mainstream. Let it simplify your IT future. > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > _______________________________________________ > > > Matplotlib-users mailing list > > > Mat...@li... > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- Never trust a spiritual leader who cannot dance. ~Mr. Miyagi, The Next Karate Kid |
From: John H. <jd...@gm...> - 2007-12-21 17:59:15
|
On Dec 21, 2007 11:50 AM, John Hunter <jd...@gm...> wrote: > On Dec 20, 2007 9:22 PM, Gary Ruben <gr...@bi...> wrote: > > Hi listees, > > > > I often generate plots using the pylab interface plot() function to > > overlay an imshow() image. The minimal script below demonstrates a > > problem, which may be a bug, or may be a deliberate change introduced > > into mpl 0.91.1. It works fine with mpl 0.90.1 but gives a traceback > > with 0.91.1 - it seems not to be happy with the subplot limits. > > Commenting out the "note 1" line lets it run and demonstrates my real > > question. With scatter(), the first subplot doesn't rescale, but if line > > "note 2" is commented out and "note 3" is uncommented, it rescales. How > > do I prevent the rescaling? I prefer plot() instead of scatter() in this > > case because of the plot origin. You can manually turn off autoscaling on the axes instance with the following, and both scatter and plot should then work as you want. ax1 = subplot(121) axis('off') ax1.imshow(rand(20,20)) ax2 = subplot(122) axis('off') ax2.imshow(rand(20,20)) ax1.set_autoscale_on(False) #ax1.scatter([5,10],[5,10]) # note 2 ax1.plot([5,10],[5,10], 'o') # note 3 show() > > > > Hey Gary, thanks for the resend. > > On your first question vis-a-vis subplots_adjust, it looks like the > validate limits are wrong for these params. I'm CC-ing Darren because > he has done the most work recently for rc param validation. > > They currently read: > > 'figure.subplot.left' : [0.125, ValidateInterval(0, 1, > closedmin=False, closedmax=False)], > 'figure.subplot.right' : [0.9, ValidateInterval(0, 1, > closedmin=False, closedmax=False)], > 'figure.subplot.bottom' : [0.1, ValidateInterval(0, 1, > closedmin=False, closedmax=False)], > 'figure.subplot.top' : [0.9, ValidateInterval(0, 1, > closedmin=False, closedmax=False)], > 'figure.subplot.wspace' : [0.2, ValidateInterval(0, 1, > closedmin=False, closedmax=True)], > 'figure.subplot.hspace' : [0.2, ValidateInterval(0, 1, > closedmin=False, closedmax=True)], > > and I think they should read: > > > 'figure.subplot.left' : [0.125, ValidateInterval(0, 1, > closedmin=True, closedmax=True)], > 'figure.subplot.right' : [0.9, ValidateInterval(0, 1, > closedmin=True, closedmax=True)], > 'figure.subplot.bottom' : [0.1, ValidateInterval(0, 1, > closedmin=True, closedmax=True)], > 'figure.subplot.top' : [0.9, ValidateInterval(0, 1, > closedmin=True, closedmax=True)], > 'figure.subplot.wspace' : [0.2, ValidateInterval(0, 1, > closedmin=True, closedmax=False)], > 'figure.subplot.hspace' : [0.2, ValidateInterval(0, 1, > closedmin=True, closedmax=False)], > > That is, 0 and 1 should be legal for all values except the max of the > wspace and hspace. Darren, unless I am missing something, I'll commit > these changes. > > I'll look at your second question in a followup > > JDH > |
From: John H. <jd...@gm...> - 2007-12-21 17:50:24
|
On Dec 20, 2007 9:22 PM, Gary Ruben <gr...@bi...> wrote: > Hi listees, > > I often generate plots using the pylab interface plot() function to > overlay an imshow() image. The minimal script below demonstrates a > problem, which may be a bug, or may be a deliberate change introduced > into mpl 0.91.1. It works fine with mpl 0.90.1 but gives a traceback > with 0.91.1 - it seems not to be happy with the subplot limits. > Commenting out the "note 1" line lets it run and demonstrates my real > question. With scatter(), the first subplot doesn't rescale, but if line > "note 2" is commented out and "note 3" is uncommented, it rescales. How > do I prevent the rescaling? I prefer plot() instead of scatter() in this > case because of the plot origin. > Hey Gary, thanks for the resend. On your first question vis-a-vis subplots_adjust, it looks like the validate limits are wrong for these params. I'm CC-ing Darren because he has done the most work recently for rc param validation. They currently read: 'figure.subplot.left' : [0.125, ValidateInterval(0, 1, closedmin=False, closedmax=False)], 'figure.subplot.right' : [0.9, ValidateInterval(0, 1, closedmin=False, closedmax=False)], 'figure.subplot.bottom' : [0.1, ValidateInterval(0, 1, closedmin=False, closedmax=False)], 'figure.subplot.top' : [0.9, ValidateInterval(0, 1, closedmin=False, closedmax=False)], 'figure.subplot.wspace' : [0.2, ValidateInterval(0, 1, closedmin=False, closedmax=True)], 'figure.subplot.hspace' : [0.2, ValidateInterval(0, 1, closedmin=False, closedmax=True)], and I think they should read: 'figure.subplot.left' : [0.125, ValidateInterval(0, 1, closedmin=True, closedmax=True)], 'figure.subplot.right' : [0.9, ValidateInterval(0, 1, closedmin=True, closedmax=True)], 'figure.subplot.bottom' : [0.1, ValidateInterval(0, 1, closedmin=True, closedmax=True)], 'figure.subplot.top' : [0.9, ValidateInterval(0, 1, closedmin=True, closedmax=True)], 'figure.subplot.wspace' : [0.2, ValidateInterval(0, 1, closedmin=True, closedmax=False)], 'figure.subplot.hspace' : [0.2, ValidateInterval(0, 1, closedmin=True, closedmax=False)], That is, 0 and 1 should be legal for all values except the max of the wspace and hspace. Darren, unless I am missing something, I'll commit these changes. I'll look at your second question in a followup JDH |
From: Christiaan P. <cep...@go...> - 2007-12-21 16:45:39
|
Hi guys and girls, Quick question regarding matplotlib's svg backend... I've embeded pyhton into c++ and Qt's (4.3.3) svg support is having some problems with .svg files created by matplotlib. Text isn't showing up. Firefox displays the same .svg file correctly though... The problem: It seems some text stuff is stored in a section called defs at the end of the file with stuff linking to this earlier in the file. Qt doesn't like that and only displays the normal plot stuff (lines, etc.) but not the labels and other text. More exact: <use xlink:href="#c_7" ..... references <path id="c_7" d="M10.6875 ..... at the end of the file. When I simply cut and paste the defs section to the beginning of the file it solves the problem. What does the svg standard say about this? I assume Qt's implementation is defect... Has anybody else encountered this problem? I'll send an e-mail to Qt too and ask them about it. Hope you're all having a nice day. Regards, cputter |
From: Gary R. <gr...@bi...> - 2007-12-21 07:40:23
|
Retrying. Sorry if this appears twice. Hi listees, I often generate plots using the pylab interface plot() function to overlay an imshow() image. The minimal script below demonstrates a problem, which may be a bug, or may be a deliberate change introduced into mpl 0.91.1. It works fine with mpl 0.90.1 but gives a traceback with 0.91.1 - it seems not to be happy with the subplot limits. Commenting out the "note 1" line lets it run and demonstrates my real question. With scatter(), the first subplot doesn't rescale, but if line "note 2" is commented out and "note 3" is uncommented, it rescales. How do I prevent the rescaling? I prefer plot() instead of scatter() in this case because of the plot origin. thanks, Gary R. -- from pylab import * rcFig = {'figsize': (2,1), 'dpi': 256, 'subplot.hspace': 0.0, 'subplot.wspace': 0.0, 'subplot.bottom': 0.0, 'subplot.left': 0.0, 'subplot.right': 1.0, 'subplot.top': 1.0, } rc('figure', **rcFig) # note 1 subplot(121) axis('off') imshow(rand(20,20)) subplot(122) axis('off') imshow(rand(20,20)) subplot(121) scatter([5,10],[5,10]) # note 2 #~ plot([5,10],[5,10], 'o') # note 3 show() -- |
From: Gary R. <gr...@bi...> - 2007-12-21 03:22:21
|
Hi listees, I often generate plots using the pylab interface plot() function to overlay an imshow() image. The minimal script below demonstrates a problem, which may be a bug, or may be a deliberate change introduced into mpl 0.91.1. It works fine with mpl 0.90.1 but gives a traceback with 0.91.1 - it seems not to be happy with the subplot limits. Commenting out the "note 1" line lets it run and demonstrates my real question. With scatter(), the first subplot doesn't rescale, but if line "note 2" is commented out and "note 3" is uncommented, it rescales. How do I prevent the rescaling? I prefer plot() instead of scatter() in this case because of the plot origin. thanks, Gary R. -- from pylab import * rcFig = {'figsize': (2,1), 'dpi': 256, 'subplot.hspace': 0.0, 'subplot.wspace': 0.0, 'subplot.bottom': 0.0, 'subplot.left': 0.0, 'subplot.right': 1.0, 'subplot.top': 1.0, } rc('figure', **rcFig) # note 1 subplot(121) axis('off') imshow(rand(20,20)) subplot(122) axis('off') imshow(rand(20,20)) subplot(121) scatter([5,10],[5,10]) # note 2 #~ plot([5,10],[5,10], 'o') # note 3 show() -- |
From: John H. <jd...@gm...> - 2007-12-21 02:42:45
|
On Dec 20, 2007 10:09 AM, <lis...@ma...> wrote: > I was not sure on which list to post this, but perhaps someone here > can point me in the right direction. I maintain a few installers of > scientific python packages for OSX, one of which being matplotlib. I > generate mpkg installers with bdist_mpkg, and for the most part it > works fine. However, for matplotlib, many users report the following > error after installing and importing: > > backend = matplotlib.rcParams['backend'] > AttributeError: 'module' object has no attribute 'rcParams' > > By context, I assume this has something to do with the matplotlibrc > setup. This does not happen, by the way, when installing directly (ie. > using python setup.py install) or via eggs. If anyone knows why this > may be happening, I would appreciate some feedback My guess is that you're installing basemap or some other matplotlib.toolkits package with the setuptools namespace code (or you users are), and this is wreaking havoc and causing the mpl __init__.py code to not be read. The latest svn has the namespace code commented out in matplotlib.toolkits. You can try building from svn, and your uses will probably need to clean all the setuptools, namespace-ified matplotlib and matplotlib.toolkits from their systems. JDH |
From: Dan C. <jd...@uw...> - 2007-12-20 21:22:36
|
I regularly make log-log errorbar plots where the errors are larger than the y values. This means that the error bar goes a finite distance upwards, but should go infinitely far downwards. In Debian's 0.87.7-0.3 package, just the top portion is drawn, which seems like a reasonable solution. But in Ubuntu's 0.90.1-2ubuntu1 package, trying to do a plot like this causes an error. Any ideas? Dan $ python Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from pylab import * >>> errorbar([1],[1],[2]) (<matplotlib.lines.Line2D instance at 0xb5ac024c>, [<matplotlib.lines.Line2D instance at 0xb5ac00cc>, <matplotlib.lines.Line2D instance at 0xb5ac00ec>], [<matplotlib.collections.LineCollection instance at 0xb5abdfac>]) >>> gca().set_yscale('log') >>> show() Exception in Tkinter callback Traceback (most recent call last): File "lib-tk/Tkinter.py", line 1406, in __call__ return self.func(*args) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 151, in resize self.show() File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 154, in draw FigureCanvasAgg.draw(self) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 392, in draw self.figure.draw(renderer) File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 601, in draw for a in self.axes: a.draw(renderer) File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1286, in draw a.draw(renderer) File "/usr/lib/python2.5/site-packages/matplotlib/collections.py", line 700, in draw transoffset) ValueError: Domain error on transOffset->operator in draw_line_collection |
From: <lis...@ma...> - 2007-12-20 16:09:58
|
I was not sure on which list to post this, but perhaps someone here =20 can point me in the right direction. I maintain a few installers of =20 scientific python packages for OSX, one of which being matplotlib. I =20 generate mpkg installers with bdist_mpkg, and for the most part it =20 works fine. However, for matplotlib, many users report the following =20 error after installing and importing: backend =3D matplotlib.rcParams[=92backend=92] AttributeError: =91module=92 object has no attribute =91rcParams=92 By context, I assume this has something to do with the matplotlibrc =20 setup. This does not happen, by the way, when installing directly (ie. =20= using python setup.py install) or via eggs. If anyone knows why this =20 may be happening, I would appreciate some feedback. I'm also wondering if it may ultimately be easier to build eggs, then =20= perhaps wrap in a nice applescript for a point-and-click installer. Thanks, cf |
From: <bre...@un...> - 2007-12-19 20:45:49
|
A good reminder to check that site out. There is alsoTreeMap, which uses coloured rectangles. http://www.scipy.org/TreeMap Jessica Lu <jl...@as...> Sent by: mat...@li... 20/12/2007 05:30 AM To cc Bryan Fodness <bry...@gm...>, matplotlib <mat...@li...> Subject Re: [Matplotlib-users] drawing a box There is an example of this on the scipy matplotlib cookbook: http://www.scipy.org/Cookbook/Matplotlib/ShadedRegions Cheers, Jessica On Dec 18, 2007, at 7:58 PM, John Hunter wrote: > On Dec 18, 2007 9:47 PM, Bryan Fodness <bry...@gm...> > wrote: >> I do want a rectangle. And, I have tried, >> >> axvline(x=x1, ymin=y1, ymax=y2) >> axvline(x=x2, ymin=y1, ymax=y2) >> axhline(y=y1, xmin=x1, xmax=x2) >> axhline(y=y2, xmin=x1, xmax=x2) >> > > You can either use the plot function "fill" > > > In [1]: xs = [0, 0, 1, 1] > > In [2]: ys = [0, 2, 2, 0] > > In [3]: fill(xs, ys) > Out[3]: [<matplotlib.patches.Polygon instance at 0x23d86e8>] > > or create a matplotlib.patches.Rectangle instance, eg > http://matplotlib.sf.net/examples/alignment_test.py > > ---------------------------------------------------------------------- > --- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ > marketplace > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ UNITED GROUP This email message is the property of United Group. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, you may not disclose, copy or distribute this email, nor take or omit to take any action in reliance on it. United Group accepts no liability for any damage caused by this email or any attachments due to viruses, interference, interception, corruption or unauthorised access. If you have received this email in error, please notify United Group immediately by email to the sender's email address and delete this document. |
From: Jessica Lu <jl...@as...> - 2007-12-19 18:29:55
|
There is an example of this on the scipy matplotlib cookbook: http://www.scipy.org/Cookbook/Matplotlib/ShadedRegions Cheers, Jessica On Dec 18, 2007, at 7:58 PM, John Hunter wrote: > On Dec 18, 2007 9:47 PM, Bryan Fodness <bry...@gm...> > wrote: >> I do want a rectangle. And, I have tried, >> >> axvline(x=x1, ymin=y1, ymax=y2) >> axvline(x=x2, ymin=y1, ymax=y2) >> axhline(y=y1, xmin=x1, xmax=x2) >> axhline(y=y2, xmin=x1, xmax=x2) >> > > You can either use the plot function "fill" > > > In [1]: xs = [0, 0, 1, 1] > > In [2]: ys = [0, 2, 2, 0] > > In [3]: fill(xs, ys) > Out[3]: [<matplotlib.patches.Polygon instance at 0x23d86e8>] > > or create a matplotlib.patches.Rectangle instance, eg > http://matplotlib.sf.net/examples/alignment_test.py > > ---------------------------------------------------------------------- > --- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ > marketplace > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Stephane R. <ste...@gm...> - 2007-12-19 18:25:38
|
Hi, when matplotlib processes variables, it makes sure to handle masked variables (numpy.ma) by converting them using "soft " numpy.ma.asarray. So, when a subclass instance of numpy.ma is used as a variable, it keeps properties and methods in this operation that can be conflicting with future processing. An example of problematic input variable can be cdms variable (from CDAT - cdat.sourceforge.net/). Such a variable is like a numpy.ma with axes (like time, longitude, latitude, etc) and attributes (like missing value, name, units). A problem for example is that it cannot handle "newaxis" slicings (var[:,newaxis]) that matplotlib uses to be sure that a variable has a suitable rank. In addition, other properties of cdms variable ares not interesting for matplotlib processing. Therefore, it may be useful to strictly convert input variables to pure numpy.ma using something like numpy.ma.array(var,copy=0). Is it feasible? -- Stephane Raynaud |
From: John H. <jd...@gm...> - 2007-12-19 03:58:50
|
On Dec 18, 2007 9:47 PM, Bryan Fodness <bry...@gm...> wrote: > I do want a rectangle. And, I have tried, > > axvline(x=x1, ymin=y1, ymax=y2) > axvline(x=x2, ymin=y1, ymax=y2) > axhline(y=y1, xmin=x1, xmax=x2) > axhline(y=y2, xmin=x1, xmax=x2) > You can either use the plot function "fill" In [1]: xs = [0, 0, 1, 1] In [2]: ys = [0, 2, 2, 0] In [3]: fill(xs, ys) Out[3]: [<matplotlib.patches.Polygon instance at 0x23d86e8>] or create a matplotlib.patches.Rectangle instance, eg http://matplotlib.sf.net/examples/alignment_test.py |
From: Bryan F. <bry...@gm...> - 2007-12-19 03:47:05
|
I do want a rectangle. And, I have tried, axvline(x=3Dx1, ymin=3Dy1, ymax=3Dy2) axvline(x=3Dx2, ymin=3Dy1, ymax=3Dy2) axhline(y=3Dy1, xmin=3Dx1, xmax=3Dx2) axhline(y=3Dy2, xmin=3Dx1, xmax=3Dx2) On Dec 18, 2007 10:40 PM, John Hunter <jd...@gm...> wrote: > On Dec 18, 2007 9:00 PM, Bryan Fodness <bry...@gm...> wrote: > > I would like to draw a polygon using a x1, x2, y1, and y2. > > At a minimum, x1, x2, y1, and y2 define a line segment, or at most a > rectangle. You say a "polygon". What exactly do you mean, and what > have you tried (code please)? > > JDH > --=20 "The game of science can accurately be described as a never-ending insult t= o human intelligence." - Jo=E3o Magueijo |
From: John H. <jd...@gm...> - 2007-12-19 03:40:50
|
On Dec 18, 2007 9:00 PM, Bryan Fodness <bry...@gm...> wrote: > I would like to draw a polygon using a x1, x2, y1, and y2. At a minimum, x1, x2, y1, and y2 define a line segment, or at most a rectangle. You say a "polygon". What exactly do you mean, and what have you tried (code please)? JDH |
From: Bryan F. <bry...@gm...> - 2007-12-19 03:00:53
|
I would like to draw a polygon using a x1, x2, y1, and y2. I tried to use axhline and axvline with the min and max values but it does give the desired result. It changes the axis limits and does not draw a line at all. Any help would be appreciated. Bryan --=20 "The game of science can accurately be described as a never-ending insult t= o human intelligence." - Jo=E3o Magueijo |
From: G. O. N. <g_n...@ho...> - 2007-12-18 22:42:55
|
Hello, I just started looking into python and matplotlib a few days ago and I am a= mazed that this software can do more or less the same as MATLAB. I just hav= e a couple of questions regarding some stuff that I spent a lot of time wit= hout figuring out. 1. Is there a way to change the font type and font size of the numbers on t= he axes in a figure? Not the labels (xlabel and ylabel - they are easy to c= hange), but the actual numbers. If for example x goes from 0 to 6 in step o= f 2, the numbers showing below the x axis would be 0, 2, 4, and 6 for examp= le. It is the fontsize and font of these numbers that I want to change. It = must be some axis property but I cannot figure it out. 2. I will be using the figures plotted in matplotlib mainly to import them = in LATEX documents. Since Latex uses Computer modern font by default, is th= ere a way to change the default font in matplotlib to match it? What would = be the actual command? 3. The data that I would like to plot is in an ASCII format, where the firs= t row and column is text and the rest is numbers. What would be the best wa= y to import that into maplotlib and then assign a variable name to each col= umn (without the first entry, which would be the variable name). Thanks a lot in advance. _________________________________________________________________ =C1=D4=DE=D1=D8=D9 =E1=D5 =E1=EA=E1 =E1=DB=D5=D4=D2=D0=E9=D0=E2=D0 =D3=D5= =DD=D5=E0=D0=E6=D8=EF Windows Live =E3=E1=DB=E3=D3=D8 =E1=D5=D3=D0! http://get.live.com= |
From: Darren D. <dar...@co...> - 2007-12-18 16:41:43
|
On Tuesday 18 December 2007 10:55:36 am Peter-Jan Randewijk wrote: > Darren, > > Thanks for the quick reply... It works like a charm... Somehow I > missed the post in the userslist... You're off the hook :) It was posted at the sourceforge bugtracker, not on the mailing list. > Op 2007/12/18 17:25, het Darren Dale die volgende geskryf: > > Somebody reported it right after 0.91.1 was released. It has been fixed > > in svn. To hold you over until the next release, I think you just need to > > update your matplotlib/__init__.py and matplotlib/rcsetup.py. > > > > On Tuesday 18 December 2007 10:07:28 am Peter-Jan Randewijk wrote: > >> Dear Darren, > >> > >> I know "text.latex.preamble" is not supported, but since I upgraded to > >> Matplotlib 0.91.1 my latex preamble code which was working perfectly > >> well in 0.90.1, now gives my the follow errors (both on openSUSE & XP): > >> > >> In [1]: run overlap_vs_concentrated.py > >> C:\Python\lib\site-packages\matplotlib\__init__.py:606: UserWarning: Bad > >> val "\u > >> sepackage[cmex10]{amsmath},\usepackage{helvet},\usepackage{sansserifmath > >>}" on li > >> ne #128 > >> "text.latex.preamble : > >> \usepackage[cmex10]{amsmath},\usepackage{he > >> lvet},\usepackage{sansserifmath} > >> " > >> in file "c:\My Documents\My > >> Publications\PEDS-2007\Paper_I\Presentation\ > >> python\matplotlibrc" > >> global name 'verbose' is not defined > >> "%s"\n\t%s' % (val, cnt, line, fname, msg)) > >> > >> Has the syntax changed... or is this a bug...? > >> > >> I also get this error message w.r.t. to "verbose" which isn't critical > >> but annoying... > >> > >> Kind regards, > >> > >> Peter-Jan > >> > >> Op 2007/05/18 18:05, het Alexander Schmolck die volgende geskryf: > >>> Darren Dale <dd...@co...> writes: > >>>>> Well, if ever there was a compelling use-case for an > >>>>> undocumented/unsupported feature it would be this one, I think. > >>>> > >>>> Alright, svn 3277 lets you add additional commands to the preamble: > >>>> > >>>> text.latex.preamble : \usepackage{bm},\renewcommand{etc...} > >>>> > >>>> See the default matplotlibrc file for more information. > >>>> > >>>> THIS FEATURE IS NOT SUPPORTED. Please don't report problems on the mpl > >>>> mailing lists without submitting a patch to fix them. > >>>> > >>>> Alex, please give this a spin. Tell me if it meets your needs, and if > >>>> it doesnt, send a patch. > >>> > >>> Great! Thanks for incorporating this! It fits my needs, but I sent a > >>> (mostly unreleated) patch anyway (against 3278) :) > >>> > >>> cheers, > >>> > >>> 'as > >>> > >>> ----------------------------------------------------------------------- > >>>-- This SF.net email is sponsored by DB2 Express > >>> Download DB2 Express C - the FREE version of DB2 express and take > >>> control of your XML. No limits. Just data. Click to get it now. > >>> http://sourceforge.net/powerbar/db2/ > >>> _______________________________________________ > >>> Matplotlib-users mailing list > >>> Mat...@li... > >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. Staff Scientist Cornell High Energy Synchrotron Source Cornell University 275 Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dar...@co... office: (607) 255-3819 fax: (607) 255-9001 http://www.chess.cornell.edu |