[matplotlib-devel] can't commit

2008-10-15 Thread John Hunter
I am getting this error on a couple of machines when I try to commit

[EMAIL PROTECTED]:mpl> svn commit -m 'some more doc mods'
svn: Commit failed (details follow):
svn: MKACTIVITY of
'/svnroot/matplotlib/!svn/act/5726e9f3-f4eb-cc5e-bc97-ffd78106e3fc':
403 Forbidden (https://matplotlib.svn.sourceforge.net)

Anyone else seeing this and does anyone have any idea what is wrong?

Thanks,
JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] can't commit

2008-10-15 Thread Michael Droettboom
Yep... just sent a message before seeing this one.  The few possible 
causes I could find through Google didn't seem relevant.

Feel free to pile on to this bug report -->

https://sourceforge.net/tracker/?func=detail&atid=21&aid=2168647&group_id=1

Mike

John Hunter wrote:
> I am getting this error on a couple of machines when I try to commit
>
> [EMAIL PROTECTED]:mpl> svn commit -m 'some more doc mods'
> svn: Commit failed (details follow):
> svn: MKACTIVITY of
> '/svnroot/matplotlib/!svn/act/5726e9f3-f4eb-cc5e-bc97-ffd78106e3fc':
> 403 Forbidden (https://matplotlib.svn.sourceforge.net)
>
> Anyone else seeing this and does anyone have any idea what is wrong?
>
> Thanks,
> JDH
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread John Hunter
On Wed, Oct 15, 2008 at 8:18 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> The new stylesheet for the docs looks great, John!

I just ripped this off hook-line-and-sinker from the sphinx docs, and
added the few css bits you created earlier.  They do look nice :-)

> One extremely minor nit: perhaps the logo is a too large in this
> context.  On smaller screens, like a 1024x768 laptop, it encompasses
> about a third of the usable browser window space.
>
> Would it be possible to keep it the current size for the main home page,
> but use a smaller version for the documentation pages?  Or, to the
> extreme, just use a small icon-sized logo like in the Python 2.6 docs?

I'm happy to do use a smaller logo on the doc pages, but off hand do
not know how to do it.  I am knee deep in trying to convert the
existing docs, because as you probably gathered the sphinx docs will
soon entirely replace the existing web pages entirely.  So if you
could help with this logo change that would be great.  Either route
(smaller logo or single icon) is fine by me.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] can't commit

2008-10-15 Thread John Hunter
On Wed, Oct 15, 2008 at 9:48 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> Yep... just sent a message before seeing this one.  The few possible causes
> I could find through Google didn't seem relevant.
>
> Feel free to pile on to this bug report -->
>
> https://sourceforge.net/tracker/?func=detail&atid=21&aid=2168647&group_id=1
>

I did -- and since others are now adding comments that they see the
same, it looks like a generic sf problem.  Hopefully they will get it
sorted out soon.

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] svn commit broken?

2008-10-15 Thread Michael Droettboom
I'm getting this when trying to commit to SVN this morning:

> svn: Commit failed (details follow):
> svn: MKACTIVITY of 
> '/svnroot/matplotlib/!svn/act/6b28eb9b-4b59-0410-81bc-d80e6be37be8': 
> 403 Forbidden (https://matplotlib.svn.sf.net)
Googling suggests this occurs when the developer doesn't have write 
permissions (not the case here), or using http rather than https (also 
not the case).

Filed a bug here:

https://sourceforge.net/tracker/?func=detail&atid=21&aid=2168647&group_id=1

Anyone else experiencing this?

Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread Michael Droettboom
John Hunter wrote:
> On Wed, Oct 15, 2008 at 8:18 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>   
>> The new stylesheet for the docs looks great, John!
>> 
>
> I just ripped this off hook-line-and-sinker from the sphinx docs, and
> added the few css bits you created earlier.  They do look nice :-)
>
>   
>> One extremely minor nit: perhaps the logo is a too large in this
>> context.  On smaller screens, like a 1024x768 laptop, it encompasses
>> about a third of the usable browser window space.
>>
>> Would it be possible to keep it the current size for the main home page,
>> but use a smaller version for the documentation pages?  Or, to the
>> extreme, just use a small icon-sized logo like in the Python 2.6 docs?
>> 
>
> I'm happy to do use a smaller logo on the doc pages, but off hand do
> not know how to do it.  I am knee deep in trying to convert the
> existing docs, because as you probably gathered the sphinx docs will
> soon entirely replace the existing web pages entirely.  So if you
> could help with this logo change that would be great.  Either route
> (smaller logo or single icon) is fine by me.
>   
Sure.  I'll look into this.

Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread John Hunter
On Wed, Oct 15, 2008 at 10:28 AM, Chris Walker
<[EMAIL PROTECTED]> wrote:

>
> http://matplotlib.sourceforge.net/doc/html/index.html links to
> http://matplotlib.sourceforge.net/doc/html/goals.html which doesn't
> seem to exist yet.
>
> I guess this is temporary, but thought it worth pointing out.

Thanks -- all bug reports welcome because I may not be aware of them.
The goals page is horribly out of date so I am just going to scrap it
for now.  We can resurrect it later if need be.

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread Chris Walker
"John Hunter" <[EMAIL PROTECTED]> writes:

> On Wed, Oct 15, 2008 at 8:18 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> > The new stylesheet for the docs looks great, John!
> 
> I just ripped this off hook-line-and-sinker from the sphinx docs, and
> added the few css bits you created earlier.  They do look nice :-)

Indeed they do. 

http://matplotlib.sourceforge.net/doc/html/index.html links to
http://matplotlib.sourceforge.net/doc/html/goals.html which doesn't
seem to exist yet.

I guess this is temporary, but thought it worth pointing out. 

Chris


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] typo in matplotlibrc.template

2008-10-15 Thread Michael Droettboom
Thanks.  Fixed in SVN.

Benjamin Drung wrote:
> Hello,
>
> there is a typo in matplotlibrc.template. Appended the fix.
>
> Greeting,
> Benjamin
>   
> 
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
>
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] New doc update

2008-10-15 Thread Michael Droettboom
The new stylesheet for the docs looks great, John!

One extremely minor nit: perhaps the logo is a too large in this 
context.  On smaller screens, like a 1024x768 laptop, it encompasses 
about a third of the usable browser window space.

Would it be possible to keep it the current size for the main home page, 
but use a smaller version for the documentation pages?  Or, to the 
extreme, just use a small icon-sized logo like in the Python 2.6 docs?

http://www.python.org/doc/current/library/

Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread John Hunter
On Wed, Oct 15, 2008 at 10:17 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:

>> I'm happy to do use a smaller logo on the doc pages, but off hand do
>> not know how to do it.  I am knee deep in trying to convert the
>> existing docs, because as you probably gathered the sphinx docs will
>> soon entirely replace the existing web pages entirely.  So if you
>> could help with this logo change that would be great.  Either route
>> (smaller logo or single icon) is fine by me.

I am having problems in that the "matplotlib home" text is getting
wrapped with the new icon.  Screenshot attached.  Are you not seeing
this?

I may work on a thinner default logo, because I like having the
consistency between pages

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread Michael Droettboom
Nope, I'm not seeing this, even when I shrink the window width way down.

This is Firefox 2.0 on RHEL4.

Does putting a   between matplotlib and home help?

Mike

John Hunter wrote:
> On Wed, Oct 15, 2008 at 10:17 AM, Michael Droettboom <[EMAIL PROTECTED]> 
> wrote:
>
>   
>>> I'm happy to do use a smaller logo on the doc pages, but off hand do
>>> not know how to do it.  I am knee deep in trying to convert the
>>> existing docs, because as you probably gathered the sphinx docs will
>>> soon entirely replace the existing web pages entirely.  So if you
>>> could help with this logo change that would be great.  Either route
>>> (smaller logo or single icon) is fine by me.
>>>   
>
> I am having problems in that the "matplotlib home" text is getting
> wrapped with the new icon.  Screenshot attached.  Are you not seeing
> this?
>
> I may work on a thinner default logo, because I like having the
> consistency between pages
>
> JDH
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread John Hunter
On Wed, Oct 15, 2008 at 2:22 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> Nope, I'm not seeing this, even when I shrink the window width way down.
>
> This is Firefox 2.0 on RHEL4.
>
> Does putting a   between matplotlib and home help?

I tried this, and it put matplotlib and home together, but on the line
below the icon.  I tried to make sure there were no spaces between the
image and the start of the matplotlib word, but wasn't able to kill
the newline

firefox 2.0.0.14 on solaris x86

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread Michael Droettboom
Weird.  Have to admit I don't understand this HTML stuff very well... ;)

John Hunter wrote:
> On Wed, Oct 15, 2008 at 2:22 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>   
>> Nope, I'm not seeing this, even when I shrink the window width way down.
>>
>> This is Firefox 2.0 on RHEL4.
>>
>> Does putting a   between matplotlib and home help?
>> 
>
> I tried this, and it put matplotlib and home together, but on the line
> below the icon.  I tried to make sure there were no spaces between the
> image and the start of the matplotlib word, but wasn't able to kill
> the newline
>
> firefox 2.0.0.14 on solaris x86
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New doc update

2008-10-15 Thread John Hunter
On Wed, Oct 15, 2008 at 2:42 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> Weird.  Have to admit I don't understand this HTML stuff very well... ;)

Don't worry about it -- I am going to try and revert these changes
with a thinner logo.  I'll let you know when it's ready for testing.

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] artists.rst

2008-10-15 Thread Manuel Metz
I found a few typos in artists.rst. Added a patch (don't want to commit
it, because I'm not actively working on the docs)

The first sentence of the section "Object containers" also needs to be
fixed (or I don't understand it):
  "Now that we know how to inspect set the properties of a given object
we want to configure, we need to now how to get at that object."

"inspect" or "set" ???

mm
Index: artists.rst
===
--- artists.rst	(revision 6213)
+++ artists.rst	(working copy)
@@ -80,10 +80,10 @@
 
 In this example, ``ax`` is the ``Axes`` instance created by the
 ``fig.add_subplot`` call above (remember ``Subplot`` is just a
-subclass of ``Axes``) and when you call ``ax.plot``, it createsa
-``Line2D`` instance and adds it the :attr:`Axes.lines
+subclass of ``Axes``) and when you call ``ax.plot``, it creates a
+``Line2D`` instance and adds it to the :attr:`Axes.lines
 ` list.  In the interactive `ipython
-`_ session below, you can see that
+`_ session below, you can see that the
 ``Axes.lines`` list is length one and contains the same line that was
 returned by the ``line, = ax.plot(x, y, 'o')`` call:
 
@@ -104,7 +104,7 @@
 ax.lines.remove(line)  # one or the other, not both!
 
 The Axes also has helper methods to configure and decorate the x-axis
-and y-axis tick, ticklabels and axis labels::
+and y-axis tick, tick labels and axis labels::
 
 xtext = ax.set_xlabel('my xdata') # returns a Text instance
 ytext = ax.set_ylabel('my xdata')
@@ -169,8 +169,8 @@
 clip_on  Whether clipping is enabled
 clip_pathThe path the artist is clipped to
 contains A picking function to test whether the artist contains the pick point
-figure   The figure instance the aritst lives in, possibly None
-labelA text label (eg for auto-labeling)
+figure   The figure instance the artist lives in, possibly None
+labelA text label (eg. for auto-labeling)
 picker   A python object that controls object picking
 transformThe transformation
 visible  A boolean whether the artist should be drawn
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Patch for scatter plot legend enhancement

2008-10-15 Thread Manuel Metz
Jae-Joon Lee wrote:
>> - the parameter numpoints should be used (it's ignored right now)
>>
> 
> Thanks Manuel. I guess we can simply reuse xdata_marker for this purpose.
> 
> 
>> - Some private variables are accessed and a new RegularPolycollection is
>> created (does this work eg. with a StarPolygonCollection? I haven't
>> checked, but I don't think so !). Instead of creating a new
>> RegularPolyCollection it might be more useful to make a copy of the
>> existing object... I was thinking about a update_from() method for the
>> Collection class(es) similar to update_from() for lines.
>>
> 
> By changing "RegularPolyCoolection"  to "type(handles)", it works for
> StarPolygonCollection.
> 
> In Erik's current implementation, the markers in the legend have
> varying colors, sizes, and y offsets.
> The color variation seems fine. But do we need to vary the sizes and
> y-offsets? My inclination is to use a fixed size (median?) and a fixed
> y offset. How does Erik and others think?
> 
> Regards,
> 
> -JJ

Attached is my current version of the patch. I've moved all of the
properties-copying stuff to collections, which makes the changes
legend.py more clearer (but I'm not fully happy with the patch and
haven't commit anything yet)

mm
Index: legend.py
===
--- legend.py	(revision 6211)
+++ legend.py	(working copy)
@@ -306,15 +306,14 @@
 ret.append(legline)
 
 elif isinstance(handle, RegularPolyCollection):
-if self.numpoints == 1:
-xdata = np.array([left])
-p = Rectangle(xy=(min(xdata), y-3/4*HEIGHT),
-  width = self.handlelen, height=HEIGHT/2,
-  )
-p.set_facecolor(handle._facecolors[0])
-if handle._edgecolors != 'none' and len(handle._edgecolors):
-p.set_edgecolor(handle._edgecolors[0])
-self._set_artist_props(p)
+ydata = (y-HEIGHT/2)*np.ones(xdata.shape, float)
+
+p = RegularPolyCollection(handle.get_numsides(),
+offsets=zip(xdata,ydata),
+transOffset=self.get_transform())
+
+p.update_from(handle)
+p.set_figure(self.figure)
 p.set_clip_box(None)
 p.set_clip_path(None)
 ret.append(p)
Index: collections.py
===
--- collections.py	(revision 6211)
+++ collections.py	(working copy)
@@ -148,6 +148,12 @@
 result = result.inverse_transformed(transData)
 return result
 
+def get_window_extent(self, renderer):
+bbox = self.get_datalim(transforms.IdentityTransform())
+#TODO:check to ensure that this does not fail for
+#cases other than scatter plot legend
+return bbox
+
 def _prepare_points(self):
 """Point prep for drawing and hit testing"""
 
@@ -413,7 +419,19 @@
 else:
 self._edgecolors = self.to_rgba(self._A, self._alpha)
 
+def update_from(self, other):
+'copy properties from other to self'
 
+artist.Artist.update_from(self, other)
+self._antialiaseds = other._antialiaseds
+self._edgecolors_original = other._edgecolors_original
+self._edgecolors = other._edgecolors
+self._facecolors_original = other._facecolors_original
+self._facecolors = other._facecolors
+self._linewidths = other._linewidths
+self._linestyles = other._linestyles
+self._pickradius = other._pickradius
+
 # these are not available for the object inspector until after the
 # class is built so we define an initial set here for the init
 # function and they will be overridden after object defn
@@ -702,7 +720,16 @@
 def get_paths(self):
 return self._paths
 
+def get_numsides(self):
+return len(self._paths[0])
 
+def update_from(self, other):
+Collection.update_from(self, other)
+
+self._sizes = other._sizes
+self._paths = other._paths
+self._rotation = other._rotation
+
 class StarPolygonCollection(RegularPolyCollection):
 """
 Draw a collection of regular stars with *numsides* points."""
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] [Fwd: Re: Patch for scatter plot legend enhancement]

2008-10-15 Thread Manuel Metz
hmm

 Original Message 
Jae-Joon Lee wrote:
>> - the parameter numpoints should be used (it's ignored right now)
>>
> 
> Thanks Manuel. I guess we can simply reuse xdata_marker for this purpose.
> 
> 
>> - Some private variables are accessed and a new RegularPolycollection is
>> created (does this work eg. with a StarPolygonCollection? I haven't
>> checked, but I don't think so !). Instead of creating a new
>> RegularPolyCollection it might be more useful to make a copy of the
>> existing object... I was thinking about a update_from() method for the
>> Collection class(es) similar to update_from() for lines.
>>
> 
> By changing "RegularPolyCoolection"  to "type(handles)", it works for
> StarPolygonCollection.
> 
> In Erik's current implementation, the markers in the legend have
> varying colors, sizes, and y offsets.
> The color variation seems fine. But do we need to vary the sizes and
> y-offsets? My inclination is to use a fixed size (median?) and a fixed
> y offset. How does Erik and others think?
> 
> Regards,
> 
> -JJ

Attached is my current version of the patch. I've moved all of the
properties-copying stuff to collections, which makes the changes
legend.py more clearer (but I'm not fully happy with the patch and
haven't commit anything yet)

mm


-- 
---
  Manuel Metz    [EMAIL PROTECTED]
  Argelander Institut fuer Astronomie
  Auf dem Huegel 71 (room 3.06)
  D - 53121 Bonn

  E-Mail: [EMAIL PROTECTED]
  Web:www.astro.uni-bonn.de/~mmetz
  Phone:  (+49) 228 / 73-3660
  Fax:(+49) 228 / 73-3672
---
Index: legend.py
===
--- legend.py	(revision 6211)
+++ legend.py	(working copy)
@@ -306,15 +306,14 @@
 ret.append(legline)
 
 elif isinstance(handle, RegularPolyCollection):
-if self.numpoints == 1:
-xdata = np.array([left])
-p = Rectangle(xy=(min(xdata), y-3/4*HEIGHT),
-  width = self.handlelen, height=HEIGHT/2,
-  )
-p.set_facecolor(handle._facecolors[0])
-if handle._edgecolors != 'none' and len(handle._edgecolors):
-p.set_edgecolor(handle._edgecolors[0])
-self._set_artist_props(p)
+ydata = (y-HEIGHT/2)*np.ones(xdata.shape, float)
+
+p = RegularPolyCollection(handle.get_numsides(),
+offsets=zip(xdata,ydata),
+transOffset=self.get_transform())
+
+p.update_from(handle)
+p.set_figure(self.figure)
 p.set_clip_box(None)
 p.set_clip_path(None)
 ret.append(p)
Index: collections.py
===
--- collections.py	(revision 6211)
+++ collections.py	(working copy)
@@ -148,6 +148,12 @@
 result = result.inverse_transformed(transData)
 return result
 
+def get_window_extent(self, renderer):
+bbox = self.get_datalim(transforms.IdentityTransform())
+#TODO:check to ensure that this does not fail for
+#cases other than scatter plot legend
+return bbox
+
 def _prepare_points(self):
 """Point prep for drawing and hit testing"""
 
@@ -413,7 +419,19 @@
 else:
 self._edgecolors = self.to_rgba(self._A, self._alpha)
 
+def update_from(self, other):
+'copy properties from other to self'
 
+artist.Artist.update_from(self, other)
+self._antialiaseds = other._antialiaseds
+self._edgecolors_original = other._edgecolors_original
+self._edgecolors = other._edgecolors
+self._facecolors_original = other._facecolors_original
+self._facecolors = other._facecolors
+self._linewidths = other._linewidths
+self._linestyles = other._linestyles
+self._pickradius = other._pickradius
+
 # these are not available for the object inspector until after the
 # class is built so we define an initial set here for the init
 # function and they will be overridden after object defn
@@ -702,7 +720,16 @@
 def get_paths(self):
 return self._paths
 
+def get_numsides(self):
+return len(self._paths[0])
 
+def update_from(self, other):
+Collection.update_from(self, other)
+
+self._sizes = other._sizes
+self._paths = other._paths
+self._rotation = other._rotation
+
 class StarPolygonCollection(RegularPolyCollection):
 """
 Draw a collection of regular stars with *numsides* points."""

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event

[matplotlib-devel] new site is live!

2008-10-15 Thread John Hunter
I just took the plunge and pushed the beta website live.  We are now
purely driven off the sphinx living in the doc dir.

There is still plenty of material from the old site (stuff from the
FAQ, the credits, stuff from the user's guide, goals/known issues) so
once again please feel free to contribute.  It's much easier now that
it is plain rest and sphinx.  One area where all developers can easily
contribute is by extending the FAQ when we get common questions on the
mailing lists.  I would also really like to see sections on contours,
images and colormaps, colorbars, time series plotting (eg the spectral
stuff), collections

  http://matplotlib.sourceforge.net

Let me know if you find any problems.

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] new site is live!

2008-10-15 Thread Andrew Straw
Dang that looks good. The only glitches that I see are:

1) after the ">>> hist(x, 100)""" line in the Python pre-formatted text
box, there's an extra line's worth of vertical space.

2) The heading "Plotting commands" overlaps slightly with the top line
of the following table.

This is on Firefox 3 with Ubuntu 8.04.

-Andrew


John Hunter wrote:
> I just took the plunge and pushed the beta website live.  We are now
> purely driven off the sphinx living in the doc dir.
> 
> There is still plenty of material from the old site (stuff from the
> FAQ, the credits, stuff from the user's guide, goals/known issues) so
> once again please feel free to contribute.  It's much easier now that
> it is plain rest and sphinx.  One area where all developers can easily
> contribute is by extending the FAQ when we get common questions on the
> mailing lists.  I would also really like to see sections on contours,
> images and colormaps, colorbars, time series plotting (eg the spectral
> stuff), collections
> 
>   http://matplotlib.sourceforge.net
> 
> Let me know if you find any problems.
> 
> JDH
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] new site is live!

2008-10-15 Thread John Hunter
On Wed, Oct 15, 2008 at 4:04 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
> Dang that looks good. The only glitches that I see are:
>
> 1) after the ">>> hist(x, 100)""" line in the Python pre-formatted text
> box, there's an extra line's worth of vertical space.
>
> 2) The heading "Plotting commands" overlaps slightly with the top line
> of the following table.
>
> This is on Firefox 3 with Ubuntu 8.04.

I'm seeing that too -- added a couple of hacks to fix it

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] suggestion for the interpolation in imshow()

2008-10-15 Thread Andrew Hawryluk
The interpolation algorithm used in imshow() can produce spurious
results, as has been noted before:
http://article.gmane.org/gmane.comp.python.matplotlib.general/12062

This happens because the data is converted to RGB before the
interpolation/resampling, rather than after. How hard would it be to
reverse this so that the data array is first interpolated & resampled
and then converted by cmap to RGB?

Andrew Hawryluk
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] suggestion for the interpolation in imshow()

2008-10-15 Thread Eric Firing
Andrew Hawryluk wrote:
> The interpolation algorithm used in imshow() can produce spurious 
> results, as has been noted before:
> 
> _http://article.gmane.org/gmane.comp.python.matplotlib.general/12062_
> 
> This happens because the data is converted to RGB before the 
> interpolation/resampling, rather than after. How hard would it be to 
> reverse this so that the data array is first interpolated & resampled 
> and then converted by cmap to RGB?

To me, it looks very hard.  The color mapping is done first, in python, 
and not repeated with every draw.  The interpolation is done by agg at 
rendering time.  Logically, I don't know any reason why agg shouldn't do 
what you suggest: interpolate the scalar field and then convert to rgb. 
  Maybe agg can do it this way.  If so, it would still take quite a bit 
of work by someone comfortable with agg (i.e., not me) to make the change.

Eric

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] [Fwd: Re: Patch for scatter plot legend enhancement]

2008-10-15 Thread Jae-Joon Lee
Hi Manuel,

I think it is a good to introduce the update_from method in Collections.
But, I'm not sure if it is a good idea to also update sizes, paths and
rotation (in RegularPolyCoolection). My impression is that update_from
method is to update gc related attributes. For comparison,
Patch.update_from() does not update the path.
Also, is it okay to update properties without checking its length?. It
does not seem to cause any problems though.

I guess It would better to use xdata_markers than xdata in the
get_handle() method. The difference is when numpoints==1. Using xdata
gives two marker points.

I was actually about to to commit my patch. I'll try to account your
changes and post my version of patch later today.

Regards,

-JJ




On Wed, Oct 15, 2008 at 4:07 PM, Manuel Metz <[EMAIL PROTECTED]> wrote:
> hmm
>
>  Original Message 
> Jae-Joon Lee wrote:
>>> - the parameter numpoints should be used (it's ignored right now)
>>>
>>
>> Thanks Manuel. I guess we can simply reuse xdata_marker for this purpose.
>>
>>
>>> - Some private variables are accessed and a new RegularPolycollection is
>>> created (does this work eg. with a StarPolygonCollection? I haven't
>>> checked, but I don't think so !). Instead of creating a new
>>> RegularPolyCollection it might be more useful to make a copy of the
>>> existing object... I was thinking about a update_from() method for the
>>> Collection class(es) similar to update_from() for lines.
>>>
>>
>> By changing "RegularPolyCoolection"  to "type(handles)", it works for
>> StarPolygonCollection.
>>
>> In Erik's current implementation, the markers in the legend have
>> varying colors, sizes, and y offsets.
>> The color variation seems fine. But do we need to vary the sizes and
>> y-offsets? My inclination is to use a fixed size (median?) and a fixed
>> y offset. How does Erik and others think?
>>
>> Regards,
>>
>> -JJ
>
> Attached is my current version of the patch. I've moved all of the
> properties-copying stuff to collections, which makes the changes
> legend.py more clearer (but I'm not fully happy with the patch and
> haven't commit anything yet)
>
> mm
>
>
> --
> ---
>  Manuel Metz    [EMAIL PROTECTED]
>  Argelander Institut fuer Astronomie
>  Auf dem Huegel 71 (room 3.06)
>  D - 53121 Bonn
>
>  E-Mail: [EMAIL PROTECTED]
>  Web:www.astro.uni-bonn.de/~mmetz
>  Phone:  (+49) 228 / 73-3660
>  Fax:(+49) 228 / 73-3672
> ---
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel