SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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)



Showing results of 339

<< < 1 .. 10 11 12 13 14 > >> (Page 12 of 14)
From: Benjamin R. <ben...@ou...> - 2011年11月05日 21:59:05
On Sat, Nov 5, 2011 at 4:49 PM, Wayne Watson
<sie...@sb...>wrote:
> Unsubscribe?
>
>
Sorry to see you go. Use the last input field at this link:
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Ben Root
From: Wayne W. <sie...@sb...> - 2011年11月05日 21:50:12
Unsubscribe?
-- 
 Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
 Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
 "Science is the greatest gift given to mankind."
 -- W. Watson
 Web Page:<www.speckledwithstars.net/>
From: <kra...@gm...> - 2011年11月05日 20:52:44
I suppose it is possible to delete all collections one by one, but that's
an ugly solution. And as I'm not aware of the behind the scenes work done
by contour it's a bit dangerous.
Is there a standard way to remove a contour plot?
Regards
Stefan Krastanov
From: Jeff W. <js...@fa...> - 2011年11月05日 15:32:29
The basemap matplotlib toolkit 1.0.2 is available for download at
https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.2/
Documentation is at
http://matplotlib.github.com/basemap
including an example gallery that highlights it's capabilities
http://matplotlib.github.com/basemap/users/examples.html 
The highlights of this release are:
* full python 3 compatibility.
* new land-sea mask datasets.
* a new "colorbar" method for easy placement of colorbars using the axes_grid toolkit.
* new "shadedrelief" and "etopo" methods.
* removal of the deprecated "NetCDFFile" function (use netcdf4-python instead).
* several bug fixes.
Here is the full Changelog:
version 1.0.2 (git tag v1.0.2)
 * update include geos from 3.2.0 to 3.3.1 so it compiles with gcc
 4.6.
 * added colorbar method that uses axes_grid toolkit to
 create colorbar axes.
 * replace hasattr(arr,'mask') with numpy.ma.isMA(arr).
 * docs updated, moved to matplotlib.github.com/basemap.
 * added optional 1.25, 2.5 and 10 minute land/sea masks (derived from
 GSHHS coastline data). 'resolution'
 and 'grid' kwargs added to drawlsmask and maskoceans.
 'resolution' can be 'c','l','i','h' or 'f', grid can be 1.25,2.5,5 or 10.
 * update shapefile.py from pyshp.googlecode.com to r72.
 * change default land-sea mask (now derived directly from gshhs
 coastline data, default is 5 minutes use coastline resolution =
 'l'). Default for plotting lakes is now True.
 * add etopo method (similar to bluemarble, but plots etopo
 relief image from www.ngdc.noaa.gov/mgg/global as a map background).
 * add shadedrelief method (similar to bluemarble, but plots shaded
 relief image from naturalearthdata.com as a map background).
 * replace pyshapelib with pure python shapelib.py from
 pyshp.googlecode.com. Allows full python 3 compatibility.
 * fix doc/conf.py to use inheritance_diagram from Sphinx, not
 matplotlib.
 * fix drawlsmask so cylindrical projections work correctly when
 longitude range outside of -180 to 180.
 * python 3 compatibility.
 * added lic_demo.py to examples (line integral convolution,
 requires scikit.vectorplot).
 * removed deprecated NetCDFFile.
 * added zorder keyword to drawmapscale.
Regards,
Jeff
From: Goyo <goy...@gm...> - 2011年11月05日 15:26:44
Attachments: simple_example.pdf
2011年11月2日 Anton Daitche <a.d...@go...>:
> Hallo,
> i am observing inexact drawing of point in matplotlib.
As I remember from an earlier discussion on this, it's assumed that
these small deviations are tolerable in the agg renderer. This makes
the interactive backends more responsive at expenses of accuracy.
I can see the same deviations using the tkagg backend with mpl 1.1.0
but if I save as pdf using the save button I get an accurate rendering
(see attachment).
Best regards
Goyo
From: Benjamin R. <ben...@ou...> - 2011年11月04日 23:39:24
On Friday, November 4, 2011, Tony Yu <ts...@gm...> wrote:
>
>
> On Fri, Nov 4, 2011 at 4:49 PM, Rahul Mahajan <aer...@gm...> wrote:
>>
>> Hi,
>> I am trying to put 1 colorbar on 2 subplots, but failing miserably.
>>
>> I have tried multiple approaches, involving subplot2grid, add_axes,
AxesGrid etc.
>>
>> If anyone has a "canned" routine or knows what to do, your help is
greatly appreciated.
>>
>> Here is my code block:
>>
>> fig = pyplot.figure()
>>
>> ax1 = pyplot.subplot2grid((2,2),(0,0))
>> cx1 =
pyplot.contourf(x,y,var1,var_cint,origin='lower',extend='both')
>>
>> ax2 = pyplot.subplot2grid((2,2),(0,1))
>> cx2 =
pyplot.contourf(x,y,var2,var_cint,origin='lower',extend='both')
>>
>> Now I want to put 1 colorbar to these subplots.
>
> This example seems to be a very simple example of what you want:
>
http://matplotlib.sourceforge.net/examples/pylab_examples/subplots_adjust.html
>
> Basically, you need to create an axes specifically for the colorbar (e.g.
`colorbar_ax`) and call pyplot.colorbar(cax=colorbar_ax); or you can let
mpl automatically take space from one of your existing axes: for example,
pyplot.colorbar(ax=ax2).
>
> You can also pass a mappable to pyplot.colorbar (in your example, cx1 or
cx2), but by default, it will grab the most recently created one. Note,
using the single colorbar for both subplots *only* makes sense if var_cint
(in your code) is defining the *values* of the contour levels (as opposed
to the *number* of contour levels). Otherwise, the colorbar will only be
accurate for one of the two plots.
>
> HTH,
> -Tony
>
Even easier is to use the axes_grid1 module and create an AxesGrid object.
In the constructor, you can specify the colorbar mode as 'single'. Then,
the AxesGrid object has the axes for plots, and a separate list for any
axes for use for colobars.
Does that help?
Ben Root
From: Stan W. <sta...@nr...> - 2011年11月04日 22:04:14
From: questions anon [mailto:que...@gm...] 
Sent: Wednesday, November 02, 2011 17:17
 
Thanks, I think you are right about the datetimes for the x axis causing the
problem.
Does anyone have any ideas how to resolve this?
Does it help to call ax.xaxis_date() before your calls to plt.plot()?
From: Tony Yu <ts...@gm...> - 2011年11月04日 21:29:20
On Fri, Nov 4, 2011 at 4:49 PM, Rahul Mahajan <aer...@gm...> wrote:
> Hi,
> I am trying to put 1 colorbar on 2 subplots, but failing miserably.
>
> I have tried multiple approaches, involving subplot2grid, add_axes,
> AxesGrid etc.
>
> If anyone has a "canned" routine or knows what to do, your help is greatly
> appreciated.
>
> Here is my code block:
>
> fig = pyplot.figure()
>
> ax1 = pyplot.subplot2grid((2,2),(0,0))
> cx1 = pyplot.contourf(x,y,var1,var_cint,origin='lower',extend='both')
>
> ax2 = pyplot.subplot2grid((2,2),(0,1))
> cx2 = pyplot.contourf(x,y,var2,var_cint,origin='lower',extend='both')
>
> Now I want to put 1 colorbar to these subplots.
>
This example seems to be a very simple example of what you want:
http://matplotlib.sourceforge.net/examples/pylab_examples/subplots_adjust.html
Basically, you need to create an axes specifically for the colorbar (e.g.
`colorbar_ax`) and call pyplot.colorbar(cax=colorbar_ax); or you can let
mpl automatically take space from one of your existing axes: for example,
pyplot.colorbar(ax=ax2).
You can also pass a mappable to pyplot.colorbar (in your example, cx1 or
cx2), but by default, it will grab the most recently created one. Note,
using the single colorbar for both subplots *only* makes sense if var_cint
(in your code) is defining the *values* of the contour levels (as opposed
to the *number* of contour levels). Otherwise, the colorbar will only be
accurate for one of the two plots.
HTH,
-Tony
From: Rahul M. <aer...@gm...> - 2011年11月04日 20:49:33
Hi,
I am trying to put 1 colorbar on 2 subplots, but failing miserably.
I have tried multiple approaches, involving subplot2grid, add_axes,
AxesGrid etc.
If anyone has a "canned" routine or knows what to do, your help is greatly
appreciated.
Here is my code block:
 fig = pyplot.figure()
 ax1 = pyplot.subplot2grid((2,2),(0,0))
 cx1 = pyplot.contourf(x,y,var1,var_cint,origin='lower',extend='both')
 ax2 = pyplot.subplot2grid((2,2),(0,1))
 cx2 = pyplot.contourf(x,y,var2,var_cint,origin='lower',extend='both')
Now I want to put 1 colorbar to these subplots.
Thanks!
From: Elmar W. <el...@ne...> - 2011年11月04日 11:12:01
On 03.11.2011 22:28, Joe Kington wrote:
> 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...
> <mailto:ben...@ou...>> wrote:
>
>
>
> On Thu, Nov 3, 2011 at 2:58 PM, elmar werling
> <el...@ne...
> <mailto: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...
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
>
> ------------------------------------------------------------------------------
> 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
thanks - hope it will help
elmar
From: Stuart M. <st...@mu...> - 2011年11月04日 09:34:37
Hello,
Thanks for your help.
Do you need the colorbar scale to change with each frame? If not, you can
> create a wholly independent colorbar like so:
>
Yes, I do need the colour bar to update with each frame unfortunately!
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.
I see what you mean here, the problem is that while I could do it I think
it would take more memory because each frame is a composite if a few data
sets, and also I quite like the separation of the data and the animation.
Just a thought, would it be possible to combine the two, to create a list
of artists that stores the AxesImage and Line2D object I have for each
subplot and then create a FuncAnimate to add a colorbar and animate them?
Or (continuing thinking this up) to create a list of axes objects
(subplots) then add colorbars to them and just add them to a figure??
> 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.
>
Not really sure what you mean by faster rendering in this context, surely
the rendering done when you draw the Artist in ArtistAnimate is the same
speed as drawing out of a FuncAnimate?
>
> Note, this won't work if the domain changes over time.
>
What the size of the domain or the Vlim's??
Thanks again
Stuart
From: Matt S. <sle...@gm...> - 2011年11月03日 23:21:09
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
>
>
From: Paul H. <pmh...@gm...> - 2011年11月03日 23:05:15
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
>
>
From: questions a. <que...@gm...> - 2011年11月03日 22:40:53
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
From: Joe K. <jki...@wi...> - 2011年11月03日 21:29:01
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
>
>
From: Mads I. <mad...@gm...> - 2011年11月03日 20:35:44
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... |
+----------------------+------------------------------+
From: Benjamin R. <ben...@ou...> - 2011年11月03日 20:15:17
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
From: Benjamin R. <ben...@ou...> - 2011年11月03日 20:07:15
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
>
>
From: elmar w. <el...@ne...> - 2011年11月03日 19:58:50
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
From: Stuart M. <st...@mu...> - 2011年11月03日 19:44:29
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
From: Christoph G. <cg...@uc...> - 2011年11月03日 15:34:20
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
From: Mads I. <mad...@gm...> - 2011年11月03日 13:45:50
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... |
+----------------------+------------------------------+
From: Jae-Joon L. <lee...@gm...> - 2011年11月03日 11:56:43
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&#153; now supports Android&#153; Apps
> for the BlackBerry&reg; PlayBook&#153;. 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
>
From: John H. <jd...@gm...> - 2011年11月03日 10:40:43
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
From: Benjamin R. <ben...@ou...> - 2011年11月03日 03:47:51
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
8 messages has been excluded from this view by a project administrator.

Showing results of 339

<< < 1 .. 10 11 12 13 14 > >> (Page 12 of 14)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /