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
(9) |
2
(1) |
3
(4) |
4
(4) |
|
5
(9) |
6
(5) |
7
(12) |
8
(5) |
9
(27) |
10
(10) |
11
(4) |
|
12
|
13
(6) |
14
(12) |
15
(16) |
16
(13) |
17
(9) |
18
(1) |
|
19
(2) |
20
(4) |
21
(9) |
22
(5) |
23
(2) |
24
(6) |
25
|
|
26
(1) |
27
(9) |
28
(7) |
29
(2) |
30
(9) |
|
|
|
From: Bruce F. <br...@cl...> - 2011-06-06 23:19:08
|
Does anyone have an example of nested grids.
I need to (for instance), plot a global grid in filled contours, then plot
another, higher resolution grid over the US.
The global grid could work something like this, but I'm not sure where to
start with the 2nd (nested) grid to go atop.
fig=plt.figure()
m = Basemap(resolution='c',projection='cyl',llcrnrlon=lon1,llcrnrlat=lat1,\
urcrnrlon=lon2,urcrnrlat=lat2)
# make a filled contour plot.
x, y = m(lons, lats)
CS = m.contour(x,y,hgt,15,linewidths=0.5,colors='k')
CS = m.contourf(x,y,hgt,15,cmap=plt.cm.jet)
m.drawcoastlines()
m.drawmapboundary()
m.fillcontinents()
# draw parallels and meridians.
parallels = np.arange(-90,90,10)
#m.drawparallels(parallels,labels=[1,0,0,1])
m.drawparallels(parallels,labels=[1,0,0,1])
meridians = np.arange(-180.,180.,10.)
m.drawmeridians(meridians,labels=[1,0,0,1])
plt.title('Plotted Grid')
plt.show()
Thanks!
Bruce
---------------------------------------
Bruce W. Ford
Clear Science, Inc.
br...@cl...
|
|
From: Eric F. <ef...@ha...> - 2011-06-06 21:48:37
|
On 06/06/2011 11:33 AM, Daniel Mader wrote: > Hi all, > > I'd like to compare two sets of data by using subplots and imshow(). I > have two issues with this: > > 1) how can I have a colorbar in each subplot? > 2) how can I adjust the range limits for a colorbar, so that the > comparison possible? > > Below is code which could serve as a starting point, I hope it helps > to make my problem clearer... It's not quite clear to me yet, but I assume you want to use a call to imshow with a different data set in the second subplot, but have the color scale and colorbar be identical to those in the first subplot. Is that correct? If so, all you need to do is use the same norm for both calls to imshow--that is, define a norm, set the limits you want on it, and supply it as a kwarg. Also, for this sort of comparison, sometimes it is more efficient to use a single colorbar for multiple panels, as in this example: http://matplotlib.sourceforge.net/examples/pylab_examples/multi_image.html Eric > > Thanks and best regards, > Daniel > > import pylab > #import matplotlib as mpl > import matplotlib.cm as cm # colormaps > #import matplotlib.colors as col # colormaps > > pylab.close('all') > > dat = pylab.array([[1,2,3,4],[5,6,7,8]]) > datT = dat/2 > > fig = pylab.figure() > > ax1 = fig.add_subplot(211) > ax1.set_title('raw data') > im = ax.imshow(dat, interpolation='nearest', cmap=cm.get_cmap('rainbow', 20)) > fig.colorbar(im) > > ax2 = fig.add_subplot(212) > ax2.set_title('transformed') > ''' here is missing: > a 2nd colorbar with the same limit than in the first subfig, i.e. 1..8 > ''' > > pylab.show() > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Daniel M. <dan...@go...> - 2011-06-06 21:34:14
|
Hi all,
I'd like to compare two sets of data by using subplots and imshow(). I
have two issues with this:
1) how can I have a colorbar in each subplot?
2) how can I adjust the range limits for a colorbar, so that the
comparison possible?
Below is code which could serve as a starting point, I hope it helps
to make my problem clearer...
Thanks and best regards,
Daniel
import pylab
#import matplotlib as mpl
import matplotlib.cm as cm # colormaps
#import matplotlib.colors as col # colormaps
pylab.close('all')
dat = pylab.array([[1,2,3,4],[5,6,7,8]])
datT = dat/2
fig = pylab.figure()
ax1 = fig.add_subplot(211)
ax1.set_title('raw data')
im = ax.imshow(dat, interpolation='nearest', cmap=cm.get_cmap('rainbow', 20))
fig.colorbar(im)
ax2 = fig.add_subplot(212)
ax2.set_title('transformed')
''' here is missing:
a 2nd colorbar with the same limit than in the first subfig, i.e. 1..8
'''
pylab.show()
|
|
From: thecommexokid <the...@gm...> - 2011-06-06 18:09:35
|
I found a solution after all, from http://old.nabble.com/_backend_gdk-not-found-td26514059.html#a26514059 the thread I mentioned in the original post, which turned out not to be as cryptic as I had thought. Just as the answerer there suggested, I had PyGTK but matplotlib wasn't recognizing it during build; when I tried building from source instead of using macports this was made clear in the build output. As he said, I searched my computer to find a file called pygtk-2.0.pc, and added the directory it was in to the system variable PKG_CONFIG_PATH. After I did that, the build was successful and I had no further problems! Thanks to everyone who may have read my post, but I would up figuring this one out on my own. thecommexokid wrote: > > Hi all, > > I am new to the forum and to all things PyGTK and matplotlib, so go easy on me, please. > > A colleague created a Python program that uses matplotlib and GTK. I wanted to be able run her program on my MacBook (OS X 10.6.7). I used macports to update/obtain Python 2.7, matplotlib 1.0.1, and PyGTK 2.22.0. (I also obtained ipython, if anyone cares.) > > After all of this, my colleague's program hits a snag when I try to run it; here is the traceback: > > Traceback (most recent call last): > File "main.py", line 5, in > from interface import Interface, Display, Controls > File "/Users/thecommexokid/Documents/CurrentProjects/Honors/DoubleSlit/interface.py", line 5, in <module> > from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py", line 10, in <module> > from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\ > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_gtk.py", line 28, in <module> > from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_gdk.py", line 29, in <module> > from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array > ImportError: No module named _backend_gdk > > I believe I may be having the same problem as the user in http://old.nabble.com/_backend_gdk-not-found-td26514059.html#a26514059 this post , but I am enough of a novice that the solution that was suggested there just sounds like gobbletygook to me. If anybody wants to elaborate on that so I can try it out, please do. > > Anyhow, any advice anyone has on how to overcome this problem and get her program running on my machine would be greatly appreciated. As I said, I am new to these things, and I don't really understand the interplay between Python, PyGTK, and matplotlib, so if there's crucial information I haven't provided, or if this isn't the best forum in which to be asking this question, let me know. > > Thanks in advance for the help. > > *** > > PS: I originally posted this question at the GTK+ Forums ( http://www.gtkforums.com/viewtopic.php?f=3&p=69969#p69969 thread ), but it seemed as though this might be the more appropriate forum. I'll be sure to keep both threads updated with any developments. > -- View this message in context: http://old.nabble.com/ImportError-when-I-import-FigureCanvasGTKAgg%E2%80%94seeking-advice%21-tp31779648p31785774.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Mannucci, A. J (335G) <ant...@jp...> - 2011-06-06 15:52:17
|
Benjamin, Thanks. I will point out that the contourf in Basemap behaves differently than that contourf in pylab. That is, in pylab, for contour(X,Y,Z) X,Y can be 1D whereas Z must be 2D. However, it appears that for contourf in Basemap: from mpl_toolkits.basemap import Basemap m=Basemap() g=m.contourf(X,Y,Z) X,Y and Z must all be 2D. -Tony -- Tony Mannucci Supervisor, Ionospheric and Atmospheric Remote Sensing Group Mail-Stop 138-308, Tel > (818) 354-1699 Jet Propulsion Laboratory, Fax > (818) 393-5115 California Institute of Technology, Email > Ton...@jp...<mailto:Ton...@jp...> 4800 Oak Grove Drive, http://genesis.jpl.nasa.gov Pasadena, CA 91109 From: Benjamin Root <ben...@ou...<mailto:ben...@ou...>> Date: Tue, 31 May 2011 08:50:22 -0700 To: Tony Mannucci <Ant...@jp...<mailto:Ant...@jp...>> Cc: "mat...@li...<mailto:mat...@li...>" <mat...@li...<mailto:mat...@li...>> Subject: Re: [Matplotlib-users] Input array dimensions for contour or contourf On Tue, May 31, 2011 at 10:34 AM, Mannucci, Anthony J (335G) <ant...@jp...<mailto:ant...@jp...>> wrote: The following program seems to work with contour/contourf. However the documentation for the contourf function states contour(X,Y,Z) "X, Y, and Z must be arrays with the same dimensions." I am finding that contour works if the dimension of X and Y are 1, but Z must be two-dimensional. The following program seems to bear this out. Are the arrays x and y below two-dimensional, or is the documentation misleading? Thanks for your help. import numpy as N import pylab as PLT lons = N.linspace(-5.,5.,5) # Is this a one or two dimensional array? lats = N.linspace(-3.,3.,4) z = N.zeros((len(lats), len(lons))) for i in range(len(lons)): for j in range(len(lats)): z[j,i]=i+j PLT.clf() PLT.contourf(lons,lats,z) PLT.colorbar() PLT.show() -Tony Tony, contour and contourf seems to take advantage of numpy's broadcasting feature, so it is probably more correct to say that X and Y must be at least broadcastable to the shape of Z. I think there are a number of functions where this may or may not be true, and at some point we (the developers) should agree on basic input array handling and make it consistent across all plotting functions. So, technically speaking, the docs are "right", but should be clearer in this case. I will add it to my doc-fixing commit that I will do today. Ben Root |