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
(10) |
3
(8) |
4
(6) |
5
(10) |
6
(1) |
7
(3) |
8
|
9
(5) |
10
(4) |
11
(9) |
12
(6) |
13
(12) |
14
(3) |
15
(2) |
16
(13) |
17
(7) |
18
(14) |
19
(7) |
20
(3) |
21
(1) |
22
|
23
(8) |
24
(6) |
25
(3) |
26
(5) |
27
(10) |
28
(5) |
29
(1) |
30
(7) |
|
|
|
|
|
From: Eric F. <ef...@ha...> - 2012-04-09 19:31:25
|
On 04/09/2012 08:17 AM, Mathew Topper wrote: > Hi Eric, thanks for the tip about the legend. > > Regarding the data, assuming i am using pcolor, am I right in thinking > that using Boundarynorm would be the best way to control the colors for > each code? Mat, I think BoundaryNorm is overkill and/or awkward for your case. It sounds like you don't have ordinary values, but rather a set of labels that happen to be integers. I would use a ListedColormap and then use sequential integers as the C values to index directly into the colormap: C = np.array([[0,1,2],[2,0,1]]) import matplotlib.colors as mcolors cmap = mcolors.ListedColormap(['r', 'g', 'lightgray']) pcolor(C, cmap=cmap, norm=mcolors.NoNorm()) Of course you would need to map your sequence of numbers (-8888, 0, ...) to a sequence of integers starting at zero. The key point is that the NoNorm() instance leaves your original C values alone, and since they are integers, they are then used directly as indices. You could also make your own mcolors.Normalize subclass which would process your labels and return either a float in the 0-1 range, or an integer for direct indexing. When you need only a very few colors, the ListedColormap with direct indexing is nice because it allows you to specify those colors using any valid color specification method. Eric > > Thanks > > Mat > > On 04/09/2012 06:26 PM, Eric Firing wrote: >> On 04/09/2012 02:22 AM, Mathew Topper wrote: >>> Dear matplotlib-users, >>> >>> I have a spatial data set that has coded values for each cell, which are >>> limited to just a few numbers, ie -8888, 0, 100, and 9999. I would like >>> to display this data with a plot similar to pcolor, but I don't want a >>> colorbar, I want a legend showing the colors for each code and an >>> explanation for what each code represents. I would like to be able to >>> choose a subset of the codes as well, for example just plotting the 0 >>> and 100 codes and ignoring the -8888 and 9999 codes. >>> >>> I have seen a few similar attempts that used BoundaryNorm, but I don't >>> want to show a range of values I just want to set colors for a few >>> explicit values. Those examples also had a colorbar and, as I said, I >>> would prefer a legend. >>> >>> Can anyone offer any tips? >> For the plot itself you can use pcolor if your data are on a >> quadrilateral grid, or a PathCollection or PolyCollection otherwise. >> For the legend, you can use proxy artists: >> >> http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist >> >> Eric >> >>> Thanks >>> >>> Mat >>> >> >> ------------------------------------------------------------------------------ >> For Developers, A Lot Can Happen In A Second. >> Boundary is the first to Know...and Tell You. >> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! >> http://p.sf.net/sfu/Boundary-d2dvs2 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > -- > Dr. Mathew Topper > Institute for Energy Systems > School of Engineering > The University of Edinburgh > Faraday Building > The King’s Buildings > Edinburgh EH9 3JL > Tel: +44 (0)131 650 5570 > School fax: +44 (0)131 650 6554 > mat...@ed... <mailto:mat...@ed...> > http://www.see.ed.ac.uk <http://www.see.ed.ac.uk/> > > > > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Mathew T. <mat...@ed...> - 2012-04-09 18:17:29
|
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. |
From: Eric F. <ef...@ha...> - 2012-04-09 17:27:08
|
On 04/09/2012 02:22 AM, Mathew Topper wrote: > Dear matplotlib-users, > > I have a spatial data set that has coded values for each cell, which are > limited to just a few numbers, ie -8888, 0, 100, and 9999. I would like > to display this data with a plot similar to pcolor, but I don't want a > colorbar, I want a legend showing the colors for each code and an > explanation for what each code represents. I would like to be able to > choose a subset of the codes as well, for example just plotting the 0 > and 100 codes and ignoring the -8888 and 9999 codes. > > I have seen a few similar attempts that used BoundaryNorm, but I don't > want to show a range of values I just want to set colors for a few > explicit values. Those examples also had a colorbar and, as I said, I > would prefer a legend. > > Can anyone offer any tips? For the plot itself you can use pcolor if your data are on a quadrilateral grid, or a PathCollection or PolyCollection otherwise. For the legend, you can use proxy artists: http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist Eric > > Thanks > > Mat > |
From: Jouni K. S. <jk...@ik...> - 2012-04-09 12:38:43
|
Benjamin Root <ben...@ou...> writes: >> sanders <sa...@kn...> writes: >> >> > If keywords fill=False and log=True, >> > >> > then after saving, the png looks fine but the histogram in the pdf is >> > mixed up. >> >> Confirmed, thanks for the report. I filed this at >> https://github.com/matplotlib/matplotlib/issues/804 > > I ran into something like this with filled plots originally saved as eps > files and then converted into a pdf. Didn't need log=True, though. I think that's likely a different issue. The eps output machinery in matplotlib is somewhat complicated, which it likely has to be to function well with various eps-handling software, and incorporate LaTeX-rendered equations. With all the various steps (including distilling through an external program) it's difficult to debug what goes wrong. In the original problem, it seems that the path-cropping functionality used in logarithmic plots is outputting paths that work in Agg but not in pdf or svg. It basically rewrites moveto X0,Y0 (outside plottable area) lineto X1,Y0 (outside plottable area) lineto X1,Y1 (inside) lineto X0,Y1 (inside) closepath into moveto X0,Y0' (Y0' is Y0 rewritten to be close to the area) moveto X1,Y0' lineto X1,Y1 lineto X0,Y1 closepath and the closepath operation apparently goes to the first moveto in Agg, but to the latest moveto in pdf and svg. I have a suggested fix for this at https://github.com/matplotlib/matplotlib/pull/817 -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Mathew T. <mat...@ed...> - 2012-04-09 12:22:36
|
Dear matplotlib-users, I have a spatial data set that has coded values for each cell, which are limited to just a few numbers, ie -8888, 0, 100, and 9999. I would like to display this data with a plot similar to pcolor, but I don't want a colorbar, I want a legend showing the colors for each code and an explanation for what each code represents. I would like to be able to choose a subset of the codes as well, for example just plotting the 0 and 100 codes and ignoring the -8888 and 9999 codes. I have seen a few similar attempts that used BoundaryNorm, but I don't want to show a range of values I just want to set colors for a few explicit values. Those examples also had a colorbar and, as I said, I would prefer a legend. Can anyone offer any tips? Thanks Mat -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. |