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
(13) |
3
(1) |
4
(4) |
5
(10) |
6
(13) |
7
(14) |
8
(3) |
9
(10) |
10
(3) |
11
|
12
(2) |
13
(8) |
14
(4) |
15
(4) |
16
(12) |
17
|
18
|
19
(7) |
20
(3) |
21
(1) |
22
(1) |
23
(28) |
24
(2) |
25
(3) |
26
(4) |
27
(8) |
28
(4) |
29
(4) |
30
(6) |
31
(3) |
From: Michael D. <md...@st...> - 2013-08-05 18:14:43
|
The problem is that a 0-length dash or space is undefined. In Agg, it causes an infinite loop (presumably because the line cursor never moves). Saving it to a PDF file and opening it in Acrobat Reader reveals a blank page (presumably because it's doing something smarter, but also basically throwing up its hands). In SVG, you get a solid line, which may or may not be the right behavior. Given that a value of 0 doesn't make much sense anyway, I thought it best to just disallow it. Jeffrey: Do you have a good need for this? Here's the original PR: https://github.com/matplotlib/matplotlib/pull/1999 Mike On 08/05/2013 01:36 PM, Benjamin Root wrote: > @mdboom, from git blame, this looks to be specifically introduced by > you via |7e7b5320 > <https://github.com/matplotlib/matplotlib/commit/7e7b532057c08541489203697987a924e56a7aeb> > on May 15th, and you even added some tests for handling path > clipping. Perhaps the choice of "<=" should have been just "<"?| > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Benjamin R. <ben...@ou...> - 2013-08-05 17:36:51
|
@mdboom, from git blame, this looks to be specifically introduced by you via 7e7b5320<https://github.com/matplotlib/matplotlib/commit/7e7b532057c08541489203697987a924e56a7aeb>on May 15th, and you even added some tests for handling path clipping. Perhaps the choice of "<=" should have been just "<"? |
From: Michael D. <md...@st...> - 2013-08-05 14:55:21
|
docutils is the library that supports the format (restructuredtext) that these docstrings are written in. It *may* (I haven't looked) contain functionality to render as clean plain text. Mike On 08/05/2013 09:57 AM, federico vaggi wrote: > Hi, > > SciPy (and NumPy) docstrings are written with a special kind of mark up: > > For example, the docstring for the russellrao distance function looks > like this: > > '\n Computes the Russell-Rao dissimilarity between two boolean 1-D > arrays.\n\n The Russell-Rao dissimilarity between two boolean 1-D > arrays, `u` and\n `v`, is defined as\n\n .. math::\n\n > \\frac{n - c_{TT}}\n {n}\n\n where :math:`c_{ij}` is the number of > occurrences of\n :math:`\\mathtt{u[k]} = i` and > :math:`\\mathtt{v[k]} = j` for\n :math:`k < n`.\n\n Parameters\n > ----------\n u : (N,) array_like, bool\n Input array.\n > v : (N,) array_like, bool\n Input array.\n\n Returns\n > -------\n russellrao : double\n The Russell-Rao > dissimilarity between vectors `u` and `v`.\n\n ' > > What's the most efficient way to turn this into a format where you can > format it nicely as a matplotlib text object? > > I tried: > > fig = plt.figure() > > ax = fig.add_subplot(111) > > props = dict(boxstyle='round', facecolor='wheat', alpha=0.5) > > textstr = dist_fcn.__doc__ > > textstr = textstr.replace('math:',' ') > > textstr = textstr.replace('`', '$') > > textstr = textstr.replace('\n\n where', '$\n\n where') > > ax.text(0.05, 0.95, textstr, transform=ax.transAxes, fontsize=14, > > verticalalignment='top', bbox=props) > > > Which does an 'ok' job, at best, since fractions aren't converted > properly. Is there a way to do it nicely short of using some > horrendous regular expressions? > > > Federico > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Michael D. <md...@st...> - 2013-08-05 14:29:46
|
On 08/03/2013 07:50 AM, Rita wrote: > Same problem in Linux also. Here is what I did to fix it: Remove the > freetype/fontconfig rpm from my local install (yum remove) and then > place the proper PKG_CONFIG_PATH to point to my remote > freetype/fontconfig. By remote, you mean self-built, rather than from a package? > The problem is there is a bug with setupext.py. We ought to prepend > PKG_CONFIG_PATH in the gcc compile statement. I hope this helps. Can you elaborate? The setupext.py just calls whatever pkg-config is first on the PATH, which should then in turn obey PKG_CONFIG_PATH. If the user needs a custom PKG_CONFIG_PATH, it is generally the resposibility of the user to set it correctly -- and matplotlib's build system should (and does) use it. Or maybe I'm just misunderstanding what you're suggesting. Cheers, Mike > > > > > > On Fri, Aug 2, 2013 at 6:53 AM, Andrew Jaffe <a.h...@gm... > <mailto:a.h...@gm...>> wrote: > > Hi, > > > On 01/08/2013 19:06, Michael Droettboom wrote: > > On behalf of a veritable army of super coders, I'm pleased to > announce > > the release of matplotlib 1.3.0. > > Two issues on OSX 10.8.4. I had been previously using the dmg > installer. > Lacking that, I tried easy-install and pip install, both of which gave > me the following problems: > > - I needed to set CC=clang > - When attempting to load matplotlib, I got the following error: > > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/font_manager.py > in <module>() > 51 import matplotlib > 52 from matplotlib import afm > ---> 53 from matplotlib import ft2font > 54 from matplotlib import rcParams, get_cachedir > 55 from matplotlib.cbook import is_string_like > > ImportError: > dlopen(/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so, > 2): Symbol not found: _FT_Attach_File > Referenced from: > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so > Expected in: flat namespace > in > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so > > > This is a freetype problem, probably an incompatible version > somewhere. > Ideas? > > Andrew > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > -- > --- Get your facts first, then you can distort them as you please.-- > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: federico v. <vag...@gm...> - 2013-08-05 13:57:19
|
Hi, SciPy (and NumPy) docstrings are written with a special kind of mark up: For example, the docstring for the russellrao distance function looks like this: '\n Computes the Russell-Rao dissimilarity between two boolean 1-D arrays.\n\n The Russell-Rao dissimilarity between two boolean 1-D arrays, `u` and\n `v`, is defined as\n\n .. math::\n\n \\frac{n - c_{TT}}\n {n}\n\n where :math:`c_{ij}` is the number of occurrences of\n :math:`\\mathtt{u[k]} = i` and :math:`\\mathtt{v[k]} = j` for\n :math:`k < n`.\n\n Parameters\n ----------\n u : (N,) array_like, bool\n Input array.\n v : (N,) array_like, bool\n Input array.\n\n Returns\n -------\n russellrao : double\n The Russell-Rao dissimilarity between vectors `u` and `v`.\n\n ' What's the most efficient way to turn this into a format where you can format it nicely as a matplotlib text object? I tried: fig = plt.figure() ax = fig.add_subplot(111) props = dict(boxstyle='round', facecolor='wheat', alpha=0.5) textstr = dist_fcn.__doc__ textstr = textstr.replace('math:',' ') textstr = textstr.replace('`', '$') textstr = textstr.replace('\n\n where', '$\n\n where') ax.text(0.05, 0.95, textstr, transform=ax.transAxes, fontsize=14, verticalalignment='top', bbox=props) Which does an 'ok' job, at best, since fractions aren't converted properly. Is there a way to do it nicely short of using some horrendous regular expressions? Federico |
From: Tyrax <j....@gm...> - 2013-08-05 09:36:23
|
Hi Chao, I think I could make it work somehow but I thought that such a functionality would be really nice to have in general. Tyrax -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704p41709.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Scott L. <sl...@sp...> - 2013-08-05 02:26:52
|
On Aug 4, 2013, at 4:47 PM, Matthew Brett <mat...@be...> wrote: > Hi, > > Congratulations on the new release. > > I just tried installing in a fresh installation of Python 2.7 from Python.org > > Am I right in thinking the recommended method is: > > pip install matplotlib > > ? I did this, and then: > >>>> import matplotlib.pyplot as plt > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py", > line 24, in <module> > import matplotlib.colorbar > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/colorbar.py", > line 29, in <module> > import matplotlib.collections as collections > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/collections.py", > line 23, in <module> > import matplotlib.backend_bases as backend_bases > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py", > line 50, in <module> > import matplotlib.textpath as textpath > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/textpath.py", > line 14, in <module> > from matplotlib.mathtext import MathTextParser > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py", > line 62, in <module> > import matplotlib._png as _png > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so, > 2): Library not loaded: /usr/X11/lib/libpng12.0.dylib > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so > Reason: Incompatible library version: _png.so requires version > 42.0.0 or later, but libpng12.0.dylib provides version 36.0.0 > > There were no previous versions of matplotlib installed. This on OSX 10.6: > > Python 2.7.5 just installed from python.org > X11 installed from the Apple installation disks for 10.6 before `pip > install matplotlib` > No homebrew etc > > Any hints about how I should debug this further? > > Thanks a lot for any help, > > Matthew I was able to install numpy 1.7.1 and matplotlib 1.30 under OS X 10.6.8 with X11 version XQuartz 2.3.6 (xorg-server 1.4.2-apple56) and python 2.7.5 64-bit from python.org using pip 1.4. Have you tried running Software Update? If you installed X11 after updating to 10.6.8 you can run the combo updater ( http://support.apple.com/kb/DL1399 ) to get the latest X11. Alternately, you could try installing XQuartz from http://xquartz.macosforge.org/landing/ hth, Scott |
From: Matthew B. <mat...@be...> - 2013-08-04 20:47:40
|
Hi, Congratulations on the new release. I just tried installing in a fresh installation of Python 2.7 from Python.org Am I right in thinking the recommended method is: pip install matplotlib ? I did this, and then: >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py", line 24, in <module> import matplotlib.colorbar File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/colorbar.py", line 29, in <module> import matplotlib.collections as collections File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/collections.py", line 23, in <module> import matplotlib.backend_bases as backend_bases File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 50, in <module> import matplotlib.textpath as textpath File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/textpath.py", line 14, in <module> from matplotlib.mathtext import MathTextParser File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py", line 62, in <module> import matplotlib._png as _png ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so, 2): Library not loaded: /usr/X11/lib/libpng12.0.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so Reason: Incompatible library version: _png.so requires version 42.0.0 or later, but libpng12.0.dylib provides version 36.0.0 There were no previous versions of matplotlib installed. This on OSX 10.6: Python 2.7.5 just installed from python.org X11 installed from the Apple installation disks for 10.6 before `pip install matplotlib` No homebrew etc Any hints about how I should debug this further? Thanks a lot for any help, Matthew |
From: ChaoYue <cha...@gm...> - 2013-08-04 20:13:17
|
could you use the bbox_to_anchor keyword to place your legend in a precise way so that they could be alignd? sorry ,this is the only way I could think of (But I am not a real expert in matplotlib) Chao On Sun, Aug 4, 2013 at 5:45 PM, Tyrax [via matplotlib] < ml-...@n5...> wrote: > Hi all, > > this is my first eMail to a mailing list, I hope I'm not messing it up. I > posted my question already on stackoverflow, but apparently there's no > simple solution to it: > > http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend > > In other words, I have a Figure with a many-entries-legend, but the legend > text for most but not all of the object is very short. I'd like to use two > or more columns for those short entries and switch back to single column > mode when dealing with the longer legend entries. > > Two options came to my mind. One, make the legend work like a > multicolumn-table in LaTeX or, two, having a container with multiple, > well-aligned legends with individual properties for each one. > > I tried to solve my problem by setting up two legends. The downside is the > need for additional aligning of the two legends. Even this is still beyond > my skills. > > Thanks, Tyrax > > ------------------------------------------------------------------------------ > > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=41704&i=0> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704.html > To start a new topic under matplotlib - users, email > ml-...@n5... > To unsubscribe from matplotlib, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx> > . > NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************ -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704p41706.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Pierre H. <pie...@cr...> - 2013-08-04 18:44:10
|
Hi Frédéric, I don't understand what is the "dictionnary of figures" feature you are mentionning. Maybe you could write a short mockup script using it ? However, it's worth mentionning that you can use not only numbers in figures but also *strings*. >>> fig = plt.figure('crude oil price') I use this 95 % of the time. I think it helps a lot the figure addressing problem. best, Pierre Le 29/07/2013 16:34, Frédéric Parrenin a écrit : > Currently, one call figures with their number in matplotlib. > If you have a code which draw a lot a different figures at different > places with some of them being optional, this is not very convenient. > > One convenient way to call figure would be to use a dictionnary of > figures. > Of course I could create some wrapper around matplotlib.figure > function but it would be far more convenient if such feature would be > standard in matplotlib. > > Is there any plan to implement such a feature? > > Best regards, > > Frédéric Parrenin |
From: Jens N. <j....@gm...> - 2013-08-04 15:43:53
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi all,</div> <div> </div> <div>this is my first eMail to a mailing list, I hope I'm not messing it up. I posted my question already on stackoverflow, but apparently there's no simple solution to it:</div> <div><a href="http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend" target="_blank">http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend</a></div> <div> </div> <div>In other words, I have a Figure with a many-entries-legend, but the legend text for most but not all of the object is very short. I'd like to use two or more columns for those short entries and switch back to single column mode when dealing with the longer legend entries.</div> <div> </div> <div>Two options came to my mind. One, make the legend work like a multicolumn-table in LaTeX or, two, having a container with multiple, well-aligned legends with individual properties for each one.</div> <div> </div> <div>I tried to solve my problem by setting up two legends. The downside is the need for additional aligning of the two legends. Even this is still beyond my skills.</div> <div> </div> <div>Thanks, Tyrax</div></div></body></html> |
From: Rita <rmo...@gm...> - 2013-08-03 11:50:37
|
Same problem in Linux also. Here is what I did to fix it: Remove the freetype/fontconfig rpm from my local install (yum remove) and then place the proper PKG_CONFIG_PATH to point to my remote freetype/fontconfig. The problem is there is a bug with setupext.py. We ought to prepend PKG_CONFIG_PATH in the gcc compile statement. I hope this helps. On Fri, Aug 2, 2013 at 6:53 AM, Andrew Jaffe <a.h...@gm...> wrote: > Hi, > > > On 01/08/2013 19:06, Michael Droettboom wrote: > > On behalf of a veritable army of super coders, I'm pleased to announce > > the release of matplotlib 1.3.0. > > Two issues on OSX 10.8.4. I had been previously using the dmg installer. > Lacking that, I tried easy-install and pip install, both of which gave > me the following problems: > > - I needed to set CC=clang > - When attempting to load matplotlib, I got the following error: > > > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/font_manager.py > in <module>() > 51 import matplotlib > 52 from matplotlib import afm > ---> 53 from matplotlib import ft2font > 54 from matplotlib import rcParams, get_cachedir > 55 from matplotlib.cbook import is_string_like > > ImportError: > > dlopen(/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so, > 2): Symbol not found: _FT_Attach_File > Referenced from: > > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so > Expected in: flat namespace > in > > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so > > > This is a freetype problem, probably an incompatible version somewhere. > Ideas? > > Andrew > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- --- Get your facts first, then you can distort them as you please.-- |
From: Benjamin R. <ben...@ou...> - 2013-08-02 19:55:01
|
On Fri, Aug 2, 2013 at 3:32 PM, Eric Firing <ef...@ha...> wrote: > On 2013/08/02 8:55 AM, Drain, Theodore R (392P) wrote: > > Thanks - we'll look into that. We might also see how hard it would > > be to implement an update or refresh method on the legend that could > > be called when the lines change to keep the legend in sync. Seems > > like the legend should own that functionality since it set up the > > mapping between the lines and what it's displaying... > > I agree entirely. It would be logical for the legend to either have a > manual refresh method, or perhaps to be coupled to its targets the way a > colorbar is coupled to its mappable, tracking it automatically. The > Legend is a very complex beast, however, so I suspect this is a real > project. > > Mike and I discussed this at the recent conference. What makes ScalarMappable different from other artists is that it has attribute caching and it has callback mechanisms for changes to certain attributes. This is why colorbar can change with its image. These features needs to be better generalized and cleaned up, and then applied to *all* attributes. Another issue is that the artist objects contained in the legend are created from the artist objects that it represents -- at the time of legend creation. All color, linestyle marker, etc. attributes are copied rather than referenced in the artists in the legend. Therefore, any changes to either doesn't impact the other, unfortunately. So, there are two approaches to solve this. 1) implement a generic, efficient callback mechanism for attributes (and proper caching to reduce unneeded dispatches) and have the legend object register callbacks for any changes in the legend entries. 2) have a mechanism for some sort of shared attributes. Just thinking out loud... wishing I had the time to actually implement my ideas... Cheers! Ben Root |
From: Eric F. <ef...@ha...> - 2013-08-02 19:32:40
|
On 2013/08/02 8:55 AM, Drain, Theodore R (392P) wrote: > Thanks - we'll look into that. We might also see how hard it would > be to implement an update or refresh method on the legend that could > be called when the lines change to keep the legend in sync. Seems > like the legend should own that functionality since it set up the > mapping between the lines and what it's displaying... I agree entirely. It would be logical for the legend to either have a manual refresh method, or perhaps to be coupled to its targets the way a colorbar is coupled to its mappable, tracking it automatically. The Legend is a very complex beast, however, so I suspect this is a real project. |
From: Benjamin R. <ben...@ou...> - 2013-08-02 19:18:08
|
On Sun, Jul 28, 2013 at 7:14 AM, Jeffrey Spencer <jef...@gm...>wrote: > Ben, > > Thanks that works great and also one more question. If you look at the > previous example. I have noticed that at the angle the figure is at the > ticklabels look like they are at the center of the grid boxes. This is not > the case because if you turn it to the side as the example below image.pdf. > The 0.00, 0.05 on the I_lw axis are supposed to be at the actual tick marks. > > > Thus, can the axis be manually moved too? This isn't a huge deal but I was > just wondering if it was possible to offset the ticklabels. I looked in the > _axinfo but looks like for ticklabel their is only a space_factor parameter. > > Cheers, > Jeff > > The effect you are seeing is that the tick labels are set to be below and in front of the tick marks. More specifically, what happens is that the ticklabels (and the axis label) are offsetted away from the center of the domain. The space_factor value you found is just some empirical value that I have found to work fairly well. Effectively, there is only a "radial"-like control over the spacing, not a finer-grained control. That being said, you can modify the "va" value of the _axinfo to control the vertical allignment of the labels. I would wonder if messing around with that might have some desired impact. Another possibility is to use '\n' characters before or after the main text for the label to make an apparent shift. Just some ideas to play around with. Cheers! Ben Root |
From: Drain, T. R (392P) <the...@jp...> - 2013-08-02 18:56:08
|
Thanks - we'll look into that. We might also see how hard it would be to implement an update or refresh method on the legend that could be called when the lines change to keep the legend in sync. Seems like the legend should own that functionality since it set up the mapping between the lines and what it's displaying... ________________________________________ From: Eric Firing [ef...@ha...] Sent: Thursday, August 01, 2013 8:37 PM To: mat...@li... Subject: Re: [Matplotlib-users] Update legend when lines change color? On 2013/08/01 4:23 PM, Drain, Theodore R (392P) wrote: > I have an application where the user can edit line colors and other attributes after the plot is drawn. The artists update just fine but the legend doesn't change. > >>From what I can see in the legend code, it doesn't seem like there is any mechanism in place for doing this. Does anyone have any ideas on the best way to implement something like this? > > Here is a simplified script to show the issue: > > import pylab as p > p.ion() > l = p.plot( [1,2,3], 'b', label="foo" ) > p.legend() > > raw_input( "press return..." ) > l[0].set_color( "green" ) > p.draw() > > Thanks, > Ted If you keep a reference to the Legend object, then you can call its get_lines() method to get a list of Line2D objects corresponding to the objects returned by plot(). You can use the set_color() method on them. Maybe this is enough if your application is simple enough. Eric ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Drain, T. R (392P) <the...@jp...> - 2013-08-02 18:53:22
|
Thanks! Either of those looks like it will work. I'll play w/ both of them to see which fits better w/ my existing code. Ted ________________________________ From: Goodman, Alexander (398J-Affiliate) [go...@jp...] Sent: Friday, August 02, 2013 11:16 AM To: Benjamin Root Cc: Drain, Theodore R (392P); mat...@li... Subject: Re: [Matplotlib-users] Splitting arrays into chunks that satisfy a condition? Hi Ted, As far as actually splitting up a numpy array into contiguous chunks fulfilling a condition, there is a very good solution posted on stackoverflow: http://stackoverflow.com/questions/4494404/find-large-number-of-consecutive-values-fulfilling-condition-in-a-numpy-array If you use the contiguous_regions function from the first answer, this code should give you what you want: xneg = [x[slice(*reg)] for reg in contiguous_regions(z < 0)] xpos = [x[slice(*reg)] for reg in contiguous_regions(z >= 0)] Thanks, Alex On Fri, Aug 2, 2013 at 10:45 AM, Benjamin Root <ben...@ou...<mailto:ben...@ou...>> wrote: On Fri, Aug 2, 2013 at 1:36 PM, Drain, Theodore R (392P) <the...@jp...<mailto:the...@jp...>> wrote: I have three arrays (x,y,z). I want plot x vs y and draw the line segments differently depending on whether or not z is positive or negative. So I'm trying to split the x,y arrays into chunks depending on the value of z. Using numpy.where, I can find the indeces in z that satisfy a condition but I can't figure out an efficient way (other than brute force) to split the array up into continuous chunks. Does anyone know of a numpy trick that would help with this? Here's a simple example: # index: 0 1 2 3 4 5 6 7 8 9 z=numpy.array([-1,-1,-1, 1, -1,-1,-1, 1,1,1] ) x=numpy.array([-2,-3,-4, 2, -5,-6,-7, 3,4,5] ) # Want: xneg = [ x[0:3], x[4:7] ], xpos = [ x[3:4], x[7:10] ] xneg = [ [-2,-3,-4], [-5,-6,-7] ] xpos = [ [ 2 ], [ 3, 4, 5 ] ] idxneg = numpy.where( z < 0 )[0] # == [ 0,1,2, 4,5,6 ] idxpos = numpy.where( z >= 0 )[0] # == [ 3, 7,8,9 ] Thanks, Ted One way I would go about it is to do this: z1 = numpy.where(z < 0, z, numpy.nan) z2 = numpy.where(z >= 0, z, numpy.nan) And then plot those against x. matplotlib ignores nans and would break up the line where-ever a nan shows up (assuming that is the effect you want). Cheers! Ben Root -- Alex Goodman |
From: Jeffrey S. <jef...@gm...> - 2013-08-02 18:38:35
|
Yes, I see that now. I hadn't noticed that the face color for the bottom of the 3d plot is off as well. Thanks for the update and keep me posted. Cheers, Jeff On Sat, Aug 3, 2013 at 3:41 AM, Benjamin Root <ben...@ou...> wrote: > > > > On Fri, Jul 26, 2013 at 4:41 PM, Jeffrey Spencer <jef...@gm...>wrote: > >> I have version 1.2.x of matplotlib. The minimal example shows the case >> below. The back wall will lose its lines. Is there a reason for this? Is >> there a transparent layer there so eps has to put it as a solid wall? If >> so, is there a way to remove that transparent layer? >> >> Pdf and the other backends have no problem exporting correctly. >> >> import matplotlib.pyplot as plt >> from mpl_toolkits.mplot3d import Axes3D >> fig = plt.figure() >> ax = fig.add_subplot(111, projection='3d') >> plt.savefig('testing.eps') >> >> > Finally had some time to investigate this a bit... > > Diving into the eps output, I can tell that the grid lines are being > output to the file, but it seems like the color of the gridline matches > that particular wall's color, which is why we can't see it. The odd thing > is that the line colors are correct, but for some reason, the face colors > are wrong for eps. Looking at the output for pdf and png, the walls are > not shaded nearly as much as it is in eps. There is probably something > messed up in our PS backend that is misinterpreting the grayscale color > information it is getting. > > Will have to dive in some more... > > Cheers! > Ben Root > |
From: Benjamin R. <ben...@ou...> - 2013-08-02 17:46:09
|
On Fri, Aug 2, 2013 at 1:36 PM, Drain, Theodore R (392P) < the...@jp...> wrote: > I have three arrays (x,y,z). I want plot x vs y and draw the line > segments differently depending on whether or not z is positive or negative. > So I'm trying to split the x,y arrays into chunks depending on the value > of z. Using numpy.where, I can find the indeces in z that satisfy a > condition but I can't figure out an efficient way (other than brute force) > to split the array up into continuous chunks. Does anyone know of a numpy > trick that would help with this? > > Here's a simple example: > > # index: 0 1 2 3 4 5 6 7 8 9 > z=numpy.array([-1,-1,-1, 1, -1,-1,-1, 1,1,1] ) > x=numpy.array([-2,-3,-4, 2, -5,-6,-7, 3,4,5] ) > > # Want: xneg = [ x[0:3], x[4:7] ], xpos = [ x[3:4], x[7:10] ] > xneg = [ [-2,-3,-4], [-5,-6,-7] ] > xpos = [ [ 2 ], [ 3, 4, 5 ] ] > > idxneg = numpy.where( z < 0 )[0] > # == [ 0,1,2, 4,5,6 ] > idxpos = numpy.where( z >= 0 )[0] > # == [ 3, 7,8,9 ] > > Thanks, > Ted > One way I would go about it is to do this: z1 = numpy.where(z < 0, z, numpy.nan) z2 = numpy.where(z >= 0, z, numpy.nan) And then plot those against x. matplotlib ignores nans and would break up the line where-ever a nan shows up (assuming that is the effect you want). Cheers! Ben Root |
From: Benjamin R. <ben...@ou...> - 2013-08-02 17:41:31
|
On Fri, Jul 26, 2013 at 4:41 PM, Jeffrey Spencer <jef...@gm...>wrote: > I have version 1.2.x of matplotlib. The minimal example shows the case > below. The back wall will lose its lines. Is there a reason for this? Is > there a transparent layer there so eps has to put it as a solid wall? If > so, is there a way to remove that transparent layer? > > Pdf and the other backends have no problem exporting correctly. > > import matplotlib.pyplot as plt > from mpl_toolkits.mplot3d import Axes3D > fig = plt.figure() > ax = fig.add_subplot(111, projection='3d') > plt.savefig('testing.eps') > > Finally had some time to investigate this a bit... Diving into the eps output, I can tell that the grid lines are being output to the file, but it seems like the color of the gridline matches that particular wall's color, which is why we can't see it. The odd thing is that the line colors are correct, but for some reason, the face colors are wrong for eps. Looking at the output for pdf and png, the walls are not shaded nearly as much as it is in eps. There is probably something messed up in our PS backend that is misinterpreting the grayscale color information it is getting. Will have to dive in some more... Cheers! Ben Root |
From: Drain, T. R (392P) <the...@jp...> - 2013-08-02 17:36:33
|
I have three arrays (x,y,z). I want plot x vs y and draw the line segments differently depending on whether or not z is positive or negative. So I'm trying to split the x,y arrays into chunks depending on the value of z. Using numpy.where, I can find the indeces in z that satisfy a condition but I can't figure out an efficient way (other than brute force) to split the array up into continuous chunks. Does anyone know of a numpy trick that would help with this? Here's a simple example: # index: 0 1 2 3 4 5 6 7 8 9 z=numpy.array([-1,-1,-1, 1, -1,-1,-1, 1,1,1] ) x=numpy.array([-2,-3,-4, 2, -5,-6,-7, 3,4,5] ) # Want: xneg = [ x[0:3], x[4:7] ], xpos = [ x[3:4], x[7:10] ] xneg = [ [-2,-3,-4], [-5,-6,-7] ] xpos = [ [ 2 ], [ 3, 4, 5 ] ] idxneg = numpy.where( z < 0 )[0] # == [ 0,1,2, 4,5,6 ] idxpos = numpy.where( z >= 0 )[0] # == [ 3, 7,8,9 ] Thanks, Ted |
From: Michael D. <md...@st...> - 2013-08-02 14:35:57
|
Can you provide the output of the build? On 08/02/2013 06:53 AM, Andrew Jaffe wrote: > Hi, > > > On 01/08/2013 19:06, Michael Droettboom wrote: >> On behalf of a veritable army of super coders, I'm pleased to announce >> the release of matplotlib 1.3.0. > Two issues on OSX 10.8.4. I had been previously using the dmg installer. > Lacking that, I tried easy-install and pip install, both of which gave > me the following problems: > > - I needed to set CC=clang > - When attempting to load matplotlib, I got the following error: > > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/font_manager.py > in <module>() > 51 import matplotlib > 52 from matplotlib import afm > ---> 53 from matplotlib import ft2font > 54 from matplotlib import rcParams, get_cachedir > 55 from matplotlib.cbook import is_string_like > > ImportError: > dlopen(/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so, > 2): Symbol not found: _FT_Attach_File > Referenced from: > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so > Expected in: flat namespace > in > /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so > > > This is a freetype problem, probably an incompatible version somewhere. > Ideas? > > Andrew > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Andrew J. <a.h...@gm...> - 2013-08-02 10:53:24
|
Hi, On 01/08/2013 19:06, Michael Droettboom wrote: > On behalf of a veritable army of super coders, I'm pleased to announce > the release of matplotlib 1.3.0. Two issues on OSX 10.8.4. I had been previously using the dmg installer. Lacking that, I tried easy-install and pip install, both of which gave me the following problems: - I needed to set CC=clang - When attempting to load matplotlib, I got the following error: /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/font_manager.py in <module>() 51 import matplotlib 52 from matplotlib import afm ---> 53 from matplotlib import ft2font 54 from matplotlib import rcParams, get_cachedir 55 from matplotlib.cbook import is_string_like ImportError: dlopen(/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so, 2): Symbol not found: _FT_Attach_File Referenced from: /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so Expected in: flat namespace in /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so This is a freetype problem, probably an incompatible version somewhere. Ideas? Andrew |
From: Eric F. <ef...@ha...> - 2013-08-02 03:37:33
|
On 2013/08/01 4:23 PM, Drain, Theodore R (392P) wrote: > I have an application where the user can edit line colors and other attributes after the plot is drawn. The artists update just fine but the legend doesn't change. > >>From what I can see in the legend code, it doesn't seem like there is any mechanism in place for doing this. Does anyone have any ideas on the best way to implement something like this? > > Here is a simplified script to show the issue: > > import pylab as p > p.ion() > l = p.plot( [1,2,3], 'b', label="foo" ) > p.legend() > > raw_input( "press return..." ) > l[0].set_color( "green" ) > p.draw() > > Thanks, > Ted If you keep a reference to the Legend object, then you can call its get_lines() method to get a list of Line2D objects corresponding to the objects returned by plot(). You can use the set_color() method on them. Maybe this is enough if your application is simple enough. Eric |
From: Drain, T. R (392P) <the...@jp...> - 2013-08-02 02:23:31
|
I have an application where the user can edit line colors and other attributes after the plot is drawn. The artists update just fine but the legend doesn't change. >From what I can see in the legend code, it doesn't seem like there is any mechanism in place for doing this. Does anyone have any ideas on the best way to implement something like this? Here is a simplified script to show the issue: import pylab as p p.ion() l = p.plot( [1,2,3], 'b', label="foo" ) p.legend() raw_input( "press return..." ) l[0].set_color( "green" ) p.draw() Thanks, Ted |