Re: [matplotlib-devel] Axes.scatter call fails since removal of PyCXX

2014-11-19 Thread Joel B. Mohler

On 11/18/2014 08:29 PM, Thomas Caswell wrote:

Is there an issue for this (and if not can you make one)?


This is https://github.com/matplotlib/matplotlib/pull/3811 which is 
fixed and merged.  Should it still be an issue?




On Mon, Nov 17, 2014, 09:56 Joel B. Mohler > wrote:


On Mon, Nov 17, 2014 at 09:36:50AM -0500, Joel B. Mohler wrote:
> I think I see a breakage of the scatter call that I think should
work and did
> work before
>

https://github.com/matplotlib/matplotlib/commit/be34210a8c09fcd639ece583eb5c0acb855222b6
>
> This is running on windows 7 (32 bit) with numpy 1.8 and current
master.

Ugh, I tried this same example on my ubuntu box and it works. I
update this
diagnosis to "scatter is broken on windows since removing PyCXX";
note that I
do not get a traceback with the code below if I replace "scatter"
with "plot".

Being that windows devs are scarce, I'll be digging into this more.  I
certainly welcome any clues as it seems very bizarre to me so far.

Joel

>
> The example is:
>
> ***
> import numpy
> from matplotlib.backends.backend_agg import FigureCanvasAgg as
FigureCanvas
> from matplotlib.figure import Figure
>
> POINTS = 500
>
> figure = Figure(figsize=(6, 6), dpi=72)
> ax = figure.add_subplot(1, 1, 1, projection=None)
> scat = ax.scatter(numpy.arange(POINTS),
numpy.sin(numpy.arange(POINTS)))
> ***
>
> I get on current master
>
> ***
> Traceback (most recent call last):
>   File "C:\work\mpl_scatter_example.py", line 9, in 
> scat = ax.scatter(numpy.arange(POINTS),
numpy.sin(numpy.arange(POINTS)))
>   File "C:\Python27\lib\site-packages\matplotlib\axes\_axes.py",
line 3690, in scatter
> self.add_collection(collection)
>   File "C:\Python27\lib\site-packages\matplotlib\axes\_base.py",
line 1459, in add_collection
> self.update_datalim(collection.get_datalim(self.transData))
>   File
"C:\Python27\lib\site-packages\matplotlib\collections.py", line
198, in get_datalim
> offsets, transOffset.frozen())
>   File "C:\Python27\lib\site-packages\matplotlib\path.py", line
977, in get_path_collection_extents
> master_transform, paths, transforms, offsets,offset_transform))
> ValueError: object too deep for desired array
> ***
>
> I did very little troubleshooting beyond confirming that this
works before the
> merge mentioned in the first paragraph.
>
> Joel


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and
Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration
& more
Get technology previously reserved for billion-dollar
corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net

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



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Axes.scatter call fails since removal of PyCXX

2014-11-19 Thread Thomas Caswell
Ah, never mind then, I just got out of sync.

On Wed, Nov 19, 2014, 04:04 Joel B. Mohler  wrote:

> On 11/18/2014 08:29 PM, Thomas Caswell wrote:
>
> Is there an issue for this (and if not can you make one)?
>
>
> This is https://github.com/matplotlib/matplotlib/pull/3811 which is fixed
> and merged.  Should it still be an issue?
>
>
>
> On Mon, Nov 17, 2014, 09:56 Joel B. Mohler  wrote:
>
>> On Mon, Nov 17, 2014 at 09:36:50AM -0500, Joel B. Mohler wrote:
>> > I think I see a breakage of the scatter call that I think should work
>> and did
>> > work before
>> >
>> https://github.com/matplotlib/matplotlib/commit/be34210a8c09fcd639ece583eb5c0acb855222b6
>> >
>> > This is running on windows 7 (32 bit) with numpy 1.8 and current master.
>>
>> Ugh, I tried this same example on my ubuntu box and it works.  I update
>> this
>> diagnosis to "scatter is broken on windows since removing PyCXX"; note
>> that I
>> do not get a traceback with the code below if I replace "scatter" with
>> "plot".
>>
>> Being that windows devs are scarce, I'll be digging into this more.  I
>> certainly welcome any clues as it seems very bizarre to me so far.
>>
>> Joel
>>
>> >
>> > The example is:
>> >
>> > ***
>> > import numpy
>> > from matplotlib.backends.backend_agg import FigureCanvasAgg as
>> FigureCanvas
>> > from matplotlib.figure import Figure
>> >
>> > POINTS = 500
>> >
>> > figure = Figure(figsize=(6, 6), dpi=72)
>> > ax = figure.add_subplot(1, 1, 1, projection=None)
>> > scat = ax.scatter(numpy.arange(POINTS), numpy.sin(numpy.arange(POINTS)))
>> > ***
>> >
>> > I get on current master
>> >
>> > ***
>> > Traceback (most recent call last):
>> >   File "C:\work\mpl_scatter_example.py", line 9, in 
>> > scat = ax.scatter(numpy.arange(POINTS),
>> numpy.sin(numpy.arange(POINTS)))
>> >   File "C:\Python27\lib\site-packages\matplotlib\axes\_axes.py", line
>> 3690, in scatter
>> > self.add_collection(collection)
>> >   File "C:\Python27\lib\site-packages\matplotlib\axes\_base.py", line
>> 1459, in add_collection
>> > self.update_datalim(collection.get_datalim(self.transData))
>> >   File "C:\Python27\lib\site-packages\matplotlib\collections.py", line
>> 198, in get_datalim
>> > offsets, transOffset.frozen())
>> >   File "C:\Python27\lib\site-packages\matplotlib\path.py", line 977, in
>> get_path_collection_extents
>> > master_transform, paths, transforms, offsets,offset_transform))
>> > ValueError: object too deep for desired array
>> > ***
>> >
>> > I did very little troubleshooting beyond confirming that this works
>> before the
>> > merge mentioned in the first paragraph.
>> >
>> > Joel
>>
>>
>> --
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>> ___
>> Matplotlib-devel mailing list
>> Matplotlib-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
>
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel