Re: [Matplotlib-users] imread() and PNGs

2009-04-05 Thread Andrew Straw
Tobias Wood wrote: >> Tobias, >> >> I would like to apply your patch, but the test in >> examples/tests/pngsuite fails. If you can submit a new patch where this >> test passes, and, even better, if a small example 12-bit PNG of yours is >> added to the test, I will apply it. >> >> Apart from that,

Re: [Matplotlib-users] imread() and PNGs

2009-04-05 Thread Eric Firing
Gregor Thalhammer wrote: > Tobias Wood > [...] [...] > I also noticed you used C++ constructs in your code. I think this is not > recommended. Gregor, Would you elaborate, please, to satisfy my curiosity? The original file is C++, so use of C++ constructs in the patch would seem natural. Than

Re: [Matplotlib-users] imread() and PNGs

2009-04-05 Thread Gregor Thalhammer
Tobias Wood [...] > These have thrown up an interesting issue - to what maximum value > should n-bit images be scaled when n is between 8 and 16? The png spec > and test images suggest it should be (2^n - 1). This means that higher > bit depths give higher precision over the same intensity range

Re: [Matplotlib-users] change hour format in date plotting

2009-04-05 Thread Sandro Tosi
On Sat, Apr 4, 2009 at 06:37, C M wrote: > I am pretty happy with the default for how dates ticks > are updated with zooming the plot with the navigation > toolbar...until it gets down to the level of hours. > > Hours are by default displayed in a format like: > "23:00:00 UTC".  How can I get it t

Re: [Matplotlib-users] imread() and PNGs

2009-04-05 Thread Tobias Wood
Tobias, I would like to apply your patch, but the test in examples/tests/pngsuite fails. If you can submit a new patch where this test passes, and, even better, if a small example 12-bit PNG of yours is added to the test, I will apply it. Apart from that, I would echo Eric's thanks for the patch