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
|
|
From: Ned D. <na...@ac...> - 2013-11-04 02:05:13
|
In article <211...@co...>, Piet van Oostrum <pi...@va...> wrote: > I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6 > and 3.3.3. [...] Please open an issue on the Python bug tracker for the Python component of this. http://bugs.python.org -- Ned Deily, na...@ac... |
|
From: Piet v. O. <pi...@va...> - 2013-11-04 01:16:13
|
Hello, I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6 and 3.3.3. I am on Mac OS X 10.6.8. Although the installation gave no problems, there is a problem with Tcl/Tk. The new Pythons have their own embedded Tcl/Tk, but when installing matplotlib it links to the Frameworks version of Tcl and TK, not to the embedded version. This causes confusion when importing matplotlib.pyplot: objc[70648]: Class TKApplication is implemented in both /Library/Frameworks/Python.framework/Versions/2.7/lib/libtk8.5.dylib and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined. objc[70648]: Class TKMenu is implemented in both /Library/Frameworks/Python.framework/Versions/2.7/lib/libtk8.5.dylib and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined. objc[70648]: Class TKContentView is implemented in both /Library/Frameworks/Python.framework/Versions/2.7/lib/libtk8.5.dylib and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined. objc[70648]: Class TKWindow is implemented in both /Library/Frameworks/Python.framework/Versions/2.7/lib/libtk8.5.dylib and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined. And then later it gives a lot of error messages. So I think it should be linked to the embedded version. For this the matplotlib setupext.py should be adapted to find out if there is an embedded Tcl/Tk in the Python installation and set the link parameters accordingly. However, the installed Python versions (from the DMG's) do not contain the Tcl/Tk header files, only the shared library and the tcl files. So I thing the distributed Python should also include the Tcl/Tk header files. -- Piet van Oostrum <pi...@va...> WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] |
|
From: Daniele N. <da...@gr...> - 2013-11-02 18:20:04
|
On 02/11/2013 19:07, Joe Kington wrote: > Hi Daniele, > > First off, the FSF uses and endorses a number of non GPL licenses. They > reccomend the Apache license over MIT-style licenses for permissive > cases due to patent issues, but they don't require it. In fact, even > the GNU project has several X11 (the FSF's name for the MIT license) > licensed projects (e.g. Off the top of my head, I know ncurses is both > an official GNU project and is X11-licensed.). Thank for the info. I knew that the FSF endorses a number of different licenses, but I was under the impression that the only projects for which copyright transfer was in place were under the GPL or LGPL license. I don't know if it makes much sense for other, more permissive, licenses. > However, I'm glad you brought this up. I haven't actually filled out a > copyright transfer form to the FSF. I intended to at one point, but > never did and didn't think about the copyright assignment in the license > header very much. Not doing so, and leaving copyright in the name of any > potential contributors actually makes things quite a bit simpler. Indeed. I believe going the burden of copyright transfer makes sense only for major projects under copyleft licenses. Cheers, Daniele |
|
From: Joe K. <jof...@gm...> - 2013-11-02 18:07:49
|
Hi Daniele, First off, the FSF uses and endorses a number of non GPL licenses. They reccomend the Apache license over MIT-style licenses for permissive cases due to patent issues, but they don't require it. In fact, even the GNU project has several X11 (the FSF's name for the MIT license) licensed projects (e.g. Off the top of my head, I know ncurses is both an official GNU project and is X11-licensed.). However, I'm glad you brought this up. I haven't actually filled out a copyright transfer form to the FSF. I intended to at one point, but never did and didn't think about the copyright assignment in the license header very much. Not doing so, and leaving copyright in the name of any potential contributors actually makes things quite a bit simpler. At any rate, it's certainly something I should clarify. Thanks! -Joe On Sat, Nov 2, 2013 at 11:55 AM, Daniele Nicolodi <da...@gr...>wrote: > Hello Joe, > > I accidentally had a look at the source file you linked to and I found > the copyright and license terms quite strange. Are you really > transferring copyright for your work to the Free Software Foundation > which is releasing it under the MIT license? I find very strange that > the FSF is using a license other than the (L)GPL. Does it also mean > that who wants to contribute to your project must sign a copyright > assignment to the FSF? > > I'm puzzled. > > Best, > Daniele > > > On 30/10/2013 17:58, Joe Kington wrote: > > > > On Oct 30, 2013 9:43 AM, "Nils Wagner" <ni...@go... > > <mailto:ni...@go...>> wrote: > >> > >> Hi all, > >> > >> How can I retrieve the corresponding "color value" in percent, when I > > click on the image ? > >> > > > > You have to jump through a couple of hoops. > > > > Have a look at the _coords2index function in pick_info.py for > > mpldatacursor. > > > https://github.com/joferkington/mpldatacursor/blob/master/mpldatacursor/pick_info.py > > > > Also, mpldatacursor might be useful for what you're doing. Not to plug > > my own project too much, but it does exactly this, among other things. > > > > Hope that helps! > > -Joe > > > >> fig = plt.figure() > >> ax = fig.add_subplot(111) > >> cax = ax.imshow(col[:,::2], > interpolation='nearest',extent=[0.5,20.5,0.5,2 > >> 0.5],alpha=1,picker=5) > >> > >> fig.canvas.mpl_connect('pick_event', onpick) > >> > >> def onpick(event): > >> ... > >> > >> > >> Nils > >> > >> > >> > > > ------------------------------------------------------------------------------ > >> Android is increasing in popularity, but the open development platform > > that > >> developers love is also attractive to malware creators. Download this > > white > >> paper to learn more about secure code signing practices that can help > keep > >> Android apps secure. > >> > > > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Matplotlib-users mailing list > >> Mat...@li... > > <mailto:Mat...@li...> > >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >> > > > > > > > > > ------------------------------------------------------------------------------ > > Android is increasing in popularity, but the open development platform > that > > developers love is also attractive to malware creators. Download this > white > > paper to learn more about secure code signing practices that can help > keep > > Android apps secure. > > > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > > > > > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Daniele N. <da...@gr...> - 2013-11-02 16:55:21
|
Hello Joe, I accidentally had a look at the source file you linked to and I found the copyright and license terms quite strange. Are you really transferring copyright for your work to the Free Software Foundation which is releasing it under the MIT license? I find very strange that the FSF is using a license other than the (L)GPL. Does it also mean that who wants to contribute to your project must sign a copyright assignment to the FSF? I'm puzzled. Best, Daniele On 30/10/2013 17:58, Joe Kington wrote: > > On Oct 30, 2013 9:43 AM, "Nils Wagner" <ni...@go... > <mailto:ni...@go...>> wrote: >> >> Hi all, >> >> How can I retrieve the corresponding "color value" in percent, when I > click on the image ? >> > > You have to jump through a couple of hoops. > > Have a look at the _coords2index function in pick_info.py for > mpldatacursor. > https://github.com/joferkington/mpldatacursor/blob/master/mpldatacursor/pick_info.py > > Also, mpldatacursor might be useful for what you're doing. Not to plug > my own project too much, but it does exactly this, among other things. > > Hope that helps! > -Joe > >> fig = plt.figure() >> ax = fig.add_subplot(111) >> cax = ax.imshow(col[:,::2], interpolation='nearest',extent=[0.5,20.5,0.5,2 >> 0.5],alpha=1,picker=5) >> >> fig.canvas.mpl_connect('pick_event', onpick) >> >> def onpick(event): >> ... >> >> >> Nils >> >> >> > ------------------------------------------------------------------------------ >> Android is increasing in popularity, but the open development platform > that >> developers love is also attractive to malware creators. Download this > white >> paper to learn more about secure code signing practices that can help keep >> Android apps secure. >> > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... > <mailto:Mat...@li...> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Joe K. <jof...@gm...> - 2013-11-02 16:38:49
|
Hi Nils, I'm glad you found it useful! I'm certainly not opposed to seeing it integrated into matplotlib in the long run. At the moment, though, it's probably changing a bit too quickly. There's a lot of little things I'd like to add to it. On the other hand, if it ever were integrated upstream, there's an opportunity to clean things up quite a bit, as mpldatacursor currently has quite a few workarounds for minor bugs in old versions of mpl and minor api changes, etc. Cheers! -Joe On Thu, Oct 31, 2013 at 8:00 AM, Nils Wagner <ni...@go...> wrote: > Hi Joe, > > Just now I installed your package mpldatacursor and run the example > image_example.py. > Awesome ! > Is there a chance to integrate it into matplotlib ? > > Nils > > > > On Wed, Oct 30, 2013 at 5:58 PM, Joe Kington <jof...@gm...>wrote: > >> >> On Oct 30, 2013 9:43 AM, "Nils Wagner" <ni...@go...> wrote: >> > >> > Hi all, >> > >> > How can I retrieve the corresponding "color value" in percent, when I >> click on the image ? >> > >> >> You have to jump through a couple of hoops. >> >> Have a look at the _coords2index function in pick_info.py for >> mpldatacursor. >> https://github.com/joferkington/mpldatacursor/blob/master/mpldatacursor/pick_info.py >> >> Also, mpldatacursor might be useful for what you're doing. Not to plug my >> own project too much, but it does exactly this, among other things. >> >> Hope that helps! >> -Joe >> >> > fig = plt.figure() >> > ax = fig.add_subplot(111) >> > cax = ax.imshow(col[:,::2], >> interpolation='nearest',extent=[0.5,20.5,0.5,2 >> > 0.5],alpha=1,picker=5) >> > >> > fig.canvas.mpl_connect('pick_event', onpick) >> > >> > def onpick(event): >> > ... >> > >> > >> > Nils >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Android is increasing in popularity, but the open development platform >> that >> > developers love is also attractive to malware creators. Download this >> white >> > paper to learn more about secure code signing practices that can help >> keep >> > Android apps secure. >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Matplotlib-users mailing list >> > Mat...@li... >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > >> >> > |
|
From: Ivan L. <iv...@wh...> - 2013-11-01 21:29:09
|
After upgrading to matplotlib 1.3.1-1 importing matplotlib.pyplot fails
with the error:
Python 2.7.5+ (default, Sep 17 2013, 15:31:50)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot
Found an unknown keyword in AFM header (was Each)
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was Each)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was Each)
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was Each)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 24, in
<module>
import matplotlib.colorbar
File "/usr/lib/pymodules/python2.7/matplotlib/colorbar.py", line 29, in
<module>
import matplotlib.collections as collections
File "/usr/lib/pymodules/python2.7/matplotlib/collections.py", line 23,
in <module>
import matplotlib.backend_bases as backend_bases
File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 50,
in <module>
import matplotlib.textpath as textpath
File "/usr/lib/pymodules/python2.7/matplotlib/textpath.py", line 11, in
<module>
import matplotlib.font_manager as font_manager
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line
1356, in <module>
_rebuild()
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line
1341, in _rebuild
fontManager = FontManager()
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line
1008, in __init__
self.afmlist = createFontList(self.afmfiles, fontext='afm')
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 563,
in createFontList
font = afm.AFM(fh)
File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 342, in
__init__
parse_afm(fh)
File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 331, in
parse_afm
doptional = _parse_optional(fh)
File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 313, in
_parse_optional
d[key] = optional[key](fh)
File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 246, in
_parse_kern_pairs
c1, c2, val = _to_str(vals[1]), _to_str(vals[2]), _to_float(vals[3])
ValueError: could not convert string to float: -'0
The problem is with the Adobe Font Metric. Has anyone run into this problem
and found a solution or workaround? Any help is greatly appreciated.
My system is Debian testing with Python 2.7.5 and NumPy 1.7.1-3.
Thanks,
--
Ivan Lima
Woods Hole Oceanographic Institution, MC&G MS #25
360 Woods Hole Road, Woods Hole, MA 02543-1543 USA
|
|
From: Ian T. <ian...@gm...> - 2013-11-01 18:33:44
|
On 1 November 2013 13:55, Jule <Ri...@gm...> wrote: > Hey guys, > > I have a question regarding my plot. > <http://matplotlib.1069221.n5.nabble.com/file/n42446/seaice.png> > I want to plot seaice thickness distribution. The data is derived from a > model run using an unstructured grid. To plot data on a map I use > Triangulation and tricontourf. The problem I´m facing now is, that due to > the triangulation my data is interpolated, resulting in an ocean covered by > a thin layer of sea ice everywehere, which is unrealistic! So my question > is, is there a way to limit the interpolation to the maximum extend of my > data? I did a plot with MATLAB just to let you know how it should look > like. > <http://matplotlib.1069221.n5.nabble.com/file/n42446/ice_thick_N.jpg> > > My code looks like this so far: > > triang = tri.Triangulation(x,y) > fig = plt.figure() > plt.tricontourf(triang, ee, levels = levs, extend = 'both') > cbar=plt.colorbar(orientation = 'horizontal', ticks=[0, 1, 2, 3, 4]) > cbar.set_label('Seaice thickness [m]', size=20,fontname='Arial') > fc=map.fillcontinents(color = 'grey') > > Since I´m a beginner I would really appreciate any thoughts and > suggestions! > Thanks! > Try the following two changes, they should give you what you want. 1) Don't use extend='both' in your tricontourf call. This is explicitly asking for all areas below 0 (your lowest level) to be coloured dark blue. Use extend='max' instead to ignore areas that are below your lowest level. 2) Change your lowest level. It looks like you are using levs=[0.0, 0.5, 1.0, etc. The lowest levels that are contoured are therefore where z >= 0.0 and z < 0.5. This obviously includes all your non-sea ice areas as they have z = 0.0. Change your first value in levs to be something slightly greater than zero, e.g. 1e-10. By the way, your question is slightly confusing as you talk about interpolation, which has nothing to do with what you are seeing! Ian |
|
From: Jule <Ri...@gm...> - 2013-11-01 13:56:03
|
Hey guys, I have a question regarding my plot. <http://matplotlib.1069221.n5.nabble.com/file/n42446/seaice.png> I want to plot seaice thickness distribution. The data is derived from a model run using an unstructured grid. To plot data on a map I use Triangulation and tricontourf. The problem I´m facing now is, that due to the triangulation my data is interpolated, resulting in an ocean covered by a thin layer of sea ice everywehere, which is unrealistic! So my question is, is there a way to limit the interpolation to the maximum extend of my data? I did a plot with MATLAB just to let you know how it should look like. <http://matplotlib.1069221.n5.nabble.com/file/n42446/ice_thick_N.jpg> My code looks like this so far: triang = tri.Triangulation(x,y) fig = plt.figure() plt.tricontourf(triang, ee, levels = levs, extend = 'both') cbar=plt.colorbar(orientation = 'horizontal', ticks=[0, 1, 2, 3, 4]) cbar.set_label('Seaice thickness [m]', size=20,fontname='Arial') fc=map.fillcontinents(color = 'grey') Since I´m a beginner I would really appreciate any thoughts and suggestions! Thanks! -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Limiting-interpolation-of-map-plot-with-tricontourf-tp42446.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Derek <gam...@gm...> - 2013-11-01 12:04:08
|
Hi I have trying to follow the instruction to build Basemap (as per http://matplotlib.org/basemap/users/installing.html). I am running Ubuntu 13.04, with Python 2.7.4. I work through the guide, but when I try and execute the: python setup.py install inside the basemap directory, I get a very very long set of messages/warnings, ending with: collect2: error: ld returned 1 exit status error: Command "x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/_geoslib.o -lgeos_c -lgeos -o build/lib.linux-x86_64-2.7/_geoslib.so" failed with exit status 1 And the test of: from mpl_toolkits.basemap import Basemap fails. How do I proceed from here? Thanks Derek |
|
From: Michael D. <md...@st...> - 2013-10-31 20:32:29
|
Github seems to be having trouble updating the website at the moment. The direct links to the installer files are: https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.3.1/matplotlib-1.3.1-py2.7-python.org-macosx10.6.dmg https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.3.1/matplotlib-1.3.1-py3.3-python.org-macosx10.6.dmg Mike On 10/31/2013 04:18 PM, Michael Droettboom wrote: > Courtesy of Matthew Brett, we now have Mac OS X installers again. > These are designed to work with the python.org distribution, and > include all dependencies. > > They are available here: > > http://matplotlib.org/downloads > > Please let us know how you fare! > > Mike > -- > _ > |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ > | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | > > http://www.droettboom.com > > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.com |
|
From: Michael D. <md...@st...> - 2013-10-31 20:20:50
|
Courtesy of Matthew Brett, we now have Mac OS X installers again. These are designed to work with the python.org distribution, and include all dependencies. They are available here: http://matplotlib.org/downloads Please let us know how you fare! Mike -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.com |
|
From: Benjamin R. <ben...@ou...> - 2013-10-31 14:10:26
|
On Thu, Oct 31, 2013 at 9:43 AM, Guido Avvisati <gui...@gm...>wrote: > Benjamin Root <ben.root@...> writes: > > > > > > > On Tue, Nov 20, 2012 at 8:12 PM, Stephen Gibson <Stephen.Gibson- > FCV...@pu...> wrote: > > > > Ok. Adding an NaN as the last data point did not help. > > However, I notice that the return path is two segments that go through > (0,0). > > i.e. the baseline (or return) path may actually start/finish at (0,0) > > The attached image shows my data offset in y-direction by +1. The end > points > > have been set to y=0.5. The baseline (or return path) is the line > segment > that > > starts at the first data point, passes through (x=0,y=0), and ends at the > last > > data point. > > Steve. > > > > > > Actually, this might be related to a bug that was pointed out to me a > while back that I just could not figure out. Having this example might > help > in narrowing down the cause. Essentially, the (0,0) vertex was being added > even when it shouldn't have been. The key difference in this example is > that zdir='y' is used, which causes the (0,0) vertex to refer to the x,z > coordinate. Interesting...I will have to investigate further.Ben Root > > > > > > > > > > > -------------------------------------------------------------------------- > ---- > > Monitor your physical, virtual and cloud infrastructure from a single > > web console. Get in-depth insight into apps, servers, databases, vmware, > > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > > Pricing starts from $795 for 25 servers or applications! > > http://p.sf.net/sfu/zoho_dev2dev_nov > > > > _______________________________________________ > > Matplotlib-users mailing list > > Matplotlib-users@... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > Hi, > > I have exactly the same problem described here. Is there any solution to > turn off the baseline in the polycollection? > > Cheers, > Guido > > > There was a pull request that was put together about 6 months ago that I think fixed the problem, IIRC, but it broke the API and the submitter eventually retracted the PR because it didn't seem like the right solution. The problem is extremely nuanced and there is no clear solution, unfortunately. The general idea is that the path codes are not being stored with the vertices because the underlying object holding that data is a Path (so the 3D vertices are stored separately, and as such, the list of vertices diverges from the list of path codes). Perhaps, if there was a way to make Path objects be able to hold 3D vertices, we might be able to solve this issue once and for all? Ben Root |
|
From: Guido A. <gui...@gm...> - 2013-10-31 13:45:15
|
Benjamin Root <ben.root@...> writes: > > > On Tue, Nov 20, 2012 at 8:12 PM, Stephen Gibson <Stephen.Gibson- FCV...@pu...> wrote: > > Ok. Adding an NaN as the last data point did not help. > However, I notice that the return path is two segments that go through (0,0). > i.e. the baseline (or return) path may actually start/finish at (0,0) > The attached image shows my data offset in y-direction by +1. The end points > have been set to y=0.5. The baseline (or return path) is the line segment that > starts at the first data point, passes through (x=0,y=0), and ends at the last > data point. > Steve. > > > Actually, this might be related to a bug that was pointed out to me a while back that I just could not figure out. Having this example might help in narrowing down the cause. Essentially, the (0,0) vertex was being added even when it shouldn't have been. The key difference in this example is that zdir='y' is used, which causes the (0,0) vertex to refer to the x,z coordinate. Interesting...I will have to investigate further.Ben Root > > > > > -------------------------------------------------------------------------- ---- > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > Hi, I have exactly the same problem described here. Is there any solution to turn off the baseline in the polycollection? Cheers, Guido |
|
From: Nils W. <ni...@go...> - 2013-10-31 13:00:09
|
Hi Joe, Just now I installed your package mpldatacursor and run the example image_example.py. Awesome ! Is there a chance to integrate it into matplotlib ? Nils On Wed, Oct 30, 2013 at 5:58 PM, Joe Kington <jof...@gm...> wrote: > > On Oct 30, 2013 9:43 AM, "Nils Wagner" <ni...@go...> wrote: > > > > Hi all, > > > > How can I retrieve the corresponding "color value" in percent, when I > click on the image ? > > > > You have to jump through a couple of hoops. > > Have a look at the _coords2index function in pick_info.py for > mpldatacursor. > https://github.com/joferkington/mpldatacursor/blob/master/mpldatacursor/pick_info.py > > Also, mpldatacursor might be useful for what you're doing. Not to plug my > own project too much, but it does exactly this, among other things. > > Hope that helps! > -Joe > > > fig = plt.figure() > > ax = fig.add_subplot(111) > > cax = ax.imshow(col[:,::2], > interpolation='nearest',extent=[0.5,20.5,0.5,2 > > 0.5],alpha=1,picker=5) > > > > fig.canvas.mpl_connect('pick_event', onpick) > > > > def onpick(event): > > ... > > > > > > Nils > > > > > > > ------------------------------------------------------------------------------ > > Android is increasing in popularity, but the open development platform > that > > developers love is also attractive to malware creators. Download this > white > > paper to learn more about secure code signing practices that can help > keep > > Android apps secure. > > > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > |
|
From: Joe K. <jof...@gm...> - 2013-10-30 16:58:53
|
On Oct 30, 2013 9:43 AM, "Nils Wagner" <ni...@go...> wrote: > > Hi all, > > How can I retrieve the corresponding "color value" in percent, when I click on the image ? > You have to jump through a couple of hoops. Have a look at the _coords2index function in pick_info.py for mpldatacursor. https://github.com/joferkington/mpldatacursor/blob/master/mpldatacursor/pick_info.py Also, mpldatacursor might be useful for what you're doing. Not to plug my own project too much, but it does exactly this, among other things. Hope that helps! -Joe > fig = plt.figure() > ax = fig.add_subplot(111) > cax = ax.imshow(col[:,::2], interpolation='nearest',extent=[0.5,20.5,0.5,2 > 0.5],alpha=1,picker=5) > > fig.canvas.mpl_connect('pick_event', onpick) > > def onpick(event): > ... > > > Nils > > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Benjamin R. <ben...@ou...> - 2013-10-30 16:52:36
|
Good point. The underlying mechanism for recording the changes to the limits assume just x and y limits, and wouldn't record the z limits. Furthermore, it certainly doesn't take into account any changes with respect to the viewing angle. I am not familiar enough with the mechanisms to figure out how to make that work here, but feel free to file a feature request. But, let's be honest here, I have *zero* time in the foreseeable future to handle even the bug requests, let alone feature requests for mplot3d. Perhaps it is time to find someone else who is willing to pick up the mantle here? |
|
From: Sterling S. <sm...@fu...> - 2013-10-30 16:29:50
|
On Oct 30, 2013, at 7:47AM, Scott Lasley wrote: > > On Oct 30, 2013, at 10:14, Neal Becker <ndb...@gm...> wrote: > >> I have a blue line plot and a green line plot. I'd like to add some figtext at >> the bottom, and I'd like the text colors to match the plot colors. So I'd have >> some text in blue and some in green. >> >> figtext only allows one color >> >> I could use 2 figtext, but then I have to manually find coordinate positions for >> the text. That's ugly. >> >> It would be nice if we had a TeX-like approach, where I could create a green >> text object and a blue text object, then assemble them by stacking boxes. >> >> Any ideas? > > I'm not sure it's the best approach, but I've used HPacker (or VPacker if you want more than one line) to do this I have taken this approach as well. See part of my answer at http://stackoverflow.com/questions/17086847/box-around-text-in-matplotlib/17092777#17092777 |
|
From: Scott L. <sl...@sp...> - 2013-10-30 15:03:10
|
On Oct 30, 2013, at 10:14, Neal Becker <ndb...@gm...> wrote:
> I have a blue line plot and a green line plot. I'd like to add some figtext at
> the bottom, and I'd like the text colors to match the plot colors. So I'd have
> some text in blue and some in green.
>
> figtext only allows one color
>
> I could use 2 figtext, but then I have to manually find coordinate positions for
> the text. That's ugly.
>
> It would be nice if we had a TeX-like approach, where I could create a green
> text object and a blue text object, then assemble them by stacking boxes.
>
> Any ideas?
I'm not sure it's the best approach, but I've used HPacker (or VPacker if you want more than one line) to do this
from matplotlib.offsetbox import HPacker
from matplotlib.offsetbox import VPacker
from matplotlib.offsetbox import TextArea
from matplotlib.offsetbox import AnchoredOffsetbox
plot([1,2,3,4,5])
wloc = TextArea('WIND XYZ=()', textprops=dict(color="r", size=12))
sloc = TextArea('SOHO XYZ=()', textprops=dict(color="k", size=18))
txt1 = HPacker(children=[wloc, sloc], align="baseline", pad=0, sep=12)
txt2 = VPacker(children=[wloc, sloc], align="baseline", pad=0, sep=30)
bbox = AnchoredOffsetbox(loc=1.0, pad=0, borderpad=0,
bbox_to_anchor=(0.8, 0.10),
bbox_transform=gca().transAxes,
child=txt1,
frameon=False)
gca().add_artist(bbox)
bbox = AnchoredOffsetbox(loc=1.0, pad=0, borderpad=0,
bbox_to_anchor=(0.4, 0.80),
bbox_transform=gca().transAxes,
child=txt2,
frameon=False)
gca().add_artist(bbox)
|
|
From: Nils W. <ni...@go...> - 2013-10-30 14:42:05
|
Hi all,
How can I retrieve the corresponding "color value" in percent, when I click
on the image ?
fig = plt.figure()
ax = fig.add_subplot(111)
cax = ax.imshow(col[:,::2], interpolation='nearest',extent=[0.5,20.5,0.5,2
0.5],alpha=1,picker=5)
fig.canvas.mpl_connect('pick_event', onpick)
def onpick(event):
...
Nils
|
|
From: Paul I. <pi...@be...> - 2013-10-30 14:32:24
|
Hi Neal, Neal Becker, on 2013-10-30 10:14, wrote: > I have a blue line plot and a green line plot. I'd like to add some figtext at > the bottom, and I'd like the text colors to match the plot colors. So I'd have > some text in blue and some in green. > > figtext only allows one color > > I could use 2 figtext, but then I have to manually find coordinate positions for > the text. That's ugly. > > It would be nice if we had a TeX-like approach, where I could create a green > text object and a blue text object, then assemble them by stacking boxes. You should be able to follow the approach I've taken here in stacking the text bounding boxes together: https://github.com/matplotlib/matplotlib/issues/697 best, -- _ / \ A* \^ - ,./ _.`\\ / \ / ,--.S \/ \ / `"~,_ \ \ __o ? _ \<,_ /:\ --(_)/-(_)----.../ | \ --------------.......J Paul Ivanov http://pirsquared.org |
|
From: Neal B. <ndb...@gm...> - 2013-10-30 14:14:36
|
I have a blue line plot and a green line plot. I'd like to add some figtext at the bottom, and I'd like the text colors to match the plot colors. So I'd have some text in blue and some in green. figtext only allows one color I could use 2 figtext, but then I have to manually find coordinate positions for the text. That's ugly. It would be nice if we had a TeX-like approach, where I could create a green text object and a blue text object, then assemble them by stacking boxes. Any ideas? |
|
From: Daniele N. <da...@gr...> - 2013-10-30 11:16:46
|
On 29/10/2013 21:39, Ryan Nelson wrote: > Daniele, > > I agree this is perhaps a little overly complicated. (However, once you > figure it out, it does give you a ton of flexibility.) The main point is not that it is overly complicated, it is that is is severely under documented... > I played around > with this a bit (thanks IPython!), and I may have figured out what you > wanted to do. I rewrote the example you linked from the MPL website. I > couldn't simplify it much, but it does change the size, location and > labels of the floating y axis. Thanks! I didn't have the resources to investigate this further. > par2.axis["right"].major_ticklabels.set_fontsize(14) Well, this makes sense... Cheers, Daniele |
|
From: Nils W. <ni...@go...> - 2013-10-30 11:02:28
|
Hi all, The "Reset original view" button is effectless in case of 3D plots. Nils |
|
From: Ryan N. <rne...@gm...> - 2013-10-29 20:39:51
|
Daniele,
I agree this is perhaps a little overly complicated. (However, once you
figure it out, it does give you a ton of flexibility.) I played around
with this a bit (thanks IPython!), and I may have figured out what you
wanted to do. I rewrote the example you linked from the MPL website. I
couldn't simplify it much, but it does change the size, location and labels
of the floating y axis.
#################
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
import matplotlib.pyplot as plt
host = host_subplot(111, axes_class=AA.Axes)
plt.subplots_adjust(right=0.75)
par1 = host.twinx()
par2 = host.twinx()
offset = 60
new_fixed_axis = par2.get_grid_helper().new_fixed_axis
par2.axis["right"] = new_fixed_axis(loc="right",
axes=par2,
offset=(offset, 0))
par2.axis["right"].toggle(all=True)
p1, = host.plot([0, 1, 2], [0, 1, 2], label="Density")
p2, = par1.plot([0, 1, 2], [0, 3, 2], label="Temperature")
p3, = par2.plot([0, 1, 2], [50, 30, 15], label="Velocity")
host.legend()
host.set_xlabel("Distance")
host.set_ylabel("Density")
host.axis["left"].label.set_color(p1.get_color())
host.set_xlim(0, 2)
host.set_ylim(0, 2)
par1.set_ylabel("Temperature")
par1.axis["right"].label.set_color(p2.get_color())
par1.set_ylim(0, 4)
par2.set_ylabel("Velocity")
par2.set_ylim(1, 65)
par2.yaxis.set_ticks( (20.0, 40.0) )
par2.yaxis.set_ticklabels( ('A', 'B') )
par2.axis["right"].label.set_color(p3.get_color())
par2.axis["right"].label.set_fontsize(18)
par2.axis["right"].major_ticklabels.set_fontsize(14)
plt.show()
##################
Hope that helps.
Ryan
On Tue, Oct 29, 2013 at 5:54 AM, Daniele Nicolodi <da...@gr...>wrote:
> On 29/10/2013 03:11, Ryan Nelson wrote:
> > Daniele,
> >
> > I noticed the same problem with the Qt backend. However, I was looking
> > at the documentation on the AxesGrid webpage here:
> > http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html
> > And I see the following warning:
> >
> > axes_grid and axisartist (but not axes_grid1) uses a custom Axes class
> > (derived from the mpl’s original Axes class). As a side effect, some
> > commands (mostly tick-related) do not work. Use axes_grid1 to avoid
> > this, or see how things are different in axes_grid and axisartist (LINK
> > needed)
> >
> > Unfortunately, no link. But perhaps there is a way to avoid using the
> > Axes class from axisartist in your use case. For example, could you
> > import the Axes class as follows:
> >
> > from matplotlib.axes import Axes
> >
> > That seems to work with the Qt and PDF backends on Windows 7 (Anaconda
> > Python).
>
> Hello Ryan,
>
> thanks for confirming the problem. I've also seen that note, but I
> thought "do not work" means that the methods raise an exception, not
> that they arbitrarily ignore arguments :(
>
> While the standard Axis class works for the cut-down example I posted,
> it does not for what I'm trying to achieve (having a second x axis below
> the main one). I came up with that solution following the matplotlib
> documentation:
>
>
> http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html#axisartist-with-parasiteaxes
>
> however I don't really understand why some of the contortions there are
> necessary (they are not explained in the documentation).
>
> Cheers,
> Daniele
>
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|