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
(6) |
2
(29) |
3
(19) |
4
(6) |
5
(5) |
6
(9) |
7
(9) |
8
(19) |
9
(14) |
10
(19) |
11
(26) |
12
(10) |
13
(26) |
14
(22) |
15
(19) |
16
(17) |
17
(16) |
18
(2) |
19
|
20
(1) |
21
(1) |
22
(10) |
23
(11) |
24
(17) |
25
(6) |
26
(1) |
27
|
28
(9) |
29
(9) |
30
(9) |
|
|
|
I've used Pyshapelib and Polygon to do this type of analysis in the past. Thuban may get ya what you need. On Thu, Nov 3, 2011 at 3:40 PM, questions anon <que...@gm...>wrote: > Hi All, > Is there a way to select only the values within a particular shapefile to > analyse. > I would like to do something like: > > array=numpyarraycoveringtemperatureofwholestate > shapefile=forestedregions.shp > > newarray=ma.masked_values(array, shapefile) > meantemperatureofforestedregions=MA.mean(newarray) > print meantemperatureofforestedregions > > > Any ideas of functions I could use, examples I could follow? > thanks > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
To the best of my knowledge, this beyond the scope of matplotlib. Scipy or Shapely *might* have something for you, but you best bet is to look into the raster clipping functionality of GDAL/OGR. Hope that helps, -paul On Thu, Nov 3, 2011 at 3:40 PM, questions anon <que...@gm...> wrote: > Hi All, > Is there a way to select only the values within a particular shapefile to > analyse. > I would like to do something like: > > array=numpyarraycoveringtemperatureofwholestate > shapefile=forestedregions.shp > > newarray=ma.masked_values(array, shapefile) > meantemperatureofforestedregions=MA.mean(newarray) > print meantemperatureofforestedregions > > > Any ideas of functions I could use, examples I could follow? > thanks > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Hi All, Is there a way to select only the values within a particular shapefile to analyse. I would like to do something like: array=numpyarraycoveringtemperatureofwholestate shapefile=forestedregions.shp newarray=ma.masked_values(array, shapefile) meantemperatureofforestedregions=MA.mean(newarray) print meantemperatureofforestedregions Any ideas of functions I could use, examples I could follow? thanks
The link on Nabble is broken, so here's (I think) a fixed version. It looks like the name of the branch was changed slightly at some point. https://github.com/kdavies4/matplotlib/compare/master...ternary2 Cheers, -Joe On Thu, Nov 3, 2011 at 3:14 PM, Benjamin Root <ben...@ou...> wrote: > > > On Thu, Nov 3, 2011 at 2:58 PM, elmar werling <el...@ne...>wrote: > >> Hi, >> >> could not found anything like plot_ternary() in the matplotlib >> documentation. Is there an easy to use method to plot data points and >> lines in a ternary plot using matplotlib? >> >> Any hint is wellcome >> >> Elmar >> >> > This is a requested feature, but has not been implemented yet within > matplotlib. However, some other users have created a hack to do this: > > http://old.nabble.com/Ternary-or-triangle-plots-td32506324.html > > Ben Root > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
On 11/03/2011 04:34 PM, Christoph Gohlke wrote: > > On 11/3/2011 6:45 AM, Mads Ipsen wrote: >> On 11/02/2011 09:46 PM, Christoph Gohlke wrote: >>> On 11/2/2011 1:39 PM, Mads Ipsen wrote: >>>> On 11/02/2011 09:28 PM, Christoph Gohlke wrote: >>>>> On 11/2/2011 1:11 PM, Mads Ipsen wrote: >>>>>> On 11/02/2011 08:43 PM, Michael Droettboom wrote: >>>>>>> On 11/02/2011 01:34 PM, Mads Ipsen wrote: >>>>>>>> On 11/02/2011 05:50 PM, Michael Droettboom wrote: >>>>>>>>> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>>>>>>>>> Any clues to why ft2build.h cannot be located. The above docs says >>>>>>>>>> it should be part of the binary installer. >>>>>>>>> The binary for freetype is included with the installer, but the >>>>>>>>> headers (needed to build, but not to run) are not. Do you need to >>>>>>>>> build matplotlib from source, or just use it? >>>>>>>>> >>>>>>>>> Mike >>>>>>>> I need to built it from source. >>>>>>>> >>>>>>>> Mads >>>>>>> In that case, you will need to install the development packages for >>>>>>> freetype, libpng, libz, and numpy. >>>>>>> >>>>>>> I'm not a regular Windows user, so I don't know what the best practice >>>>>>> is for that these days. Some of the other members on this list can >>>>>>> hopefully jump in. There was also a thread on this list about >>>>>>> "Building on Windows" from 08/18/2011 that might be helpful. >>>>>>> >>>>>>> Mike >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> RSA(R) Conference 2012 >>>>>>> Save 700ドル by Nov 18 >>>>>>> Register now >>>>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Matplotlib-users mailing list >>>>>>> Mat...@li...<mailto:Mat...@li...> <mailto:Mat...@li...> <mailto:Mat...@li...> >>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>>> I can't seem to find this thread anywhere. It it really that difficult >>>>>> to build on Windows? It most be documented somewhere what the prereqs are? >>>>>> >>>>> See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and >>>>> <http://matplotlib.sourceforge.net/users/installing.html#build-requirements> >>>>> >>>>> Prebuilt static link libraries for msvc compilers are available at >>>>> <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. >>>>> >>>>> It seems you are trying to compile from within cygwin, using the include >>>>> files provided by cygwin. That will probably not work. >>>>> >>>>> Christoph >>>>> >>>>> >>>>> >>>>>> Best regards, >>>>>> >>>>>> Mads >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> RSA(R) Conference 2012 >>>>> Save 700ドル by Nov 18 >>>>> Register now >>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>> _______________________________________________ >>>>> Matplotlib-users mailing list >>>>> Mat...@li...<mailto:Mat...@li...> <mailto:Mat...@li...> >>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> I am building from the VS2008 command prompt. But thanks for the info. >>>> Will have a look. >>>> >>>> Best regards, >>>> >>>> Mads >>> OK. The cygwin in your home path looked suspicious:"c:\cygwin\home\mads >>> ipsen\" >>> >>> Christoph >>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save 700ドル by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li...<mailto:Mat...@li...> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> Hi, >> >> I am now done with the 32 bit case and am trying to do the same for 64 >> bit now. >> >> Here I get the error: >> >> Creating library build\temp.win32-2.7\Release\src\ft2font.lib and object >> buil >> d\temp.win32-2.7\Release\src\ft2font.exp >> ft2font.obj : error LNK2019: unresolved external symbol >> _FT_Set_Transform refere >> nced in function "public: class Py::Object __thiscall >> FT2Font::set_size(class Py >> ::Tuple const&)" (?set_size@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) >> ft2font.obj : error LNK2019: unresolved external symbol >> _FT_Set_Char_Size refere >> nced in function "public: class Py::Object __thiscall >> FT2Font::set_size(class Py >> ::Tuple const&)" (?set_size@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) >> ft2font.obj : error LNK2019: unresolved external symbol _FT_Set_Charmap >> referenc >> ed in function "public: class Py::Object __thiscall >> FT2Font::set_charmap(class P >> y::Tuple const&)" (?set_charmap@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) >> ft2font.obj : error LNK2019: unresolved external symbol >> _FT_Select_Charmap refer >> enced in function "public: class Py::Object __thiscall >> FT2Font::select_charmap(c >> lass Py::Tuple const&)" >> (?select_charmap@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@ >> Z) >> >> I am using the >> >> msvcr90-x64 >> >> version of the libraries downloaded from >> >> http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib >> >> Wrong libraries? >> >> Bestregards, >> >> Mads >> > >> Creating library build\temp.win32-2.7 ... > You are likely using a 32 bit compiler or Python. > > Christoph > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Yep, had installed a 32 bit Python. Infinite stupid of me. Now it builds out of the box. Thanks for helping out. Best regards, Mads -- +-----------------------------------------------------+ | Mads Ipsen | +----------------------+------------------------------+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby | phone: +45-29716388 | | Denmark | email: mad...@gm... | +----------------------+------------------------------+
On Thu, Nov 3, 2011 at 2:58 PM, elmar werling <el...@ne...> wrote: > Hi, > > could not found anything like plot_ternary() in the matplotlib > documentation. Is there an easy to use method to plot data points and > lines in a ternary plot using matplotlib? > > Any hint is wellcome > > Elmar > > This is a requested feature, but has not been implemented yet within matplotlib. However, some other users have created a hack to do this: http://old.nabble.com/Ternary-or-triangle-plots-td32506324.html Ben Root
On Thu, Nov 3, 2011 at 12:51 PM, Stuart Mumford <st...@mu...>wrote: > Hello, > > I discovered the (wonderful) animation module in the v1.1 release today. > > However I think I may have quickly outgrown it a bit! > > I am plotting some simulation data see: > http://dl.dropbox.com/u/2796140/mhdmodes_3.mp4 for an example made with > the animation class. > > There is one thing missing from the above, which is colour bars! > > I have created the animation using the ArtisitAnimation class because each > frame takes about 1-2 seconds to calculate the magnetic field lines, so > using FuncAnimate would result in a very slow animation. > > The problem is that I can not add a colorbar instance to the list of > artists that the animator draws as it is not an artist instance. > > This is a slightly modified version of the example [ > http://matplotlib.sourceforge.net/examples/animation/dynamic_image2.html] > that shows my problem: > > #!/usr/bin/env python >> >> """ >> >> An animated image >> >> """ >> >> import numpy as np >> >> import matplotlib.pyplot as plt >> >> import matplotlib.animation as animation >> >> fig = plt.figure() >> >> def f(x, y): >> >> return np.sin(x) + np.cos(y) >> >> x = np.linspace(0, 2 * np.pi, 120) >> >> y = np.linspace(0, 2 * np.pi, 100).reshape(-1, 1) >> >> # ims is a list of lists, each row is a list of artists to draw in the >> >> # current frame; here we are just animating one artist, the image, in >> >> # each frame >> >> ims = [] >> >> for i in range(60): >> >> x += np.pi / 15. >> >> y += np.pi / 20. >> >> im = plt.imshow(f(x, y)) >> >> cb = plt.colorbar() >> >> ims.append([im, cb]) >> >> ani = animation.ArtistAnimation(fig, ims, interval=50, blit=True, >> >> repeat_delay=1000) >> >> plt.show() >> >> > Which generates the following error > >> Traceback (most recent call last): >> File "/home/stuart/Documents/VAC/sac_anim_axtest.py", line 28, in >> <module> >> repeat_delay=1000) >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 356, in __init__ >> TimedAnimation.__init__(self, fig, *args, **kwargs) >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 304, in __init__ >> Animation.__init__(self, fig, event_source=event_source, *args, >> **kwargs) >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 53, in __init__ >> self._init_draw() >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 363, in _init_draw >> artist.set_visible(False) >> AttributeError: Colorbar instance has no attribute 'set_visible' >> > > > > I attempted to add the colorbar to a AxesSubplot instance and then draw > the axes in the artist list, however when I add a Axes instance to the > artist list I get a wonderful error: > > > Traceback (most recent call last): >> File >> "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtk.py", >> line 122, in _on_timer >> TimerBase._on_timer(self) >> File "/usr/lib64/python2.7/site-packages/matplotlib/backend_bases.py", >> line 1092, in _on_timer >> ret = func(*args, **kwargs) >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 315, in _step >> still_going = Animation._step(self, *args) >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 177, in _step >> self._draw_next_frame(framedata, self._blit) >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 197, in _draw_next_frame >> self._post_draw(framedata, blit) >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 220, in _post_draw >> self._blit_draw(self._drawn_artists, self._blit_cache) >> File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line >> 235, in _blit_draw >> a.axes.draw_artist(a) >> File "/usr/lib64/python2.7/site-packages/matplotlib/axes.py", line >> 1994, in draw_artist >> assert self._cachedRenderer is not None >> AssertionError >> > > I also saw the subplots animation example [ > http://matplotlib.sourceforge.net/examples/animation/subplots.html], > however that is also based on FuncAnimate, would there be a way to create > something similar for ArtistAnimate? > > Thanks > Stuart > > Do you need the colorbar scale to change with each frame? If not, you can create a wholly independent colorbar like so: cb = mpl.colorbar.ColorbarBase(cax, cmap=cmap, norm=norm) where 'cax' I usually get by using the axes_grid1 toolkit to pre-allocate a spot for a colorbar axes (as opposed to using fig.add_subplots()). However, if you need to the colorbar to change with the frames, then I would use the FuncAnimator, but a little differently than you are probably imagining. The fig.colorbar() function requires a ScalarMappable object (such as an object from imshow()). What I would do is "prime the pump" by creating the first frame. Then create a func animator that calls a function that loads the cached results based on an index number and directly update the imshow()'s object using the set_data() method. That way, the original colorbar sees the changes from the ScalarMappable object that was originally assigned to it. It also results in faster rendering, in my experience since imshow() has many extra steps to take to prepare the data for display. Note, this won't work if the domain changes over time. Does that help? Ben Root > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Hi, could not found anything like plot_ternary() in the matplotlib documentation. Is there an easy to use method to plot data points and lines in a ternary plot using matplotlib? Any hint is wellcome Elmar
Hello, I discovered the (wonderful) animation module in the v1.1 release today. However I think I may have quickly outgrown it a bit! I am plotting some simulation data see: http://dl.dropbox.com/u/2796140/mhdmodes_3.mp4 for an example made with the animation class. There is one thing missing from the above, which is colour bars! I have created the animation using the ArtisitAnimation class because each frame takes about 1-2 seconds to calculate the magnetic field lines, so using FuncAnimate would result in a very slow animation. The problem is that I can not add a colorbar instance to the list of artists that the animator draws as it is not an artist instance. This is a slightly modified version of the example [ http://matplotlib.sourceforge.net/examples/animation/dynamic_image2.html] that shows my problem: #!/usr/bin/env python > > """ > > An animated image > > """ > > import numpy as np > > import matplotlib.pyplot as plt > > import matplotlib.animation as animation > > fig = plt.figure() > > def f(x, y): > > return np.sin(x) + np.cos(y) > > x = np.linspace(0, 2 * np.pi, 120) > > y = np.linspace(0, 2 * np.pi, 100).reshape(-1, 1) > > # ims is a list of lists, each row is a list of artists to draw in the > > # current frame; here we are just animating one artist, the image, in > > # each frame > > ims = [] > > for i in range(60): > > x += np.pi / 15. > > y += np.pi / 20. > > im = plt.imshow(f(x, y)) > > cb = plt.colorbar() > > ims.append([im, cb]) > > ani = animation.ArtistAnimation(fig, ims, interval=50, blit=True, > > repeat_delay=1000) > > plt.show() > > Which generates the following error > Traceback (most recent call last): > File "/home/stuart/Documents/VAC/sac_anim_axtest.py", line 28, in > <module> > repeat_delay=1000) > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 356, in __init__ > TimedAnimation.__init__(self, fig, *args, **kwargs) > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 304, in __init__ > Animation.__init__(self, fig, event_source=event_source, *args, > **kwargs) > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 53, in __init__ > self._init_draw() > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 363, in _init_draw > artist.set_visible(False) > AttributeError: Colorbar instance has no attribute 'set_visible' > I attempted to add the colorbar to a AxesSubplot instance and then draw the axes in the artist list, however when I add a Axes instance to the artist list I get a wonderful error: Traceback (most recent call last): > File > "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtk.py", > line 122, in _on_timer > TimerBase._on_timer(self) > File "/usr/lib64/python2.7/site-packages/matplotlib/backend_bases.py", > line 1092, in _on_timer > ret = func(*args, **kwargs) > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 315, in _step > still_going = Animation._step(self, *args) > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 177, in _step > self._draw_next_frame(framedata, self._blit) > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 197, in _draw_next_frame > self._post_draw(framedata, blit) > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 220, in _post_draw > self._blit_draw(self._drawn_artists, self._blit_cache) > File "/usr/lib64/python2.7/site-packages/matplotlib/animation.py", line > 235, in _blit_draw > a.axes.draw_artist(a) > File "/usr/lib64/python2.7/site-packages/matplotlib/axes.py", line 1994, > in draw_artist > assert self._cachedRenderer is not None > AssertionError > I also saw the subplots animation example [ http://matplotlib.sourceforge.net/examples/animation/subplots.html], however that is also based on FuncAnimate, would there be a way to create something similar for ArtistAnimate? Thanks Stuart
On 11/3/2011 6:45 AM, Mads Ipsen wrote: > On 11/02/2011 09:46 PM, Christoph Gohlke wrote: >> On 11/2/2011 1:39 PM, Mads Ipsen wrote: >>> On 11/02/2011 09:28 PM, Christoph Gohlke wrote: >>>> On 11/2/2011 1:11 PM, Mads Ipsen wrote: >>>>> On 11/02/2011 08:43 PM, Michael Droettboom wrote: >>>>>> On 11/02/2011 01:34 PM, Mads Ipsen wrote: >>>>>>> On 11/02/2011 05:50 PM, Michael Droettboom wrote: >>>>>>>> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>>>>>>>> Any clues to why ft2build.h cannot be located. The above docs says >>>>>>>>> it should be part of the binary installer. >>>>>>>> The binary for freetype is included with the installer, but the >>>>>>>> headers (needed to build, but not to run) are not. Do you need to >>>>>>>> build matplotlib from source, or just use it? >>>>>>>> >>>>>>>> Mike >>>>>>> I need to built it from source. >>>>>>> >>>>>>> Mads >>>>>> In that case, you will need to install the development packages for >>>>>> freetype, libpng, libz, and numpy. >>>>>> >>>>>> I'm not a regular Windows user, so I don't know what the best practice >>>>>> is for that these days. Some of the other members on this list can >>>>>> hopefully jump in. There was also a thread on this list about >>>>>> "Building on Windows" from 08/18/2011 that might be helpful. >>>>>> >>>>>> Mike >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> RSA(R) Conference 2012 >>>>>> Save 700ドル by Nov 18 >>>>>> Register now >>>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>>> >>>>>> _______________________________________________ >>>>>> Matplotlib-users mailing list >>>>>> Mat...@li... <mailto:Mat...@li...> <mailto:Mat...@li...> <mailto:Mat...@li...> >>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>> I can't seem to find this thread anywhere. It it really that difficult >>>>> to build on Windows? It most be documented somewhere what the prereqs are? >>>>> >>>> See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and >>>> <http://matplotlib.sourceforge.net/users/installing.html#build-requirements> >>>> >>>> Prebuilt static link libraries for msvc compilers are available at >>>> <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. >>>> >>>> It seems you are trying to compile from within cygwin, using the include >>>> files provided by cygwin. That will probably not work. >>>> >>>> Christoph >>>> >>>> >>>> >>>>> Best regards, >>>>> >>>>> Mads >>>>> >>>> ------------------------------------------------------------------------------ >>>> RSA(R) Conference 2012 >>>> Save 700ドル by Nov 18 >>>> Register now >>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... <mailto:Mat...@li...> <mailto:Mat...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> I am building from the VS2008 command prompt. But thanks for the info. >>> Will have a look. >>> >>> Best regards, >>> >>> Mads >> OK. The cygwin in your home path looked suspicious:"c:\cygwin\home\mads >> ipsen\" >> >> Christoph >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save 700ドル by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... <mailto:Mat...@li...> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > Hi, > > I am now done with the 32 bit case and am trying to do the same for 64 > bit now. > > Here I get the error: > > Creating library build\temp.win32-2.7\Release\src\ft2font.lib and object > buil > d\temp.win32-2.7\Release\src\ft2font.exp > ft2font.obj : error LNK2019: unresolved external symbol > _FT_Set_Transform refere > nced in function "public: class Py::Object __thiscall > FT2Font::set_size(class Py > ::Tuple const &)" (?set_size@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) > ft2font.obj : error LNK2019: unresolved external symbol > _FT_Set_Char_Size refere > nced in function "public: class Py::Object __thiscall > FT2Font::set_size(class Py > ::Tuple const &)" (?set_size@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) > ft2font.obj : error LNK2019: unresolved external symbol _FT_Set_Charmap > referenc > ed in function "public: class Py::Object __thiscall > FT2Font::set_charmap(class P > y::Tuple const &)" (?set_charmap@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) > ft2font.obj : error LNK2019: unresolved external symbol > _FT_Select_Charmap refer > enced in function "public: class Py::Object __thiscall > FT2Font::select_charmap(c > lass Py::Tuple const &)" > (?select_charmap@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@ > Z) > > I am using the > > msvcr90-x64 > > version of the libraries downloaded from > > http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib > > Wrong libraries? > > Bestregards, > > Mads > > Creating library build\temp.win32-2.7 ... You are likely using a 32 bit compiler or Python. Christoph
On 11/02/2011 09:46 PM, Christoph Gohlke wrote: > > On 11/2/2011 1:39 PM, Mads Ipsen wrote: >> On 11/02/2011 09:28 PM, Christoph Gohlke wrote: >>> On 11/2/2011 1:11 PM, Mads Ipsen wrote: >>>> On 11/02/2011 08:43 PM, Michael Droettboom wrote: >>>>> On 11/02/2011 01:34 PM, Mads Ipsen wrote: >>>>>> On 11/02/2011 05:50 PM, Michael Droettboom wrote: >>>>>>> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>>>>>>> Any clues to why ft2build.h cannot be located. The above docs says >>>>>>>> it should be part of the binary installer. >>>>>>> The binary for freetype is included with the installer, but the >>>>>>> headers (needed to build, but not to run) are not. Do you need to >>>>>>> build matplotlib from source, or just use it? >>>>>>> >>>>>>> Mike >>>>>> I need to built it from source. >>>>>> >>>>>> Mads >>>>> In that case, you will need to install the development packages for >>>>> freetype, libpng, libz, and numpy. >>>>> >>>>> I'm not a regular Windows user, so I don't know what the best practice >>>>> is for that these days. Some of the other members on this list can >>>>> hopefully jump in. There was also a thread on this list about >>>>> "Building on Windows" from 08/18/2011 that might be helpful. >>>>> >>>>> Mike >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> RSA(R) Conference 2012 >>>>> Save 700ドル by Nov 18 >>>>> Register now >>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>> >>>>> _______________________________________________ >>>>> Matplotlib-users mailing list >>>>> Mat...@li...<mailto:Mat...@li...> <mailto:Mat...@li...> >>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> I can't seem to find this thread anywhere. It it really that difficult >>>> to build on Windows? It most be documented somewhere what the prereqs are? >>>> >>> See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and >>> <http://matplotlib.sourceforge.net/users/installing.html#build-requirements> >>> >>> Prebuilt static link libraries for msvc compilers are available at >>> <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. >>> >>> It seems you are trying to compile from within cygwin, using the include >>> files provided by cygwin. That will probably not work. >>> >>> Christoph >>> >>> >>> >>>> Best regards, >>>> >>>> Mads >>>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save 700ドル by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li...<mailto:Mat...@li...> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> I am building from the VS2008 command prompt. But thanks for the info. >> Will have a look. >> >> Best regards, >> >> Mads > OK. The cygwin in your home path looked suspicious: "c:\cygwin\home\mads > ipsen\" > > Christoph > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Hi, I am now done with the 32 bit case and am trying to do the same for 64 bit now. Here I get the error: Creating library build\temp.win32-2.7\Release\src\ft2font.lib and object buil d\temp.win32-2.7\Release\src\ft2font.exp ft2font.obj : error LNK2019: unresolved external symbol _FT_Set_Transform refere nced in function "public: class Py::Object __thiscall FT2Font::set_size(class Py ::Tuple const &)" (?set_size@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) ft2font.obj : error LNK2019: unresolved external symbol _FT_Set_Char_Size refere nced in function "public: class Py::Object __thiscall FT2Font::set_size(class Py ::Tuple const &)" (?set_size@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) ft2font.obj : error LNK2019: unresolved external symbol _FT_Set_Charmap referenc ed in function "public: class Py::Object __thiscall FT2Font::set_charmap(class P y::Tuple const &)" (?set_charmap@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@Z) ft2font.obj : error LNK2019: unresolved external symbol _FT_Select_Charmap refer enced in function "public: class Py::Object __thiscall FT2Font::select_charmap(c lass Py::Tuple const &)" (?select_charmap@FT2Font@@QAE?AVObject@Py@@ABVTuple@3@@ Z) I am using the msvcr90-x64 version of the libraries downloaded from http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib Wrong libraries? Bestregards, Mads -- +-----------------------------------------------------+ | Mads Ipsen | +----------------------+------------------------------+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby | phone: +45-29716388 | | Denmark | email: mad...@gm... | +----------------------+------------------------------+
I believe I fixed this in this pull request. https://github.com/matplotlib/matplotlib/pull/566 Unfortunately, I don't think there is a easy workaround other than not using the "fancy" arrow style. Regards, -JJ On Sun, Oct 30, 2011 at 1:51 PM, Brendan Barnwell <bre...@br...> wrote: > I encountered a strange error when trying to put some annotations on > a graph. I was able to simplify it to this: > > pyplot.plot([1, 2, 3, 4], [0, -1, -2, 8]) > pyplot.annotate("Blah", xy=(2, 2), xytext=(-20,-20), > textcoords='offset points', > bbox=dict(boxstyle='round,pad=0.5'), > arrowprops=dict(arrowstyle='fancy', > connectionstyle='arc3,rad=0')) > > On my system (matplotlib 1.1.0 with Python 2.6 on Windows XP), this > causes a long traceback culminating in > > File "C:\Program Files\Python\lib\site-packages\matplotlib\bezier.py", > line 129, in find_bezier_t_intersecting_with_closedpath > raise ValueError("the segment does not seemed to intersect with > the path") > > Increasing the xytext coordinates (in absolute value), to for > instance (-50, -50) works with no error, and it also works without the > special bbox style. Just guessing from the error message, it looks > like certain combinations of fancy patches are causing problems > because the shapes don't intersect in the way the drawing code assumes > they should. > > I don't see anything in the docs about such edge cases, so this looks > like a bug. Judging from the way that small tweaks to the code can > cause the error to disappear, I imagine it could be tricky to fix, but > at the least there should probably be a warning in the docs that some > kinds of anootation boxes won't work with some kinds of arrows when > the text is too close to the annotated point. > > Any ideas? > > Thanks. > -- > Brendan Barnwell > "Do not follow where the path may lead. Go, instead, where there is > no path, and leave a trail." > --author unknown > > ------------------------------------------------------------------------------ > Get your Android app more play: Bring it to the BlackBerry PlayBook > in minutes. BlackBerry App World™ now supports Android™ Apps > for the BlackBerry® PlayBook™. Discover just how easy and simple > it is! http://p.sf.net/sfu/android-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
On Nov 2, 2011, at 10:47 PM, Benjamin Root <ben...@ou...> wrote: > > > On Wednesday, November 2, 2011, John Hunter <jd...@gm...> wrote: > > On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root <ben...@ou...> wrote: > >>> I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so > >>> pip and easy_install install version 1.0.1 instead of version 1.1.0. Can > >>> somebody update the listing at the PyPI site? > >>> > >>> Thanks, > >>> Scott > >> > >> And if somebody knows how, let me know so I can add it to the notes for the > >> developer section? > > > > I updated pypi, so please let us know if there are any more problems.... > > > > So the instruction should be to remind John Hunter to update the entry in PyPi? Got it. > Even better, it should be: 1) update the release notes in the devel docs 2) give Ben access to the pypi acct. JDH
On Wednesday, November 2, 2011, John Hunter <jd...@gm...> wrote: > On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root <ben...@ou...> wrote: >>> I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so >>> pip and easy_install install version 1.0.1 instead of version 1.1.0. Can >>> somebody update the listing at the PyPI site? >>> >>> Thanks, >>> Scott >> >> And if somebody knows how, let me know so I can add it to the notes for the >> developer section? > > I updated pypi, so please let us know if there are any more problems.... > So the instruction should be to remind John Hunter to update the entry in PyPi? Got it. Ben Root
On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root <ben...@ou...> wrote: >> I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so >> pip and easy_install install version 1.0.1 instead of version 1.1.0. Can >> somebody update the listing at the PyPI site? >> >> Thanks, >> Scott > > And if somebody knows how, let me know so I can add it to the notes for the > developer section? I updated pypi, so please let us know if there are any more problems....
On Wednesday, November 2, 2011, Scott Lasley <sl...@sp...> wrote: > Hi, > > I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0. Can somebody update the listing at the PyPI site? > > Thanks, > Scott And if somebody knows how, let me know so I can add it to the notes for the developer section? Ben Root
Hi, I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0. Can somebody update the listing at the PyPI site? Thanks, Scott
A self response: self.fig.colorbar(self.plot_data) does the trick. On Wed, Nov 2, 2011 at 11:14 AM, Gökhan Sever <gok...@gm...> wrote: > Hello, > > I slightly modified the example show at > http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image > data. My version of the code is at: > http://code.google.com/p/ccnworks/source/browse/trunk/various/scroll.py > > What is the correct way to add a colorbar to this plot? A simple > plt.colorbar(axes) yields no colorbar drawn. > > Thanks. > > -- > Gökhan > -- Gökhan
On 11/02/2011 05:09 PM, Mads Ipsen wrote: > Works like a charm. What about support for the Qt backend. Do I need any > Qt dev. env. installed or does it just rely on PyQt and Qt binaries > being present on the machine? > Just PyQt and Qt binaries should be enough -- there is no C/C++ code in matplotlib that needs to link to Qt directly. Mike