Re: [Matplotlib-users] PyPI has version 1.0.1

2011-11-03 Thread John Hunter




On Nov 2, 2011, at 10:47 PM, Benjamin Root ben.r...@ou.edu wrote:

 
 
 On Wednesday, November 2, 2011, John Hunter jdh2...@gmail.com wrote:
  On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root ben.r...@ou.edu 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--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Certain annotation parameters cause strange error

2011-11-03 Thread Jae-Joon Lee
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 brenb...@brenbarn.net 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 BlackBerryreg; PlayBook#153;. Discover just how easy and simple
 it is! http://p.sf.net/sfu/android-dev2dev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-03 Thread Mads Ipsen

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
Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.net 
   mailto:Matplotlib-users@lists.sourceforge.net
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?


Seehttp://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
Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.net
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
Matplotlib-users@lists.sourceforge.net
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:  mads.ip...@gmail.com |
+--+--+


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-03 Thread Christoph Gohlke


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
 Matplotlib-users@lists.sourceforge.net  
 mailto:Matplotlib-users@lists.sourceforge.net   
 mailto:Matplotlib-users@lists.sourceforge.net
 mailto:Matplotlib-users@lists.sourceforge.net
 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?

 Seehttp://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
 Matplotlib-users@lists.sourceforge.net  
 mailto:Matplotlib-users@lists.sourceforge.net   
 mailto:Matplotlib-users@lists.sourceforge.net
 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
 Matplotlib-users@lists.sourceforge.net  
 mailto:Matplotlib-users@lists.sourceforge.net
 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] Animation module

2011-11-03 Thread Stuart Mumford
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
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Ternary Plot

2011-11-03 Thread elmar werling
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


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Animation module

2011-11-03 Thread Benjamin Root
On Thu, Nov 3, 2011 at 12:51 PM, Stuart Mumford stu...@mumford.me.ukwrote:

 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 

Re: [Matplotlib-users] Ternary Plot

2011-11-03 Thread Benjamin Root
On Thu, Nov 3, 2011 at 2:58 PM, elmar werling el...@net4werling.de 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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-03 Thread Mads Ipsen
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
 Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.net
 mailto:Matplotlib-users@lists.sourceforge.net 
 mailto:Matplotlib-users@lists.sourceforge.net
 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?

 Seehttp://sourceforge.net/mailarchive/message.php?msg_id=27961105and
 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
 Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.net
 mailto:Matplotlib-users@lists.sourceforge.net
 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
 Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.net
 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
 

Re: [Matplotlib-users] Ternary Plot

2011-11-03 Thread Joe Kington
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.r...@ou.edu wrote:



 On Thu, Nov 3, 2011 at 2:58 PM, elmar werling el...@net4werling.dewrote:

 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
 Matplotlib-users@lists.sourceforge.net
 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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] use shapefile to create a mask?

2011-11-03 Thread questions anon
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use shapefile to create a mask?

2011-11-03 Thread Paul Hobson
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 questions.a...@gmail.com 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
 Matplotlib-users@lists.sourceforge.net
 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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] use shapefile to create a mask?

2011-11-03 Thread Matt S.
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 questions.a...@gmail.comwrote:

 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
 Matplotlib-users@lists.sourceforge.net
 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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users