[matplotlib-devel] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread Sandro Tosi
Hi all,
due to some requests came lately, I decided to upload the "temp"
Debian package for 0.98.5.2.

They are available at [1]. If you're using an amd64 architecture, then
you can take all those python-matplotlib*.deb and "sudo dpkg -i
deb" them, if you're using another architecture, then (needs
devscripts, build-essential installed):

dget -x http://people.debian.org/~morph/matplotlib_0.98.5.2-1.dsc
cd matplotlib-0.98.5.2
debuild -us -uc

At this stage, the command will fails because there are some missing
packages needed to build mpl. They are listed, so take them and
"aptitude install ". You need both unstable and
experimental repository in your /etc/apt/sources.list. Reiterate this
process until the building proceeds.

After a while (30mins ~ 1.5h) you'll have in .. the deb files to
install on your machine.

The building "guidelines" above are not complete, as it can't be in
this email; in case of problem, reply to the lists, so other can
leverage the replies.

Cheers,
Sandro

[1] http://people.debian.org/~morph/

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

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread Sandro Tosi
On Wed, Jan 14, 2009 at 14:14, John Travers  wrote:
> On Wed, Jan 14, 2009 at 8:10 AM, Sandro Tosi  wrote:
>> Hi all,
>> due to some requests came lately, I decided to upload the "temp"
>> Debian package for 0.98.5.2.
>>
>> They are available at [1].
>
> Any chance you could add them to your apt repository?

I was wondering that, for the time being, I could upload to
experimental: developers, do you have any plan to release .3 soon? If
not, and upload to our "experimental" area (that's a sort of unstable,
but with packages not ready for prime time) could be an easy way for
our users to have mpl on Debian system. Let me know, the package is
ready, just needs the upload.

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

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread John Hunter
On Wed, Jan 14, 2009 at 10:26 AM, Sandro Tosi  wrote:
> On Wed, Jan 14, 2009 at 14:14, John Travers  wrote:
>> On Wed, Jan 14, 2009 at 8:10 AM, Sandro Tosi  wrote:
>>> Hi all,
>>> due to some requests came lately, I decided to upload the "temp"
>>> Debian package for 0.98.5.2.
>>>
>>> They are available at [1].
>>
>> Any chance you could add them to your apt repository?
>
> I was wondering that, for the time being, I could upload to
> experimental: developers, do you have any plan to release .3 soon? If
> not, and upload to our "experimental" area (that's a sort of unstable,
> but with packages not ready for prime time) could be an easy way for
> our users to have mpl on Debian system. Let me know, the package is
> ready, just needs the upload.

Well, I've been planning to do it for some time now but have just been
too busy.  It's high on my list of things to do though!

JDH

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread Sandro Tosi
On Wed, Jan 14, 2009 at 18:22, John Hunter  wrote:
> On Wed, Jan 14, 2009 at 10:26 AM, Sandro Tosi  wrote:
>> I was wondering that, for the time being, I could upload to
>> experimental: developers, do you have any plan to release .3 soon? If
>> not, and upload to our "experimental" area (that's a sort of unstable,
>> but with packages not ready for prime time) could be an easy way for
>> our users to have mpl on Debian system. Let me know, the package is
>> ready, just needs the upload.
>
> Well, I've been planning to do it for some time now but have just been
> too busy.  It's high on my list of things to do though!

:) I supposed the situation was something similar. Well, given the
package sit waiting since a long time, and even Ubuntu expressed the
wish to pull a new version from Debian, I think I'll upload to
experimental this night. Once ready, I'll package and upload .3 too.

Thanks for your work!

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

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] path simplification can decrease the smoothness of data plots

2009-01-14 Thread Andrew Hawryluk
I'm really excited about the new path simplification option for vector
output formats. I tried it the first time yesterday and reduced a PDF
from 231 kB to 47 kB. Thanks very much for providing this feature!

However, I have noticed that the simplified paths often look more jagged
than the original, at least for my data. I can recreate the effect with
the following:

[start]
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(-3,3,0.001)
y = np.exp(-x**2) + np.random.normal(scale=0.001,size=x.size)
plt.plot(x,y)
plt.savefig('test.png')
plt.savefig('test.pdf')
[end]

A sample output is attached, and close inspection shows that the PNG is
a smooth curve with a small amount of noise while the PDF version has
very noticeable changes in direction from one line segment to the next.

 <>  <> 
The simplification algorithm (agg_py_path_iterator.h) does the
following:
   If line2 is nearly parallel to line1, add the parallel component to
the length of line1, leaving it direction unchanged
which results in a new data point, not contained in the original data.
Line1 will continue to be lengthened until it has deviated from the data
curve enough that the next true data point is considered non-parallel.
The cycle then continues. The result is a line that wanders around the
data curve, and only the first point is guaranteed to have existed in
the original data set. 

Instead, could the simplification algorithm do:
   If line2 is nearly parallel to line1, combine them by removing the
common point, leaving a single line where both end points existed in the
original data

Thanks again,
Andrew Hawryluk
<>

test.pdf
Description: test.pdf
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel