Re: [matplotlib-devel] New plot type idea -- EventRaster

2013-01-14 Thread Todd
On Mon, Jan 14, 2013 at 1:28 AM, Todd  wrote:

> On Mon, Nov 12, 2012 at 6:35 PM, Damon McDougall <
> [email protected]> wrote:
>
>> On Mon, Nov 12, 2012 at 2:17 PM, Paul Ivanov 
>> wrote:
>> > On Mon, Nov 12, 2012 at 7:36 AM, Michael Droettboom 
>> wrote:
>> >> On 11/11/2012 11:51 PM, Todd wrote:
>> >>> Now that 1.2 is out, can we revisit this?  I would like to get it
>> >>> implemented for the next feature release.
>> >>>
>> >>
>> >> Absolutely.  I think the next step, once you have an implementation,
>> >> would be to submit a pull request and we can all help with a review.
>> >
>> > This hasn't been mentioned yet, but Todd will hopefully find our
>> > developer docs useful:
>> > http://matplotlib.org/devel/index.html
>> >
>> > In particular, there's a section on writing a new pyplot function:
>> >
>> http://matplotlib.org/devel/coding_guide.html#writing-a-new-pyplot-function
>>
>> Thanks for that, Paul.
>>
>> Todd, there's also a section on writing tests for matplotlib on the
>> page Paul pointed out. For a new feature there should be a couple of
>> tests to go with it to make sure everything passes sanity checks.
>>
>> Thanks for spending your time contributing!
>>
>>
>>
> I have completed the plot type, including unit tests and examples (I am
> not an artist so someone else can probably make the examples prettier).
> I've confirmed pep8 compliance and run the code through pyflakes and pylint
> in addition to the unit tests.
>
> It is divided into two parts: an EventCollection class, which is a
> subclass of LineCollection in collections.py, and an eventplot method in
> axes.py (and pyplot, through boilerplate.py) which returns a list of
> EventCollection objects.
>
> I am ready to submit a git pull request now.  However, it depends on
> another git pull request I submitted, titled "add get_segments method to
> collections.LineCollection".
> I can confirm the changes in this pull request work properly, I have been
> using the new method extensively in my new plot type.
>
> Would it be possible to get this accepted so I can submit the new plot
> type for review?  I am sure there will be lots of changes and cleanups that
> will be required before the new plots can be accepted, while the
> get_segments method is a relatively minor and non-intrusive change.
>
> If you wish to look at the code before the pull request it is in the
> toddrjen/matplotlib github fork, in the eventplot branch.  The main changes
> are to collections.py and axes.py.  The tests are in test_axes.py and a new
> test file test_collections.py. The examples are in eventcollection_demo.py
> and eventplot_demo.py
>
> Thanks a lot for your time.
>

Thanks for getting get_segments in so quickly.

The pull request has been submitted, see "Add EventCollection and
eventplot
"
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Requiring numpy requirement to 1.5 on master?

2013-01-14 Thread Damon McDougall
On Fri, Jan 11, 2013 at 12:33 PM, Eric Firing  wrote:
> On 2013/01/11 5:38 AM, Michael Droettboom wrote:
>> As pointed out in #1650, we have a bug on Python 3.x handling file-like
>> objects that are UNIX FILEs, but not actual filesystem files, such as
>> the sockets used for a urllib HTTP request.
>>
>> https://github.com/matplotlib/matplotlib/pull/1650
>>
>> As Christoph helpfully points out, Numpy has already solved this problem
>> (since 1.5.0), so it would be easiest to just use their solution.
>>
>> For 1.2.x, I think we shouldn't update the Numpy requirement (which is
>> currently 1.4) -- there, I'll have to port Numpy's compatibility
>> functions to our code base.  But for master, I'd rather just use Numpy's
>> stuff so all of the intricacies of this are handled in one place.
>>
>> (And as a detail, it isn't until Numpy 1.7 that a "CloseFile" function
>> is provided, so even on master, we're stuck copying some code over).
>>
>> Any objections?

Nope.

-- 
Damon McDougall
http://www.damon-is-a-geek.com
Institute for Computational Engineering Sciences
201 E. 24th St.
Stop C0200
The University of Texas at Austin
Austin, TX 78712-1229

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel