SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(13)
2
(9)
3
(4)
4
5
(1)
6
(4)
7
(4)
8
9
(1)
10
(2)
11
(1)
12
(1)
13
(3)
14
(1)
15
(5)
16
(3)
17
(18)
18
(2)
19
20
(1)
21
(4)
22
(9)
23
(3)
24
(2)
25
26
27
28
29
(1)
30
(1)


Showing 13 results of 13

From: Andrew S. <str...@as...> - 2005年06月01日 22:49:25
John Hunter wrote:
>>>>>>"Nicholas" == Nicholas Young <su...@su...> writes:
> 
> 
> Nicholas> Now done in the attached patch, I also added support for
> Nicholas> MxNx3 images; as I suspected these are noticeably slower
> Nicholas> than MxNx4 images but I changed my mind and decided it
> Nicholas> was worth supporting them.
> 
> Great, I just committed this to CVS.
> 
> Andrew, if you get a minute to update from CVS, can you make sure that
> the PIL changes don't cause a problem for your PIL using mpl scripts?
I didn't have much of a check, but image_demo3.py still works.
This may be the apparently-longstanding imshow resizing bug (that I 
haven't followed), but this demo shows some storage behavior when 
resizing -- horizontal stretching of the window allows the aspect ratio 
of the image to change to horizontally stretched, but vertical 
stretching of the window appears to scale the image to maintain its 
original aspect ratio.
Cheers!
Andrew
From: John H. <jdh...@ac...> - 2005年06月01日 17:58:34
>>>>> "Keith" == Keith Goodman <kwg...@gm...> writes:
 Keith> Thought you might be interested in knowing that the Octave
 Keith> maintainers are looking into using matplotlib in Octave.
Hi Keith, 
I very recently exchanged emails with Tom Holroyd (CCd on this mail),
who was also interested in adding mpl plotting to octave. We thought
that embedding the python interpreter might be the path of least
resistance. It might be good for Tom to be in touch with the octave
people to avoid duplication of effort.
There are also some inconsistencies in the plotting functions between
mpl and matlab, in addition to the lack of 3D. For example, our plot
command does not currently support plot(x, Y) or plot(X,Y) where X and
Y are matrices, though it would be easy to add such functionality.
Also, the default behavior of imshow is pretty different (in
matplotlib imshow scales the image to fit the current axes box).
These differences will surely cause some minor headaches, but for the
most part the interfaces are compatible. A combination of
extending/patching matplotlib and doing some translation on the octave
side would probably work for most (2D) cases.
Thanks for the heads up,
JDH
From: Keith G. <kwg...@gm...> - 2005年06月01日 17:42:28
Thought you might be interested in knowing that the Octave maintainers
are looking into using matplotlib in Octave.
(Octave, by the way, is a free language for numerical computation that
is mostly compatible with Matlab.)
---------- Forwarded message ----------
From: John W. Eaton <jwe at bevo dot che dot wisc dot edu>
Date: Jun 1, 2005 9:54 AM
Subject: Re: Line thickness
To: Keith Goodman <kwgoodman at gmail dot com>
Cc: octave maintainers mailing list <maintainers at octave dot org>
[I'm moving this discussion to the maintainers list.]
On 1-Jun-2005, Keith Goodman wrote:
| Take a look at the beautiful screenshots (and the code used to
| generate the plots) at
| http://matplotlib.sourceforge.net/screenshots.html
OK, it seems like it would be useful to be able to use this directly
from Octave. What would be the best way to make that happen? Do we
need a general Octave <-> Python interface, or can we just build
bindings for matplotlib? How about a handle graphics compatible
interface for Octave that uses matplotlib? The one major difficulty
that I see is that matplotlib seems to only handle 2-d plotting.
jwe
From: Nicolas G. <nic...@ne...> - 2005年06月01日 16:57:47
On Wednesday 01 June 2005 18:50, Fernando Perez wrote:
>
> I wonder though: if we also get 'reversed' colormaps, is this going to
> be a cause for confusion with the 'reversed' colorbar keyword? It may
> not be a problem in the end, as long as the two different ideas are
> clearly explained, to prevent others falling into the same trap I did.
>
Please feel free to use any keyword you want, provided the feature is 
implemented ! English is not my native language, so I just came to "reverse" 
as the closest word to what I had in mind, but for sure there must be better 
alternatives (invert, mirror, whatever)
Nicolas
From: Fernando P. <Fer...@co...> - 2005年06月01日 16:50:27
John Hunter wrote:
>>>>>>"Fernando" == Fernando Perez <Fer...@co...> writes:
> 
> 
> Fernando> mmh, just yesterday I was talking to JDH about this: I
> Fernando> have the feeling that the right place to implement this
> Fernando> would be to provide colormaps (the beasts lurking
> Fernando> underneath colorbars) with an easy way to get reversed
> Fernando> versions. I don't think that a hack at the level of the
> Fernando> colorbar function is the right place, design wise, to do
> Fernando> this. But I could be wrong...
> 
> Unless I misunderstand, Nicolas and you want different things. You
> want a reversed color map (eg for the case of jet, red would map to
> small numbers and blue to large numbers). Nicolas wants a standard
> colormap but with the colorbar display inverted (red would still map
> to large numbers but for vertical colorbars would be on the bottom and
> for horizontal colorbars would be on the left -- the colorbar tick
> labels would change too).
Ah! Yes, sorry: I did misunderstand Nicolas, probably because I parsed 
his post through the lens of our discussion too quickly. Sorry for the 
noise...
I wonder though: if we also get 'reversed' colormaps, is this going to 
be a cause for confusion with the 'reversed' colorbar keyword? It may 
not be a problem in the end, as long as the two different ideas are 
clearly explained, to prevent others falling into the same trap I did.
f
From: Nicolas G. <nic...@ne...> - 2005年06月01日 16:46:06
On Wednesday 01 June 2005 18:38, John Hunter wrote:
> Unless I misunderstand, Nicolas and you want different things. You
> want a reversed color map (eg for the case of jet, red would map to
> small numbers and blue to large numbers). Nicolas wants a standard
> colormap but with the colorbar display inverted (red would still map
> to large numbers but for vertical colorbars would be on the bottom and
> for horizontal colorbars would be on the left -- the colorbar tick
> labels would change too).
>
> Or am I misunderstanding?
>
At least you understood correctly what I meant ;-)
From: John H. <jdh...@ac...> - 2005年06月01日 16:40:23
>>>>> "Fernando" == Fernando Perez <Fer...@co...> writes:
 Fernando> mmh, just yesterday I was talking to JDH about this: I
 Fernando> have the feeling that the right place to implement this
 Fernando> would be to provide colormaps (the beasts lurking
 Fernando> underneath colorbars) with an easy way to get reversed
 Fernando> versions. I don't think that a hack at the level of the
 Fernando> colorbar function is the right place, design wise, to do
 Fernando> this. But I could be wrong...
Unless I misunderstand, Nicolas and you want different things. You
want a reversed color map (eg for the case of jet, red would map to
small numbers and blue to large numbers). Nicolas wants a standard
colormap but with the colorbar display inverted (red would still map
to large numbers but for vertical colorbars would be on the bottom and
for horizontal colorbars would be on the left -- the colorbar tick
labels would change too).
Or am I misunderstanding?
JDH
From: Fernando P. <Fer...@co...> - 2005年06月01日 16:10:05
Nicolas Girard wrote:
> Hi all,
> 
> with most of my contours, upper values are on the left side and lower values 
> on the right side ; to the contrary the colorbar (created with 
> orientation='horizontal') displays colors ranging from the lowest to the 
> highest ; this leads to an unpleasant look. (No, I cannot reverse my whole 
> contours, their orientation is important ;-)
> 
> What I'd find useful is a "reverse" option that would make the colorbar 
> display colors ranging from the highest to the lowest ; and I've tried to 
> hack the figure.py file.
mmh, just yesterday I was talking to JDH about this: I have the feeling 
that the right place to implement this would be to provide colormaps 
(the beasts lurking underneath colorbars) with an easy way to get 
reversed versions. I don't think that a hack at the level of the 
colorbar function is the right place, design wise, to do this. But I 
could be wrong...
I've been meaning to make some changes to the colormaps code to fix this 
along with a number of other annoyances it has, but I haven't gotten 
around to it yet.
Best,
f
From: Nicolas G. <nic...@ne...> - 2005年06月01日 15:36:52
Hi all,
with most of my contours, upper values are on the left side and lower values 
on the right side ; to the contrary the colorbar (created with 
orientation='horizontal') displays colors ranging from the lowest to the 
highest ; this leads to an unpleasant look. (No, I cannot reverse my whole 
contours, their orientation is important ;-)
What I'd find useful is a "reverse" option that would make the colorbar 
display colors ranging from the highest to the lowest ; and I've tried to 
hack the figure.py file.
You'll find the attached patch as a result. apart from fixing a pair of typos 
in the docstring, it allows *colors* of the colorbars to be reversed, but not 
its ticks :-/ 
Then I'm afraid this patch is all but useful... but perhaps it helps getting 
the idea. I'd glad if this feature could be added to the colorbar...
Thanks for reading,
Cheers,
Nicolas
From: John H. <jdh...@ac...> - 2005年06月01日 15:04:33
>>>>> "Nicholas" == Nicholas Young <su...@su...> writes:
 Nicholas> Now done in the attached patch, I also added support for
 Nicholas> MxNx3 images; as I suspected these are noticeably slower
 Nicholas> than MxNx4 images but I changed my mind and decided it
 Nicholas> was worth supporting them.
Great, I just committed this to CVS.
Andrew, if you get a minute to update from CVS, can you make sure that
the PIL changes don't cause a problem for your PIL using mpl scripts?
Thanks!
JDH
From: Nicholas Y. <su...@su...> - 2005年06月01日 14:48:14
Attachments: patch
On Wed, 2005年06月01日 at 13:14 +0100, Nicholas Young wrote:
> On Wed, 2005年06月01日 at 12:39 +0100, Nicholas Young wrote:
> > On Tue, 2005年05月31日 at 10:28 -0500, John Hunter wrote:
> > > >>>>> "Nicholas" == Nicholas Young <su...@su...> writes:
> > > I have mixed feelings about making this a separate class / separate
> > > function. The current axes imshow / image.AxesImage is already
> > > overloaded (handling MxN, MxNx3, MxNx3, _image.Image and PIL images.
> > > What is the logic of making a special functions/classes case for MxNx4
> > > with directshow. On the one hand, I appreciate the desire to simplify
> > > the code by pulling it into separate classes and functions. On the
> > > other hand, I wonder if it will confuse users to have one separate
> > > function for UInt8 images and another for everything else. Another
> > > worry I have about the separate DirectImage class is that it copies
> > > much of the image resize functionality from AxesImage, including the
> > > broken handling of aspect='preserve'. This too argues for keeping as
> > > much functionality in AxesImage as possible, testing for A.typecode()
> > > where appropriate. What do you think?
> 
> Sorry to reply to my own message but I realised just after sending it
> that it didn't make any sense (as MxNx4 images aren't normalised
> anyway). I now realise that it makes sense to assume that an MxNx4
> UInt8 image will contain pixel data as John suggested and I'll rewrite
> my code to implement this.
> 
> It also occurred to me that it would make sense to change the PIL code
> to avoid the UInt8 -> Float -> UInt transition. I'll try implementing
> this after making the alterations John suggested.
Now done in the attached patch, I also added support for MxNx3 images;
as I suspected these are noticeably slower than MxNx4 images but I
changed my mind and decided it was worth supporting them.
I changed the PIL image output to output from PIL RGBX (alpha is 255) or
RGBA images only when converting to a string and then array. This will
use more memory but, as the conversion to RGBA is done no more than once
and by PIL code (which is probably optimised), should be the fastest
option. I changed the conversion code to always attempt to convert to
RGBA whenever an unsupported format is given and to raise an error on
catching a ValueError (rather than before trying the conversion); this
adds support for several image types. I'd also suggest changing the
error raised here to a ValueError rather than a SystemError (as the
error is due to an unsupported value) but haven't in case others are
catching the SystemError.
Additionally I changed the docstring for the imshow function to state
that floating point MxNx3 and MxNx4 arrays aren't normalised (this was
the original source of my earlier confusion).
Nick
From: Nicholas Y. <N.P...@wa...> - 2005年06月01日 12:15:25
On Wed, 2005年06月01日 at 12:39 +0100, Nicholas Young wrote:
> On Tue, 2005年05月31日 at 10:28 -0500, John Hunter wrote:
> > >>>>> "Nicholas" == Nicholas Young <su...@su...> writes:
> > I have mixed feelings about making this a separate class / separate
> > function. The current axes imshow / image.AxesImage is already
> > overloaded (handling MxN, MxNx3, MxNx3, _image.Image and PIL images.
> > What is the logic of making a special functions/classes case for MxNx4
> > with directshow. On the one hand, I appreciate the desire to simplify
> > the code by pulling it into separate classes and functions. On the
> > other hand, I wonder if it will confuse users to have one separate
> > function for UInt8 images and another for everything else. Another
> > worry I have about the separate DirectImage class is that it copies
> > much of the image resize functionality from AxesImage, including the
> > broken handling of aspect='preserve'. This too argues for keeping as
> > much functionality in AxesImage as possible, testing for A.typecode()
> > where appropriate. What do you think?
> 
> I'm happy for it be be called from imshow but I can't think of a syntax
> to do so which isn't going to be confusing. The existing variations to
> imshow are all based upon the type of the input image and this won't
> work here - the case of someone who wants to plot a MxNx4 UInt8 array
> and have the values it contains normalised being the problem. Another
> keyword parameter could be added which only takes effect in this case; I
> thought this likely to confuse but if you prefer it I'm happy.
Sorry to reply to my own message but I realised just after sending it
that it didn't make any sense (as MxNx4 images aren't normalised
anyway). I now realise that it makes sense to assume that an MxNx4
UInt8 image will contain pixel data as John suggested and I'll rewrite
my code to implement this.
It also occurred to me that it would make sense to change the PIL code
to avoid the UInt8 -> Float -> UInt transition. I'll try implementing
this after making the alterations John suggested.
Nick
From: Nicholas Y. <su...@su...> - 2005年06月01日 11:39:23
On Tue, 2005年05月31日 at 10:28 -0500, John Hunter wrote:
> >>>>> "Nicholas" == Nicholas Young <su...@su...> writes:
> I have mixed feelings about making this a separate class / separate
> function. The current axes imshow / image.AxesImage is already
> overloaded (handling MxN, MxNx3, MxNx3, _image.Image and PIL images.
> What is the logic of making a special functions/classes case for MxNx4
> with directshow. On the one hand, I appreciate the desire to simplify
> the code by pulling it into separate classes and functions. On the
> other hand, I wonder if it will confuse users to have one separate
> function for UInt8 images and another for everything else. Another
> worry I have about the separate DirectImage class is that it copies
> much of the image resize functionality from AxesImage, including the
> broken handling of aspect='preserve'. This too argues for keeping as
> much functionality in AxesImage as possible, testing for A.typecode()
> where appropriate. What do you think?
I'm happy for it be be called from imshow but I can't think of a syntax
to do so which isn't going to be confusing. The existing variations to
imshow are all based upon the type of the input image and this won't
work here - the case of someone who wants to plot a MxNx4 UInt8 array
and have the values it contains normalised being the problem. Another
keyword parameter could be added which only takes effect in this case; I
thought this likely to confuse but if you prefer it I'm happy.
Nick

Showing 13 results of 13

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /