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
(11) |
2
(24) |
3
(24) |
4
(31) |
5
(30) |
6
(27) |
7
(25) |
8
(8) |
9
(2) |
10
(12) |
11
(16) |
12
(33) |
13
(18) |
14
(17) |
15
(3) |
16
(7) |
17
(8) |
18
(22) |
19
(20) |
20
(25) |
21
(10) |
22
(17) |
23
(18) |
24
(23) |
25
(15) |
26
(19) |
27
(6) |
28
(7) |
29
(6) |
30
(1) |
31
(12) |
|
|
|
|
|
I would like to make biplot for principal component analysis with data values scale on left and bottom and loadings values scale on right and top. If I try to do it like that: ax2 = ax1.twinx().twiny() I can plot data correctly (data on ax1 and loadings on ax2), but I have to turn y axis on ax2 off (ax2.yaxis.set_visible(False)) that I don't have double scale on the left and bottom scale is not the same as I set it with ax1.axis() anymore. Is there another way to do it? I would also like to change color of tick labels on upper and right scale (currently I can do it only with upper scale). Nejc
Andrew Kelly wrote: > I am currently using the annotate() method for my data points and I > was curious if there is a way to center a line of text relative to a > line of text below it. I am currently using two annotate() function > calls in a row (I need the text to be different colors) but I need the > first one to act as a title for the second (i.e. so I want it centered > relative to the one below.) I have tried to use the length of the > second bit of text to center but I just cannot seem to do it. The > code looks sort of like this: > > import matplotlib.pyplot as plt > ....... > annotateTitle='Title' > annotateText='Blah, Blah, Blah' > plt.annotate(annotateTitle, xy=(1,1), xytext=(20,50), xycoords='data', > textcoords='offset points') > plt.annotate(annotateText, xy=(1,1), xytext=(20,20), xycoords='data', > textcoords='offset points', size='small', color='black') > In the example at the bottom of http://matplotlib.sourceforge.net/users/annotations.html you see an example where the horizontalalignment is specified. Can you just do something like the following? plt.annotate(annotateTitle, xy=(1,1), xytext=(20,50), xycoords='data', textcoords='offset points', horizontalalignment='center') plt.annotate(annotateText, xy=(1,1), xytext=(20,20), xycoords='data', textcoords='offset points', size='small', color='black', horizontalalignment='center') You also see examples of the alignment parameters at http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html#pylab-examples-annotation-demo Thanks, Jason
Jeff, Ok, so this is what I was trying to achieve... c=['#6C9F7B','#783F68','#F4F4F2','#22F322','#F3F322','#0000F3'] mycm=mpl.colors.LinearSegmentedColormap.from_list('mycm',c) plt.imshow(rand(10,10),cmap=mycm,interpolation='nearest') colorbar() plt.show() That was the initial goal; being able to quickly create the cmap based on some basic colors. from there, I can optionally play with the mycm._segmentdata dictionary in order to fine-tune the color spread. ...the documentation on the 'LinearSegmentedColormap.from_list()' method is very brief, and there wasn't an example, so I didn't see it right away... Anyway, problem solved. Sorry for the confusion, & thanks again for the help P.Romero -----Original Message----- From: Jeff Whitaker [mailto:js...@fa...] Sent: 2009年08月14日 6:35 PM To: P.R. Subject: Re: [Matplotlib-users] colormap creation P.R. wrote: > Jeff, > Thanks for pointing me to that example. > I was basically manually performing the same operations as those listed in > the example. > however, like I said before, its been slow going, since I have to manually > edit the ranges & adjust 'linear spread' of each color. > It's a trial & error process... > > Im clear on how the rgb dictionary works; > I guess my problem/question was more on how to automate some of the work > involved in creating the rgb dictionary. > > Example: > Supposing that I have a rough idea of what color sequence I want, > let's say, > > black > blue > yellow > red > purple > > ... yet Im not sure about the exact values or 'tones' of these colors... > (this is an arbitrary example, let's assume that a similar cmap doesn't > already exist in mpl) > > - I'd like to have an automatic method to easily create a preliminary, > 'rough draft' rgb dictionary based on the rgb values for my basic colors... > this way, I can quickly create a 'prototype' dictionary that I can then > modify & adjust to suit my needs. > > so, a 'colormap generator' that takes a set of rgb values as input, and > create the value ranges within the rgb dictionary automatically... > > Any ideas? > Nope, sorry. -Jeff > Thanks, > P.Romero > > -----Original Message----- > From: Jeff Whitaker [mailto:js...@fa...] > Sent: 2009年08月14日 5:29 PM > To: P.R. > Cc: mat...@li... > Subject: Re: [Matplotlib-users] colormap creation > > P.R. wrote: > >> Can someone please recommend a (semi) automatic way to create the rgb >> dictionaries needed for colormap creation? >> Basically, I have a 'general' idea of how I want my colors ordered, but Im >> finding it difficult to create the smooth transitions by manually editing >> the rgb dictionary for my custom colormap...the trial & error process is >> tedious & not very accurate... >> >> How were the matplotlib colormaps created? >> Were they created manually or programmatically? >> Was it done using a random color selection? >> >> Please help, >> Thanks, >> P.Romero >> >> > > P.R.: If you haven't already, you should look at the custom_cmap.py > example. > > -Jeff > > -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg