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
(14) |
2
(6) |
3
(10) |
4
(3) |
5
(2) |
6
(3) |
7
(21) |
8
|
9
|
10
(4) |
11
(2) |
12
(8) |
13
(17) |
14
(9) |
15
(5) |
16
(3) |
17
|
18
(10) |
19
(11) |
20
(3) |
21
(11) |
22
(1) |
23
|
24
(2) |
25
|
26
(3) |
27
(6) |
28
|
29
|
30
|
|
|
|
|
|
|
From: Ken M. <ma...@gm...> - 2014-11-19 23:09:16
|
Hi Zhangtao, When I run that code I do not see the 2nd subplot. If I add "fig.canvas.draw()" to the bottom, it appears, but it is not the same width as the upper subplot. On Tue, Nov 18, 2014 at 10:15 AM, zhangtao <tao...@gm...> wrote: > from matplotlib.pylab import * > fig = plt.figure(1) > fig.clf() > data = np.random.random((3,3)) > xaxis = np.arange(0,3) > yaxis = np.arange(0,3) > ax1 = fig.add_subplot(211) > im = ax1.imshow(data, interpolation='none') > c = ax1.contour(xaxis, yaxis, data, colors='k') > #---------------- > # draw ax1 first, so you can get proper position of ax1 > fig.canvas.draw() > point_bl, point_tr = ax1.get_position().get_points() # ax1's bottom-left > and top-right > ax2 = fig.add_subplot(212) > space = 0.45 # space between ax2's bottom left and ax1's bottom left in > percentage > ax2.set_position([point_bl[0], point_bl[1]-space, > point_tr[0] - point_bl[0], point_tr[1] - point_bl[1]]) > plt.show() > > > You can adjust that variable "space" as you need. > > If someone has some more easy ways to do this, please let me know. > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/aligning-plot-width-with-imshow-contour-width-tp44408p44409.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: jorma <al...@jo...> - 2014-11-19 19:50:02
|
Thanks Ben! That helped. I ended up using this method instead… map.arcgisimage(service='ESRI_Imagery_World_2D', xpixels = 1500, verbose= True) Works great! - Jorma -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Create-image-with-higher-resolution-basemap-tp44428p44442.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Benjamin R. <ben...@ou...> - 2014-11-19 18:04:16
|
What you are seeing is the fact that the adjacent cells share the same coordinates, so neighboring cells overlap by one pixel. This is only visible when alpha != 1. This is a tricky issue to solve, but I could have sworn we made some progress on that front by setting "snap" to False somewhere. There have been past discussions about it, for sure... Ben Root On Wed, Nov 19, 2014 at 12:57 PM, Loïc Estève <loi...@in...> wrote: > Thanks for the suggestions, I have tried the easiest one for now, namely > pcolormesh, see attached plot. The alpha colormap look great but I can't > seem to figure out how to prevent the edges of the cells from being > visible. I tried using edgecolors='none' to no avail. I guess > retrospectively that is similar to the lines we see in the colormap on the > right. > > The snippet I am using: > > import numpy as np > > import matplotlib.pyplot as plt > from matplotlib.colors import LinearSegmentedColormap > > import matplotlib > > matplotlib.rcParams['figure.facecolor'] = 'white' > > cm_dict = {'red': ((0.0, 1.0, 1.0), > (1.0, 1.0, 1.0)), > 'green': ((0.0, 0.0, 0.0), > (1.0, 0.0, 0.0)), > 'blue': ((0.0, 0.0, 0.0), > (1.0, 0.0, 0.0)), > 'alpha': ((0.0, 0.0, 0.0), > (1.0, 1.0, 1.0)) > } > > my_cm = LinearSegmentedColormap('my_cm', cm_dict) > > vals = np.tile(np.linspace(-1, 1, 30), (20, 1)) > > fig = plt.figure() > ax = plt.pcolormesh(vals, cmap=my_cm) > plt.colorbar() > plt.show() > > Cheers, > Loïc > |
From: Loïc E. <loi...@in...> - 2014-11-19 17:57:33
|
Thanks for the suggestions, I have tried the easiest one for now, namely pcolormesh, see attached plot. The alpha colormap look great but I can't seem to figure out how to prevent the edges of the cells from being visible. I tried using edgecolors='none' to no avail. I guess retrospectively that is similar to the lines we see in the colormap on the right. The snippet I am using: import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap import matplotlib matplotlib.rcParams['figure.facecolor'] = 'white' cm_dict = {'red': ((0.0, 1.0, 1.0), (1.0, 1.0, 1.0)), 'green': ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0)), 'blue': ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0)), 'alpha': ((0.0, 0.0, 0.0), (1.0, 1.0, 1.0)) } my_cm = LinearSegmentedColormap('my_cm', cm_dict) vals = np.tile(np.linspace(-1, 1, 30), (20, 1)) fig = plt.figure() ax = plt.pcolormesh(vals, cmap=my_cm) plt.colorbar() plt.show() Cheers, Loïc |
From: Benjamin R. <ben...@ou...> - 2014-11-19 15:28:33
|
The underlying mechanism is a pcolormesh(). The key thing to remember when going back and forth between imshow and pcolors is that coordinates for imshow refer to the center of the pixel, while coordinates for pcolors refer to the corners, IIRC (I might have that backwards). Cheers! Ben Root On Wed, Nov 19, 2014 at 10:23 AM, Gael Varoquaux < gae...@no...> wrote: > On Wed, Nov 19, 2014 at 10:20:23AM -0500, Benjamin Root wrote: > > Notice that the colormap looks fine for the colorbar because it > > isn't using imshow() under the hood. > > As a short-term workaround (I work with Loic, and I it would help me a > lot if his problem was solved with a hack), can we leverage the mechanism > used to plot the colorbar ourselves? > > That doesn't preclude fixing the problem in master, of course. > > Cheers, > > Gaël > |
From: Jody K. <jk...@uv...> - 2014-11-19 15:28:01
|
Did you try pcolormesh? Cheers, Jody > On Nov 19, 2014, at 7:23 AM, Gael Varoquaux <gae...@no...> wrote: > > On Wed, Nov 19, 2014 at 10:20:23AM -0500, Benjamin Root wrote: >> Notice that the colormap looks fine for the colorbar because it >> isn't using imshow() under the hood. > > As a short-term workaround (I work with Loic, and I it would help me a > lot if his problem was solved with a hack), can we leverage the mechanism > used to plot the colorbar ourselves? > > That doesn't preclude fixing the problem in master, of course. > > Cheers, > > Gaël > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Gael V. <gae...@no...> - 2014-11-19 15:24:06
|
On Wed, Nov 19, 2014 at 10:20:23AM -0500, Benjamin Root wrote: > Notice that the colormap looks fine for the colorbar because it > isn't using imshow() under the hood. As a short-term workaround (I work with Loic, and I it would help me a lot if his problem was solved with a hack), can we leverage the mechanism used to plot the colorbar ourselves? That doesn't preclude fixing the problem in master, of course. Cheers, Gaël |
From: Benjamin R. <ben...@ou...> - 2014-11-19 15:20:50
|
Confirmed. I am going to wager that this might be related to some of the work that is being done right now in master to improve alpha handling, particularly with images. Notice that the colormap looks fine for the colorbar because it isn't using imshow() under the hood. First, if you could try using the development version of matplotlib, we have updated the AGG codebase. Maybe that might make an improvement off the bat. If not, you can follow this PR that is a work in progress that might be relevant: https://github.com/matplotlib/matplotlib/pull/3783 I hope this helps! Ben Root On Wed, Nov 19, 2014 at 9:46 AM, Loic Esteve <loi...@in...> wrote: > Dear all, > > I am trying to create a colormap with a single color (red in the example > below) where the alpha varies from 0 to 1. It does look like I am getting > some grayish color near the low alpha values (around alpha = 0.2). Is that > expected somehow? > > The plot I get is here: > > https://cloud.githubusercontent.com/assets/1680079/5084457/7d2d3790-6f06-11e4-9021-5b9e77e6a9c4.png > > I am using matplotlib 1.4.2. > > Here is a snippet which reproduces the issue. > > import numpy as np > > import matplotlib.pyplot as plt > from matplotlib.colors import LinearSegmentedColormap > > import matplotlib > > matplotlib.rcParams['figure.facecolor'] = 'white' > > cm_dict = {'red': ((0.0, 1.0, 1.0), > (1.0, 1.0, 1.0)), > 'green': ((0.0, 0.0, 0.0), > (1.0, 0.0, 0.0)), > 'blue': ((0.0, 0.0, 0.0), > (1.0, 0.0, 0.0)), > 'alpha': ((0.0, 0.0, 0.0), > (1.0, 1.0, 1.0)) > } > > my_cm = LinearSegmentedColormap('my_cm', cm_dict) > > vals = np.tile(np.linspace(-1, 1, 30), (20, 1)) > > fig = plt.figure() > ax = plt.imshow(vals, cmap=my_cm) > plt.colorbar() > plt.show() > > Cheers, > Loïc > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Loic E. <loi...@in...> - 2014-11-19 14:47:04
|
Dear all, I am trying to create a colormap with a single color (red in the example below) where the alpha varies from 0 to 1. It does look like I am getting some grayish color near the low alpha values (around alpha = 0.2). Is that expected somehow? The plot I get is here: https://cloud.githubusercontent.com/assets/1680079/5084457/7d2d3790-6f06-11e4-9021-5b9e77e6a9c4.png I am using matplotlib 1.4.2. Here is a snippet which reproduces the issue. import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap import matplotlib matplotlib.rcParams['figure.facecolor'] = 'white' cm_dict = {'red': ((0.0, 1.0, 1.0), (1.0, 1.0, 1.0)), 'green': ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0)), 'blue': ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0)), 'alpha': ((0.0, 0.0, 0.0), (1.0, 1.0, 1.0)) } my_cm = LinearSegmentedColormap('my_cm', cm_dict) vals = np.tile(np.linspace(-1, 1, 30), (20, 1)) fig = plt.figure() ax = plt.imshow(vals, cmap=my_cm) plt.colorbar() plt.show() Cheers, Loïc |
From: Benjamin R. <ben...@ou...> - 2014-11-19 02:15:53
|
That function is merely using the (relatively) lower res image that comes packaged with basemap, and comes with features to help downsample it if needed. I think you can get higher res images using the wmsimage() method. I hope that points you to the right direction! Cheers! Ben Root On Tue, Nov 18, 2014 at 9:09 PM, jorma <al...@jo...> wrote: > Hi Folks - > > i have a simply Python script below that shows a low res basemap of Maui > using the Blue Marble imagery. Can anyone provide info on how to create a > high res map? Thanks! > > - Jorma > > > from mpl_toolkits.basemap import Basemap > import matplotlib.pyplot as plt > import numpy as np > > map = Basemap(projection='merc', lat_0 = 21, lon_0 = -156, > resolution = 'f', area_thresh = 0.1, > llcrnrlon=-156.753926, llcrnrlat=20.537775, > urcrnrlon=-155.958679, urcrnrlat=21.058561) > > map.bluemarble() > map.drawcoastlines() > map.drawcountries() > map.drawmapboundary() > > lon = -156.325691 > lat = 20.922652 > x,y = map(lon, lat) > map.plot(x, y, 'bo', markersize=14) > > plt.show() > > > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/Create-image-with-higher-resolution-basemap-tp44428.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: jorma <al...@jo...> - 2014-11-19 02:09:31
|
Hi Folks - i have a simply Python script below that shows a low res basemap of Maui using the Blue Marble imagery. Can anyone provide info on how to create a high res map? Thanks! - Jorma from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np map = Basemap(projection='merc', lat_0 = 21, lon_0 = -156, resolution = 'f', area_thresh = 0.1, llcrnrlon=-156.753926, llcrnrlat=20.537775, urcrnrlon=-155.958679, urcrnrlat=21.058561) map.bluemarble() map.drawcoastlines() map.drawcountries() map.drawmapboundary() lon = -156.325691 lat = 20.922652 x,y = map(lon, lat) map.plot(x, y, 'bo', markersize=14) plt.show() -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Create-image-with-higher-resolution-basemap-tp44428.html Sent from the matplotlib - users mailing list archive at Nabble.com. |