Re: [Matplotlib-users] Unsubscription

2014-10-16 Thread Raymond Smith
Please use the link on the bottom of every message sent to this mailing
list:

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On that page, there is an option for un-subscribing.

Best,
Ray

On Thu, Oct 16, 2014 at 4:22 PM, Almerindo Paiva  wrote:

> Dear Sirs,
>
> I would like to ask you to unsubscripte my account from
> matplotlib-users@lists.sourceforge.net.
>
> Kind regards,
>
> Almerindo Paiva
>
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Unsubscription

2014-10-16 Thread Almerindo Paiva
Dear Sirs,

I would like to ask you to unsubscripte my account from
matplotlib-users@lists.sourceforge.net.

Kind regards,

Almerindo Paiva
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib import fail

2014-10-16 Thread Thomas Caswell
Tobais,

In the future please send all messages like this to the user mailing list (cc'd)

Try using the 1.4.1rc1 release candidate, there are windows installers
on sourceforge.  If that does not work, please open a new github
issue.

Tom

On Thu, Oct 16, 2014 at 2:43 PM, Tobias Landwehr  wrote:
> Greetings Thomas,
>
> I am sorry to disturb you, but I found on github, that you could've already
> provided a solution to my problem almost three weeks ago. I couldn't really
> understand the way how to solve the prob, which is the reason I decided to
> write you.
>
> I am currently working with Python 2.7.2 and want to import the matplotlib.
> Problems arise obviously since my username-folder contains a non-ascii sign
> (german Ä). I would prefer to not setup a second user and the user's folder
> shouldn't/can't be renamed.
>
> If you could find some time to deal with the problem over the weekend or
> give me a hint, how to solve it, I would be really grateful. Below you'll
> find the fail report.
>
> Many thanks in advance, Tobias
>
> Traceback (most recent call last):
>   File "C:\Python27\workspace\ITT\src\itt\statistics\block01\LandCover.py",
> line 7, in 
> import matplotlib.pyplot as plt
>   File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 1048, in
> 
> rcParams = rc_params()
>   File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 897, in
> rc_params
> fname = matplotlib_fname()
>   File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 759, in
> matplotlib_fname
> configdir = _get_configdir()
>   File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 630, in
> _get_configdir
> return _get_config_or_cache_dir(_get_xdg_config_dir())
>   File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 555, in
> _get_xdg_config_dir
> path = get_home()
>   File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 323, in
> wrapper
> ret = func(*args, **kwargs)
>   File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 509, in
> _get_home
> path = os.path.expanduser("~")
>   File "C:\Python27\lib\ntpath.py", line 310, in expanduser
> return userhome + path[i:]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 16:
> ordinal not in range(128)
>



-- 
Thomas Caswell
tcasw...@gmail.com

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Get contourf image as array

2014-10-16 Thread David Hoese
Thanks Ben. I'll take a look through the archive.

On 10/16/14, 9:43 AM, Benjamin Root wrote:
> What you are looking for is called "rasterization". Matplotlib does this
> deep within the codebase and is not accessible (believe me, I tried).
> However, there have been other discussions in this mailing list about
> how to use GDAL to rasterize a set of polygons (represented as paths),
> including some links to stack-overflow questions. It isn't a complete
> end-to-end solution, but the pieces are there.
>
> Cheers!
> Ben Root
>
>
> On Wed, Oct 15, 2014 at 2:09 PM, David Hoese  > wrote:
>
> For the first question, if I save the figure (as a PNG I'm guessing,
> unless you can save into a more array-like format), I'd have to make
> sure that there were no labels or ticks and that the axes fit the whole
> figure. I'd also have to get the dpi and size information correct, but I
> suppose it would be possible that way. I was hoping for something a
> little easier and in-memory. This might be the simplest answer the more
> I think about it.
>
> If I'm starting from the paths, I'd still have to write them to the
> "grid" array. I thought maybe the backend could do that and I magically
> get the image.
>
> I'll look in to using savefig and getting the data out.
>
> -Dave
>
> On 10/15/14, 12:42 PM, Joy merwin monteiro wrote:
> > pardon the query if it seems dumb, but why don't you do a savefig()
> > after plotting the data and then convert it to any format you like?
> >
> > alternatively, contour() and contourf() both create paths that can
> > be accessed:
> >
> > cf = contourf(.)
> >
> > output = cf.collections.pop()
> > paths = output.get_paths()[i] # for the various contours
> >
> > the x,y coordinates can then be accessed as
> >
> > xcoords = paths.vertices.transpose()[0]
> > ycoords = paths.vertices.transpose()[1]
> >
> > you can then do whatever you wish with them.
> >
> > Joy
> >
> >
> > On Wed, Oct 15, 2014 at 9:11 PM, David Hoese  
>  > >> wrote:
>  >
>  > I've been searching and reading through source code and
> google searches
>  > to see if this is possible, but no luck so far. I'm basically
> trying to
>  > map some data using Basemap, use contourf to map it to an
> image, and
>  > then put that image in a geotiff (or other format) for use in
> other GIS
>  > programs. I have other tools for remapping data and creating
> geotiffs,
>  > but the contour image looks better. All I would need to get
> this to work
>  > would be an array representing the image inside the axes of a
> contourf
>  > plot. I found a lot of geotiff -> Basemap png results, but I
> would like
>  > the reverse.
>  >
>  > Since the plots are made using paths/patches I'm guessing I
> would have
>  > to have a backend render the image and then extract the image
> somehow.
>  > Does anyone have some tips or tricks to do something like
> this? Or am I
>  > thinking about this completely wrong?
>  >
>  > Thanks for any help and if you could CC me in any replies it
> would be
>  > much appreciated.
>  >
>  > -Dave
>  >
>  >
>   
> --
>  > Comprehensive Server Monitoring with Site24x7.
>  > Monitor 10 servers for $9/Month.
>  > Get alerted through email, SMS, voice calls or mobile push
>  > notifications.
>  > Take corrective actions from your mobile device.
>  > http://p.sf.net/sfu/Zoho
>  > ___
>  > Matplotlib-users mailing list
>  > Matplotlib-users@lists.sourceforge.net
> 
>  >  >
>  > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>  >
>  >
>  >
>  >
>  > --
>  > The best ruler, when he finishes his
>  > tasks and completes his affairs,
>  > the people say
>  > “It all happened naturally”
>  >
>  >   - Te Tao Ch'ing
>
> 
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push
> notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Matplotlib-users mailing list
> M

Re: [Matplotlib-users] Get contourf image as array

2014-10-16 Thread Benjamin Root
What you are looking for is called "rasterization". Matplotlib does this
deep within the codebase and is not accessible (believe me, I tried).
However, there have been other discussions in this mailing list about how
to use GDAL to rasterize a set of polygons (represented as paths),
including some links to stack-overflow questions. It isn't a complete
end-to-end solution, but the pieces are there.

Cheers!
Ben Root


On Wed, Oct 15, 2014 at 2:09 PM, David Hoese  wrote:

> For the first question, if I save the figure (as a PNG I'm guessing,
> unless you can save into a more array-like format), I'd have to make
> sure that there were no labels or ticks and that the axes fit the whole
> figure. I'd also have to get the dpi and size information correct, but I
> suppose it would be possible that way. I was hoping for something a
> little easier and in-memory. This might be the simplest answer the more
> I think about it.
>
> If I'm starting from the paths, I'd still have to write them to the
> "grid" array. I thought maybe the backend could do that and I magically
> get the image.
>
> I'll look in to using savefig and getting the data out.
>
> -Dave
>
> On 10/15/14, 12:42 PM, Joy merwin monteiro wrote:
> > pardon the query if it seems dumb, but why don't you do a savefig()
> > after plotting the data and then convert it to any format you like?
> >
> > alternatively, contour() and contourf() both create paths that can
> > be accessed:
> >
> > cf = contourf(.)
> >
> > output = cf.collections.pop()
> > paths = output.get_paths()[i] # for the various contours
> >
> > the x,y coordinates can then be accessed as
> >
> > xcoords = paths.vertices.transpose()[0]
> > ycoords = paths.vertices.transpose()[1]
> >
> > you can then do whatever you wish with them.
> >
> > Joy
> >
> >
> > On Wed, Oct 15, 2014 at 9:11 PM, David Hoese  > > wrote:
> >
> > I've been searching and reading through source code and google
> searches
> > to see if this is possible, but no luck so far. I'm basically trying
> to
> > map some data using Basemap, use contourf to map it to an image, and
> > then put that image in a geotiff (or other format) for use in other
> GIS
> > programs. I have other tools for remapping data and creating
> geotiffs,
> > but the contour image looks better. All I would need to get this to
> work
> > would be an array representing the image inside the axes of a
> contourf
> > plot. I found a lot of geotiff -> Basemap png results, but I would
> like
> > the reverse.
> >
> > Since the plots are made using paths/patches I'm guessing I would
> have
> > to have a backend render the image and then extract the image
> somehow.
> > Does anyone have some tips or tricks to do something like this? Or
> am I
> > thinking about this completely wrong?
> >
> > Thanks for any help and if you could CC me in any replies it would be
> > much appreciated.
> >
> > -Dave
> >
> >
>  
> --
> > Comprehensive Server Monitoring with Site24x7.
> > Monitor 10 servers for $9/Month.
> > Get alerted through email, SMS, voice calls or mobile push
> > notifications.
> > Take corrective actions from your mobile device.
> > http://p.sf.net/sfu/Zoho
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > 
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
> >
> >
> > --
> > The best ruler, when he finishes his
> > tasks and completes his affairs,
> > the people say
> > “It all happened naturally”
> >
> >   - Te Tao Ch'ing
>
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] v1.4.1rc1

2014-10-16 Thread Thomas Caswell
Awesome, thanks!

On Thu, Oct 16, 2014 at 8:14 AM, Sandro Tosi  wrote:
> Hi!
> I just uploaded mpl 1.4.1-rc1 in Debian, so it can geta  bit of
> exposure even on the weird HW we still support.
>
> Cheers,
> Sandro
>
> On Tue, Oct 14, 2014 at 5:40 PM, Thomas Caswell  wrote:
>> I am happy to announce that I have tagged a release candidate for
>> 1.4.1.  This is a bug-fix release which fixes most of the bug that
>> popped up in 1.4.0 including:
>>
>>  - setup.py does not die when freetype is not installed
>>  - reverts the changes to interactive plotting so `ion` will work as expected
>>  - sundry unicode fixes (looking up user folders, importing
>> seaborn/pandas/networkx with macosx backend
>>  - fixed boxplot regressions
>>
>> The tarball is available from github, sourceforge and can be install via
>>
>>pip install matplotlib==1.4.1rc1
>>
>> Tom
>>
>>
>>
>> --
>> Thomas Caswell
>> tcasw...@gmail.com
>>
>> --
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>> http://p.sf.net/sfu/Zoho
>> ___
>> Matplotlib-devel mailing list
>> matplotlib-de...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
>
> --
> Sandro Tosi (aka morph, morpheus, matrixhasu)
> My website: http://matrixhasu.altervista.org/
> Me at Debian: http://wiki.debian.org/SandroTosi



-- 
Thomas Caswell
tcasw...@gmail.com

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] v1.4.1rc1

2014-10-16 Thread Sandro Tosi
Hi!
I just uploaded mpl 1.4.1-rc1 in Debian, so it can geta  bit of
exposure even on the weird HW we still support.

Cheers,
Sandro

On Tue, Oct 14, 2014 at 5:40 PM, Thomas Caswell  wrote:
> I am happy to announce that I have tagged a release candidate for
> 1.4.1.  This is a bug-fix release which fixes most of the bug that
> popped up in 1.4.0 including:
>
>  - setup.py does not die when freetype is not installed
>  - reverts the changes to interactive plotting so `ion` will work as expected
>  - sundry unicode fixes (looking up user folders, importing
> seaborn/pandas/networkx with macosx backend
>  - fixed boxplot regressions
>
> The tarball is available from github, sourceforge and can be install via
>
>pip install matplotlib==1.4.1rc1
>
> Tom
>
>
>
> --
> Thomas Caswell
> tcasw...@gmail.com
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Matplotlib-devel mailing list
> matplotlib-de...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel



-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users