Re: [matplotlib-devel] Developer summit at Scipy?

2014-05-30 Thread Michael Droettboom
Hello all,

Sorry to be writing this at this late point, but I've been hoping I 
could find a way around it.  I won't be able to attend an extra day at 
either end of Scipy year, both due to personal commitments and new 
funding constraints at NASA.  I do plan to attend/host the matplotlib 
sprint again, however, which is not a bad opportunity to catch up on 
some of these issues.

So, an extra developer summit day is still possible if someone else is 
able to organize it -- I just, unfortunately, won't be able to attend.  
We can still use the matplotlib donated funds to cover the cost of the 
extra hotel night (assuming the numbers of people wanting to do that is 
not too large) and meeting space (if the cost is not too high, though 
maybe locals like Damon have a connection for free and/or cheap space).  
For reimbursement, I would need a receipt for that hotel night (ideally 
with that one night broken out individually), which will then be 
submitted to numfocus, who will reimburse you directly.

Sorry to be uncommunicative on this (and uncommunicative in general 
lately).  I hope something can still work out at this late date!

Mike

On 02/27/2014 11:28 AM, Michael Droettboom wrote:
> How many matplotlib developers are planning to attend SciPy this year?
>
> If we used some of our funds to support an extra hotel night, would any
> of you be interested in spending an extra day for a "matplotlib
> developer summit" to discuss matplotlib projects?  This would be in
> addition to the sprints, which I see probably being a larger group. Your
> response isn't a committment at this point, I'm just trying to gauge how
> much interest there might be.
>
> Mike
>


-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute

http://www.droettboom.com


--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Setting default labelpad

2014-05-30 Thread Peter St. John
Finally made this into a patch to allow the dynamic updating of the
axes.labelpad parameter.
Hope this is in the appropriate format!

Thanks,
-- Peter


On Mon, Oct 28, 2013 at 10:45 AM, Peter St. John 
wrote:

> Hi Matplotlib-users,
>
> I found it was useful to be able to change the default 'Axis.labelpad'
> parameter, since this value didn't scale when changing the default figure
> size (in my opinion its easier to prepare figures for publication assuming
> they'll need to fit in a 1-column figure). I don't consider myself
> experienced enough to attempt to contribute a patch, but nevertheless here
> is the hack I used in case anyone has a similar problem:
>
> axis.py, line 652:
> original: self.labelpad = 5
> changed : self.labelpad = rcParams['axes.labelpad']
>
> Then, in rcsetup.py, I added the line (at 578):
> 'axes.labelpad' :[5.0, validate_float],
>
> This lets you put
> axes.labelpad   : 3
> for instance, in your matplotlibrc to change the default label padding.
>
> Anyways, not sure if this is the right mailing list for this type of
> thing, but just thought I'd contribute it nevertheless.
>
> Best,
> -- Peter
>
From af5db935d3d5d00a4122bb329f4119ea07cc82ba Mon Sep 17 00:00:00 2001
From: "Peter St. John" 
Date: Fri, 30 May 2014 12:33:02 -0700
Subject: [PATCH] BF - added options for axes.labelpad in matplotlibrc

---
 lib/matplotlib/axis.py| 2 +-
 lib/matplotlib/rcsetup.py | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py
index 6d31f1b..b7c52a2 100644
--- a/lib/matplotlib/axis.py
+++ b/lib/matplotlib/axis.py
@@ -653,7 +653,7 @@ class Axis(artist.Artist):
 self._smart_bounds = False
 
 self.label = self._get_label()
-self.labelpad = 5
+self.labelpad = rcParams['axes.labelpad']
 self.offsetText = self._get_offset_text()
 self.majorTicks = []
 self.minorTicks = []
diff --git a/lib/matplotlib/rcsetup.py b/lib/matplotlib/rcsetup.py
index bb228d7..e0f9af5 100644
--- a/lib/matplotlib/rcsetup.py
+++ b/lib/matplotlib/rcsetup.py
@@ -585,6 +585,7 @@ defaultParams = {
 # axis locator
 'axes.labelsize':['medium', validate_fontsize],  # fontsize of the
  # x any y labels
+'axes.labelpad': [5.0, validate_float], # space between label and axis
 'axes.labelweight':  ['normal', six.text_type],  # fontsize of the x any y labels
 'axes.labelcolor':   ['k', validate_color],# color of axis label
 'axes.formatter.limits': [[-7, 7], validate_nseq_int(2)],
-- 
1.9.1

--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Setting default labelpad

2014-05-30 Thread Paul Hobson
Peter,

Can you submit this as a pull request on github?
http://matplotlib.org/devel/gitwash/git_development.html


On Fri, May 30, 2014 at 12:37 PM, Peter St. John 
wrote:

> Finally made this into a patch to allow the dynamic updating of the
> axes.labelpad parameter.
> Hope this is in the appropriate format!
>
> Thanks,
> -- Peter
>
>
> On Mon, Oct 28, 2013 at 10:45 AM, Peter St. John 
> wrote:
>
>> Hi Matplotlib-users,
>>
>> I found it was useful to be able to change the default 'Axis.labelpad'
>> parameter, since this value didn't scale when changing the default figure
>> size (in my opinion its easier to prepare figures for publication assuming
>> they'll need to fit in a 1-column figure). I don't consider myself
>> experienced enough to attempt to contribute a patch, but nevertheless here
>> is the hack I used in case anyone has a similar problem:
>>
>> axis.py, line 652:
>> original: self.labelpad = 5
>> changed : self.labelpad = rcParams['axes.labelpad']
>>
>> Then, in rcsetup.py, I added the line (at 578):
>> 'axes.labelpad' :[5.0, validate_float],
>>
>> This lets you put
>> axes.labelpad   : 3
>> for instance, in your matplotlibrc to change the default label padding.
>>
>> Anyways, not sure if this is the right mailing list for this type of
>> thing, but just thought I'd contribute it nevertheless.
>>
>> Best,
>> -- Peter
>>
>
>
>
> --
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Setting default labelpad

2014-05-30 Thread Peter St. John
Sure, here it is:

https://github.com/matplotlib/matplotlib/pull/3096


On Fri, May 30, 2014 at 4:21 PM, Paul Hobson  wrote:

> Peter,
>
> Can you submit this as a pull request on github?
> http://matplotlib.org/devel/gitwash/git_development.html
>
>
> On Fri, May 30, 2014 at 12:37 PM, Peter St. John 
> wrote:
>
>> Finally made this into a patch to allow the dynamic updating of the
>> axes.labelpad parameter.
>> Hope this is in the appropriate format!
>>
>> Thanks,
>> -- Peter
>>
>>
>> On Mon, Oct 28, 2013 at 10:45 AM, Peter St. John > > wrote:
>>
>>> Hi Matplotlib-users,
>>>
>>> I found it was useful to be able to change the default 'Axis.labelpad'
>>> parameter, since this value didn't scale when changing the default figure
>>> size (in my opinion its easier to prepare figures for publication assuming
>>> they'll need to fit in a 1-column figure). I don't consider myself
>>> experienced enough to attempt to contribute a patch, but nevertheless here
>>> is the hack I used in case anyone has a similar problem:
>>>
>>> axis.py, line 652:
>>> original: self.labelpad = 5
>>> changed : self.labelpad = rcParams['axes.labelpad']
>>>
>>> Then, in rcsetup.py, I added the line (at 578):
>>> 'axes.labelpad' :[5.0, validate_float],
>>>
>>> This lets you put
>>> axes.labelpad   : 3
>>> for instance, in your matplotlibrc to change the default label padding.
>>>
>>> Anyways, not sure if this is the right mailing list for this type of
>>> thing, but just thought I'd contribute it nevertheless.
>>>
>>> Best,
>>> -- Peter
>>>
>>
>>
>>
>> --
>> Time is money. Stop wasting it! Get your web API in 5 minutes.
>> www.restlet.com/download
>> http://p.sf.net/sfu/restlet
>> ___
>> Matplotlib-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>>
>
--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel