In article <506092FE.3020905@...31...>,
Michael Droettboom <mdroe@...31...>
wrote:
For the compilation problem, I am no Objective-C expert, but in C, line
3557 should certainly read:
NSSize pxlSize = NSMakeSize(rep->pixelsWide, rep->pixelsHigh);
I wonder if that fixes it -- but that's a total stab in the dark. This
was a part of the code that was changed quite recently.
I opened issue #1304
<Issues · matplotlib/matplotlib · GitHub ;
but did not append your comment.
-- Russell
Fixed in Fix pointer syntax error by dmcdougall · Pull Request #1305 · matplotlib/matplotlib · GitHub .
···
On Mon, Sep 24, 2012 at 7:23 PM, Russell E. Owen <rowen@...748...> wrote:
In article <506092FE.3020905@...31...>,
Michael Droettboom <mdroe@...31...>
wrote:
For the compilation problem, I am no Objective-C expert, but in C, line
3557 should certainly read:
NSSize pxlSize = NSMakeSize(rep->pixelsWide, rep->pixelsHigh);
I wonder if that fixes it -- but that's a total stab in the dark. This
was a part of the code that was changed quite recently.
I opened issue #1304
<Issues · matplotlib/matplotlib · GitHub ;
but did not append your comment.
--
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom
Could you please change in the current branch in
axes.py, line 7585
(Axes.pcolorfast)
nr, nc = C.shape
to
nr, nc = C.shape[:2]
this way one can pass [nx,ny,3] or [nx,ny,4] arrays to the routine - for which the PcolorImage it calls is made (style == "pcolorimage")
-Alexander
I am not sure what I need to do to get any bug fixes included into mpl.
All previous attempts failed.
Is it a community effort?
I now attached a patch.
-Alexander
0001-BF-fix-pcolor-fast-to-allow-direct-color.patch (750 Bytes)
···
On 25/09/12 23:58, Alexander Heger wrote:
Could you please change in the current branch in
axes.py, line 7585
(Axes.pcolorfast)
nr, nc = C.shape
to
nr, nc = C.shape[:2]
this way one can pass [nx,ny,3] or [nx,ny,4] arrays to the routine - for
which the PcolorImage it calls is made (style == "pcolorimage")
-Alexander
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options
I am not sure what I need to do to get any bug fixes included into mpl.
The most efficient way is with a pull request. And perhaps a little patience combined with persistence.
All previous attempts failed.
Is it a community effort?
Yes, but that doesn't mean that every suggested change will be accepted, or even reviewed right away.
I now attached a patch.
Thank you.
I will comment on github.
opened 05:16AM - 28 Sep 12 UTC
closed 03:25AM - 23 May 19 UTC
New feature
Could you please change in the current branch in
axes.py, line 7582
(Axes.pcolo… rfast)
```
nr, nc = C.shape
```
to
nr, nc = C.shape[:2]
this way one can pass [nx,ny,3] or [nx,ny,4] arrays to the routine - for
which the PcolorImage it calls is made (style == "pcolorimage")
-Alexander
From e555f98ca915eb89c7df1cff21261efb506fc29a Mon Sep 17 00:00:00 2001
From: Alexander Heger matplotlib@2sn.net
Date: Fri, 28 Sep 2012 15:08:27 +1000
Subject: [PATCH] BF - fix pcolor fast to allow direct color
---
lib/matplotlib/axes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/matplotlib/axes.py b/lib/matplotlib/axes.py
index 56017a2..6a4a87d 100644
--- a/lib/matplotlib/axes.py
+++ b/lib/matplotlib/axes.py
@@ -7582,7 +7582,7 @@ class Axes(martist.Artist):
if norm is not None: assert(isinstance(norm, mcolors.Normalize))
```
C = args[-1]
```
- nr, nc = C.shape
- nr, nc = C.shape[:2]
if len(args) == 1:
style = "image"
x = [0, nc]
--
1.7.11.4
Eric
···
On 2012/09/27 7:13 PM, Alexander Heger wrote:
-Alexander
On 25/09/12 23:58, Alexander Heger wrote:
Could you please change in the current branch in
axes.py, line 7585
(Axes.pcolorfast)
nr, nc = C.shape
to
nr, nc = C.shape[:2]
this way one can pass [nx,ny,3] or [nx,ny,4] arrays to the routine - for
which the PcolorImage it calls is made (style == "pcolorimage")
-Alexander