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
(10) |
2
(6) |
3
(13) |
4
(3) |
5
(10) |
6
(4) |
|
7
(2) |
8
(15) |
9
(10) |
10
(44) |
11
(17) |
12
(9) |
13
(2) |
|
14
(2) |
15
(4) |
16
(8) |
17
(13) |
18
(11) |
19
(12) |
20
|
|
21
|
22
(10) |
23
(10) |
24
(11) |
25
(11) |
26
(9) |
27
(1) |
|
28
|
29
(15) |
30
(14) |
31
(7) |
|
|
|
|
From: Perry G. <pe...@st...> - 2005-08-02 22:02:12
|
On Aug 2, 2005, at 5:30 PM, Danny Shevitz wrote: > But... your last idea is superb. Why not a different way of doing it? > How about instead of a lookup table, I just > write a colormap that has three user defined functions. Then I could > do the thresholding exactly. It seems like > it would be pretty easy to do. I had originally thought colormaps were > needed because graphics drivers had finite resolutions > so you couldn't put up too many colors. So, if I were to create a > "functionColormap" instead of a "linearSegmentedColormap" > with millions of points in the image is there a danger I would run out > of colors or is there some internal rounding or truncation > to prevent this? If there is no problem, then a new colormap subclass > is definately the way to go. I assume it would be slower, but > I'm not sure it matters. > > D > Yes, I'm thinking some sort of functional, rather than table lookup, version would be useful. The table lookup is fast, but has its limitations for this kind of problem. I'll think a bit about it too. This kind of request comes up regularly (in one form or another) that it deserves some sort of solution. Perry |
|
From: Danny S. <sh...@la...> - 2005-08-02 21:33:46
|
>You are right. The problem is that a lookup table is quantized, and the >thresholds/intensities are floats. >In my particular case, what I'm looking at is an image representing >arrival times. The problem is that >the rounded down quantization gives me a peek into the future, which I >don't want. The way I am suggesting >with the ceiling suffers from exactly the same problem, as you mention. If >you were looking at lower thresholds >instead of upper thresholds then the ceiling would fail. That is why I was >suggesting a switch for both behaviors. >Since this is so obscure hardly anyone would use it or even need to know >about it. > >But... your last idea is superb. Why not a different way of doing it? How >about instead of a lookup table, I just >write a colormap that has three user defined functions. Then I could do >the thresholding exactly. It seems like >it would be pretty easy to do. I had originally thought colormaps were >needed because graphics drivers had finite resolutions >so you couldn't put up too many colors. So, if I were to create a >"functionColormap" instead of a "linearSegmentedColormap" >with millions of points in the image is there a danger I would run out of >colors or is there some internal rounding or truncation >to prevent this? If there is no problem, then a new colormap subclass is >definately the way to go. I assume it would be slower, but >I'm not sure it matters. > >D >>>Danny >>Isn't the essence of the problem the fact that the thresholds are >>specified as floats and the lookup table is quantized by its nature? (And >>that the current design allows for arbitrary N.) Whatever value you >>specify for a threshold (unless it it 0 or 1) won't necessarily >>correspond to a clean boundary between the quantized values (however you >>choose to define the boundary: floor, midpoint, or ceiling). Isn't it >>possible that your ceiling version has the same problem the other way >>(some values that are actually less now show up above the threshold)? >> >>I'm wondering if some other approach isn't needed. But before going into >>more thought about that I'd like to clarify your usage. >> >>Perry Greenfield |
|
From: Perry G. <pe...@st...> - 2005-08-02 20:31:46
|
On Aug 1, 2005, at 1:07 PM, Danny Shevitz wrote: > Howdy all, > > I have a very obscure (and minor) colormapping issue which I would > like to discuss. I am writing a workaround and the question is whether > or not this is worth changing the base matplotlib distribution. The > issue applies to any code that uses colormapping such as matshow or > imshow. I am going to write the change and it is up to the user > community whether anyone else in the world cares about this. > > In color.py::LinearSegmentedColormap.__call__ > The code that determines the colormap value in the look up table is > > xa = (xa *(self.N-1)).astype(Int) > rgba = zeros(xa.shape+(4,), Float) > rgba[...,0] = take(self._red_lut, xa) > rgba[...,1] = take(self._green_lut, xa) > rgba[...,2] = take(self._blue_lut, xa) > > I am using colormaps for thresholding data. If the normalized image > value is less than some threshold I plot one color, if it is above > that threshold, I plot a second color. All images produced this way > are two colors. This is just what I do, but the issue is always there > for thresholding. > > Here's the issue. The code line xa = (xa *(self.N-1)).astype(Int) > simply truncates the data, in essence taking the floor of xa, the > reason why this matters is that value always get rounded down, so > intensities above the threshold all get mapped to the threshold value. > The error is small and dependent only on the quantization of the > colormap, normally N=256. Nonetheless, there are times, like when the > threshold is 0 that the rounded down values are visible and should not > be. > > The best way to make thresholds get rid of this problem is to use the > ceiling function. So the code would read > xa = ceil(xa *(self.N-1)).astype(Int) > > Then intensities are rounded up, which is safe for thresholding. Note > that the original code is not wrong. There are circumstance when it > does the correct thing, even with thresholding. The new line also > takes (not much) longer because of the ceil function. > > There is a fudge involving only user code, which would be to negate > the image data and reverse the colormap, but that is not particularly > pretty. > > My personal suggestion is to include a flag in the declaration of the > colormap: > > def __init__(self, name, segmentdata, N=256, ceiling=False): > self.ceiling = ceiling > > then in the __call__ routine: > > if self.ceiling: > xa = ceil(xa *(self.N-1)).astype(Int) > else: > xa = (xa *(self.N-1)).astype(Int) > > Let me know what you think. > > Danny > Isn't the essence of the problem the fact that the thresholds are specified as floats and the lookup table is quantized by its nature? (And that the current design allows for arbitrary N.) Whatever value you specify for a threshold (unless it it 0 or 1) won't necessarily correspond to a clean boundary between the quantized values (however you choose to define the boundary: floor, midpoint, or ceiling). Isn't it possible that your ceiling version has the same problem the other way (some values that are actually less now show up above the threshold)? I'm wondering if some other approach isn't needed. But before going into more thought about that I'd like to clarify your usage. Perry Greenfield |
|
From: John H. <jdh...@ac...> - 2005-08-02 16:41:26
|
>>>>> "John" == John Mariska <ma...@nr...> writes:
Hi John, I'm CC-ing this response to the matplotlib users list
John> Dear John, I'm a long-time IDL user who is growing
John> increasingly attached to matplotlib. One thing is quite a
On the subject of IDL, if you haven't seen it already, you may be
interested in the IDL cheatsheet for ipython/numerix/matplotlib users
in the appendix of this tutorial
http://www.scipy.org/wikis/topical_software/Tutorial
John> bother, however, when it comes to preparing publication
John> quality plots. When the font size is increased to the size
John> needed for the shrinkage that a publication quality plot
John> typically undergoes, the bottom y-axis tick numbering often
John> either hits or is too close to the first x-axis tick label.
John> IDL takes care of this by having the bottom y-axis tick
John> label baseline aligned to the bottom of the plot box, and
John> the top y-axis tick label aligned so that the top of the
John> numbers barely rise above the top of the plot box. The
John> remaining tick labels are aligned on the tick location. Is
John> something like this possible in matplotlib?
This FAQ has some relevant info:
http://matplotlib.sourceforge.net/faq.html#TEXTOVERLAP, which I'll
supplement here.
You can manually set the vertical position of the xicklabels and the
horizontal position of the yticklabels with relative ease. These
positions are in "axes coordinates" where 0,0 is the bottom left of
the Axes rectangle and 1,1 is the top right. So you need negative
numbers to position the xticklabels below the axes and yticklabels to
the left. In pylab, you can set the text properties of the
xticklabels by passing keyword arguments to the "xticks" function
xticks(fontsize=20, y=-0.05)
Ditto for the yticks
yticks(fontsize=20, x=-0.05)
If you are using the matplotlib API, you can first get a list of the
tick labels and then apply setp to them
from matplotlib.artist import setp
setp( ax.get_xticklabels(), fontsize=20, y=-0.05)
JDH
|
|
From: Darren D. <dd...@co...> - 2005-08-02 12:48:49
|
On Tuesday 02 August 2005 04:44 am, Alex Rada wrote:
> Hi,
>
> I'm trying to use tex characters on axes label. In particular I want to
> use $\widetilde{xxx}$ command, but I obtain the following error:
>
> matplotlib.pyparsing.ParseException: Found unexpected token, "{" (at
> char 10), (line:1, col:11)
>
> What can I do to avoid this error?
You are using the mathtext module, not TeX, which has partial support for TeX
characters. See http://matplotlib.sourceforge.net/matplotlib.mathtext.html
for details.
If you have LaTeX installed, you can set text.usetex = True in your rc
settings and then LaTeX will be used instead of the mathtext module. See
http://www.scipy.org/wikis/topical_software/UsingTex for details.
Unfortunately, there are problems on the windows platform that need to be
worked out.
--
Darren
|
|
From: Alex R. <ale...@ya...> - 2005-08-02 08:44:57
|
Hi,
I'm trying to use tex characters on axes label. In particular I want to
use $\widetilde{xxx}$ command, but I obtain the following error:
matplotlib.pyparsing.ParseException: Found unexpected token, "{" (at
char 10), (line:1, col:11)
What can I do to avoid this error?
Thanks,
Alex.
|