You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(12) |
2
(13) |
3
(14) |
4
(9) |
|
5
(9) |
6
(22) |
7
(17) |
8
(16) |
9
(19) |
10
(17) |
11
(6) |
|
12
|
13
(20) |
14
(21) |
15
(20) |
16
(10) |
17
(14) |
18
(3) |
|
19
(3) |
20
(12) |
21
(22) |
22
(26) |
23
(31) |
24
(26) |
25
(9) |
|
26
(4) |
27
(33) |
28
(15) |
29
(37) |
30
(26) |
|
|
|
From: Eric F. <ef...@ha...> - 2009-04-05 23:19:39
|
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. Thank you. Eric |
|
From: Gregor T. <gre...@gm...> - 2009-04-05 20:56:14
|
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 and the > same maximum value. However for my particular camera and software this > would be wrong, as the CCD has a fixed 12-bit dynamic range and the > lower png bit depths are only used to save file space. Hence at the > moment I have set my software to scale to (2^16 - 1) for 8 < n < 16, > but it follows the png spec for n < 8, so there are two contradictory > behaviours and I am unsure which is the best approach. Personally I > would prefer matplotlib to return raw integer values, not floats > scaled between 0 and 1 and then I can apply the scaling myself, but I > am aware that this is not particularly user friendly for anyone else. > imshow() seems to handle integer values fine and correctly scales for > display, provided that no alpha channel is present. In the past I worked on a similar problem, saving and loading images from a 14bit monochrome CCD camera to a PNG file. The PNG specification gives precise recommondations how to handle such a case: for saving an n-bit image which is not directly supported by the PNG specs the image needs to be scaled up to one of the supported bit depths, i.e. 1,2,4,8 or 16. The original bit depth should be stored in the sBIT chunk to recover the original data. Explicitely, a 12 bit image needs to be scaled by a factor (2^16 - 1)/(2^12-1). The approach I have chosen is: I have png_save_image(filename, img, significant_bits) that behaves as specified in the specs, i.e., 14bit images are scaled up to 16bit. For loading an image I use img, metadata = png_load_image(filename) that returns the downscaled image as an integer array and a dict containing some metadata (which includes the original bit depth). I also noticed that neither pnglib, PIL nor matlab perform this downscaling. With this approach the loaded image data is identical to the original raw image. For further processing I typically normalize the image to the range 0 to 1.0, using the bit depth information. A float array is sufficiently precise, also for 16bit images. For your enhancements to imread, introducing a new keyword 'normalized' would allow to switch between both these possibilies.As I understand I have essentially chosen the same approach like you, at least for bitdepths > 8. I didn't get the point what is different for bitdepth s<=8. Another remark to your first posting: I didn't experience a problem with PIL to load 16bit PNG grayscale images. I also noticed you used C++ constructs in your code. I think this is not recommended. Gregor |
|
From: Sandro T. <mo...@de...> - 2009-04-05 20:21:46
|
On Sat, Apr 4, 2009 at 06:37, C M <cmp...@gm...> 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 to display it in a
> more common way, such as "11:00 pm", or better,
> "11 pm, 3/15"?
something like:
# init figures
fig = figure()
ax = fig.add_subplot(111)
# plot the lines
ax.plot_date(...)
# x data (dates) formatter
ax.xaxis.set_major_formatter( DateFormatter('PUT YOUR FORMAT HERE') )
Cheers,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
|
|
From: Tobias W. <tw...@do...> - 2009-04-05 12:46:16
|
> 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 and > explanation. > > -Andrew Hi Andrew and Eric, Thanks for the responses. I was unaware of the png test suite. I have attached a new diff that passes this test correctly. It originally failed because I was not handling greyscale images with an alpha channel, but it also brought to light several other issues with my code that I have fixed. I have changed the structure of the code significantly - the if/else struct has gone and a single loop returns the different image matrices. Although this is more concise, it no longer informs the user if it hits an unsupported image type. Unfortunately I do not have a small test image available, all of ours are a minimum of 512x620. However the pngsuite page, http://libpng.org/pub/png/pngsuite.html, does have a set of suitable images labelled cs*n*.png. 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 and the same maximum value. However for my particular camera and software this would be wrong, as the CCD has a fixed 12-bit dynamic range and the lower png bit depths are only used to save file space. Hence at the moment I have set my software to scale to (2^16 - 1) for 8 < n < 16, but it follows the png spec for n < 8, so there are two contradictory behaviours and I am unsure which is the best approach. Personally I would prefer matplotlib to return raw integer values, not floats scaled between 0 and 1 and then I can apply the scaling myself, but I am aware that this is not particularly user friendly for anyone else. imshow() seems to handle integer values fine and correctly scales for display, provided that no alpha channel is present. Should I post another message to the developer list about this to see what people think? I'd very much like to discuss this with someone who has a lot more experience of pngs than me. Thanks, Tobias |
|
From: Christopher B. <Chr...@no...> - 2009-04-05 04:09:47
|
Careful, "reply" doesn't send your note to the list. I just looked on the MPl download page in source forge. It looks like there are binary eggs there for Windows. You should be able to install those in your virtualenv and have it all just work. Just make sure you use the right copy of easy_install -Chris R. Haynie wrote: > Christopher Barker wrote: >> R. Haynie wrote: >> >>> I am using VirtualEnv to have multiple virtual environments that have >>> their own site-packages folder. So each environment is its own sandbox. >>> >> another reason why core python really needs to have an "official" >> versioning system - either something like virtualenv, or (my >> preference), package versioning built in. >> >> Anyway, in the mean time, two ideas to try: >> >> 1) "easxy_install matplotlib" run with the easy_install in your virtual >> env -- hopefully, it will install a binary Windows egg -- does one exist? >> >> > Tried this towards the end of 2008 a few times, did not fair well at all > in Windows. > >> 2) try manually moving the matplotlib package from the system >> site-packages to your virtualenv. >> >> Ok, this is what I tried today: >> > Uninstalled any python package I had installed with a windows installer, > uninstalled all of python, and cleared the cache folder, deleted > python25 folder. > Installed python 2.5 with windows installer. > Took note of what was in site-packages. > Ran NumPy windows installer, and moved all new files and folders out of > Site-Packages. Moved them to a folder I named c:\site-packages_NumPy. > Did the same for MatPlotLib windows installer. Moved them to a folder I > named c:\site-packages_MatPlotLib. > Got real anal here and uninstalled numpy and matplotlib using the > windows uninstallers. Then uninstalled Python and cleared the cache > folder and deleted python25. > > Now this is where I thought I could go and make some nice virtual > environments and have some safe sandboxes. But of course not. > Installed python, easy_install, virtualenv, pywin32. > Created new virtual environment and activated it. Copied the files from > the numpy and matplotlib site-packages folders into the new virtual > environment site-packages folder. > Tryed a simple plot, and got an error that pylab module did not exist. > So, I figured that the windows installers did more than met the eye. > They probably install some DLLs etc. > I then installed numpy and matplotlib using the windows installers. > Tried my plot test from within the virtual environment and it worked. > > I created a new virtual environment, installed nothing, tried the plot > test from within that environment and the test worked. It should not > have worked. > > Looks like I can only have 1 numpy and 1 matplotlib on a windows box at > a time, virtual environments or not. > > >> Let us know how it works out... >> >> > I sure hope someone reads this and finds something glaringly wrong with > my process. > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
|
From: Eric F. <ef...@ha...> - 2009-04-05 02:25:55
|
Thomas Robitaille wrote: > Hi, > > I've found that the match_original=True option in PatchCollection > causes matplotlib to crash. I have submitted two bug reports: > > https://sourceforge.net/tracker/?func=detail&aid=2732455&group_id=80706&atid=560720 > https://sourceforge.net/tracker/?func=detail&aid=2723527&group_id=80706&atid=560720 Both are now fixed in the 0.98.5 maintenance branch and in the trunk. Eric |
|
From: Eric F. <ef...@ha...> - 2009-04-05 01:45:58
|
Thomas Robitaille wrote: > Hi, > > I've found that the match_original=True option in PatchCollection > causes matplotlib to crash. I have submitted two bug reports: > > https://sourceforge.net/tracker/?func=detail&aid=2732455&group_id=80706&atid=560720 > https://sourceforge.net/tracker/?func=detail&aid=2723527&group_id=80706&atid=560720 > > I was wondering whether these are problems that other people have > encountered too? (description in the bug reports) Maybe not, but they are certainly bugs. I have fixed the first and am looking at the new one, so I hope both will be resolved shortly. Eric > > Thanks, > > Thomas > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Eric F. <ef...@ha...> - 2009-04-05 01:08:19
|
Cohen-Tanugi Johann wrote: > indeed, I obviously just got entangled in my own debugging. I do manage > to get it to do what I want now. > > sorry for the fuss, > Johann No problem at all. I'm glad things are working for you. Eric |
|
From: Cohen-Tanugi J. <co...@lp...> - 2009-04-05 00:19:11
|
indeed, I obviously just got entangled in my own debugging. I do manage to get it to do what I want now. sorry for the fuss, Johann Eric Firing wrote: > Cohen-Tanugi Johann wrote: >> ok, maybe it is in scale.py :) >> And what I see there confirms my initial fears : the log scale >> transform applies a log to the argument, which is incorrect for an >> error..... So first of all, another transform needs to be created so >> that erry is transformed into erry/y/log(base) where base was 10 in >> my example. > > Johann, > > I don't understand your objection here. It seems to me that an > errorbar should always be in the same units, and on the same scale, > as the point to which it applies. Therefore when switching from > linear to log scales, one simply plots the same data and error ranges > on a log scale instead of a linear scale. This is what mpl does. If > what you want is for the error to be proportional to the value of the > point, then you need to specify the error bounds so that they have > that property. For estimation of a power spectrum, for example, this > is often the case; the error bars are some fraction (depending on the > equivalent number of degrees of freedom) of the spectral level at each > frequency, so on a log plot they will have equal length. It is not > the job of the errorbar function to figure that out, however. > > If I am misunderstanding, then please provide a very simple concrete > example that will make your point clear. > >> >> past midnight here.... I will see tomorrow if I find time to try out >> a patch (not the easiest entry point for starting developer's >> activities in MPL I am afraid....) > > I have just committed a change (trunk r7023) that allows non-positive > numbers to be clipped to a small positive value. To illustrate its > use with an errorbar, I added the example provided by Matthias to > examples/pylab_examples/log_demo.py, as a 4th subplot. > > Eric >> >> Johann |