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
(7) |
2
(8) |
|
3
(3) |
4
(5) |
5
(2) |
6
(3) |
7
(4) |
8
(11) |
9
(4) |
|
10
|
11
(8) |
12
(10) |
13
(16) |
14
(14) |
15
(13) |
16
(1) |
|
17
|
18
(8) |
19
(6) |
20
(13) |
21
(15) |
22
(5) |
23
(13) |
|
24
(2) |
25
(4) |
26
(1) |
27
(4) |
28
(8) |
29
(11) |
30
(5) |
|
31
(3) |
|
|
|
|
|
|
|
From: Jeff W. <js...@fa...> - 2011-07-15 20:18:09
|
On 7/15/11 12:55 PM, Benjamin Root wrote: > On Fri, Jul 15, 2011 at 1:44 PM, Yoshi Rokuko <yo...@ro... > <mailto:yo...@ro...>> wrote: > > +--------------------------------------------- Jeff Whitaker > -----------+ > > On 7/14/11 2:25 PM, Yoshi Rokuko wrote: > > > hi, is it possible to restrict a contour plot to a > > > country? if i grid my data to projection coordinates > > > and then make a contour plot i can draw the country > > > borders on top, but since the data plotted outside > > > the country is a gridding artifact i would rather > > > not plot it. > > > > Yoshi: There is no mechanism for doing this. It is possible, > but you > > would need a way to create a mask for all the grid points > outside the > > country of interest, and then use this mask to create a masked > array to > > pass to contourf. > > > > -Jeff > > wouldn't it be possible to create such a mask using internals from > Basemap.drawcountries() somehow? > > best regards, yoshi > > > Jeff, I just had a thought.... > > Isn't the country borders drawn as Path or Polygon objects? I believe > there are some matplotlib internal functions that can be given a list > of points (such as those for a grid) and a path and it will return > which points are within the path and which are outside. One could use > that to make the mask. > > Might make for a nice feature for basemap in the upcoming v1.1.0 release. > > Ben Root > Ben/Yoshi: The countries are not polygons, they are line segments. Worse yet, they are all just lumped together with no metadata (no way to know which lines define the country you want). If you had a shapefile with just the country of interest in it, defined as a polygon, then it's doable You could take a look at the source code for the is_land method, which tests to see if a given x,y point is inside any of the continent polygons. Let us know if you have you have the country polygon, and then I can help you with the details. -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 |
|
From: Benjamin R. <ben...@ou...> - 2011-07-15 18:55:27
|
On Fri, Jul 15, 2011 at 1:44 PM, Yoshi Rokuko <yo...@ro...> wrote: > +--------------------------------------------- Jeff Whitaker -----------+ > > On 7/14/11 2:25 PM, Yoshi Rokuko wrote: > > > hi, is it possible to restrict a contour plot to a > > > country? if i grid my data to projection coordinates > > > and then make a contour plot i can draw the country > > > borders on top, but since the data plotted outside > > > the country is a gridding artifact i would rather > > > not plot it. > > > > Yoshi: There is no mechanism for doing this. It is possible, but you > > would need a way to create a mask for all the grid points outside the > > country of interest, and then use this mask to create a masked array to > > pass to contourf. > > > > -Jeff > > wouldn't it be possible to create such a mask using internals from > Basemap.drawcountries() somehow? > > best regards, yoshi > > Jeff, I just had a thought.... Isn't the country borders drawn as Path or Polygon objects? I believe there are some matplotlib internal functions that can be given a list of points (such as those for a grid) and a path and it will return which points are within the path and which are outside. One could use that to make the mask. Might make for a nice feature for basemap in the upcoming v1.1.0 release. Ben Root |
|
From: Yoshi R. <yo...@ro...> - 2011-07-15 18:45:59
|
+--------------------------------------------- Jeff Whitaker -----------+ > On 7/14/11 2:25 PM, Yoshi Rokuko wrote: > > hi, is it possible to restrict a contour plot to a > > country? if i grid my data to projection coordinates > > and then make a contour plot i can draw the country > > borders on top, but since the data plotted outside > > the country is a gridding artifact i would rather > > not plot it. > > Yoshi: There is no mechanism for doing this. It is possible, but you > would need a way to create a mask for all the grid points outside the > country of interest, and then use this mask to create a masked array to > pass to contourf. > > -Jeff wouldn't it be possible to create such a mask using internals from Basemap.drawcountries() somehow? best regards, yoshi |
|
From: Jeff W. <js...@fa...> - 2011-07-15 17:14:30
|
On 7/14/11 2:25 PM, Yoshi Rokuko wrote: > hi, is it possible to restrict a contour plot to a > country? if i grid my data to projection coordinates > and then make a contour plot i can draw the country > borders on top, but since the data plotted outside > the country is a gridding artifact i would rather > not plot it. Yoshi: There is no mechanism for doing this. It is possible, but you would need a way to create a mask for all the grid points outside the country of interest, and then use this mask to create a masked array to pass to contourf. -Jeff > > to make it more clear what i mean: > http://rokuko.net/basicmap.png > > any ideas? can one make a single country transparent? > > best regards, yoshi > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Benjamin R. <ben...@ou...> - 2011-07-15 16:53:32
|
On Fri, Jul 15, 2011 at 11:42 AM, robert rottermann <ro...@re...>wrote:
> **
> On 15.07.2011 17:56, Benjamin Root wrote:
>
>
>
> On Fri, Jul 15, 2011 at 10:49 AM, robert <ro...@re...> wrote:
>
>> Hi there,
>> I am all new to mathlib world..
>>
>> What I try to do is plotting some charts over an image.
>> I would be very grateful, if somebody could provide me with an example.
>> thanks
>> robert
>>
>>
> Welcome Robert,
>
> This is fairly straight-forward. If you have a image file, you can plot it
> like so:
>
> >>> import matplotlib.pyplot as plt
> >>> imData = plt.imread("foobar.png")
> >>> plt.imshow(imData)
>
> Now, the tricky issue is that the coordinate system for the plot may be a
> bit backwards than you might want for normal plotting. The (0, 0)
> coordinate will be in the upper-left instead of the lower-left. Plus, the
> axis limits will be in pixels. This may or may not be an issue depending on
> what you plan to plot on top of the image. And, of course, unless you are
> in interactive mode, you will need to do a "plt.show()" call when you are
> finished building the plot and want to display it to the screen.
>
> I hope this helps and let us know if you have any other questions!
> Ben Root
>
> thank a lot Ben,
> it feels really good when you get answers that fast ..
> one more question: can I as imData what dimensions it has?
>
> thanks
> robert
>
>
That is quite straight-forward:
>>> print imData.shape
matplotlib uses NumPy for its numerical data arrays. You might want to read
up on its documentation here:
http://docs.scipy.org/doc/numpy/user/
http://docs.scipy.org/doc/numpy/reference/
I hope this helps!
Ben Root
|
|
From: Eric F. <ef...@ha...> - 2011-07-15 16:49:12
|
On 07/14/2011 08:08 PM, ruggit wrote:
> Hi,
>
> How to set the ticks width through rc?
> Something like: rc('xtick.major', size=6), but for the width? I cannot
> find the proper key.
There isn't one, and probably should be. You might want to file an
issue on github.
As a workaround, if you are not using any other markers in the plot, you
can use the lines.markeredgewidth key; ticks are actually markers.
With mpl >= 1.0 you can also use the tick_params function or Axes method
once you have created your Axes instance, e.g.:
plot([1,2,3])
tick_params(width=2, length=4)
Eric
>
> Thanks.
> R.
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: robert r. <ro...@re...> - 2011-07-15 16:42:39
|
On 15.07.2011 17:56, Benjamin Root wrote:
>
>
> On Fri, Jul 15, 2011 at 10:49 AM, robert <ro...@re...
> <mailto:ro...@re...>> wrote:
>
> Hi there,
> I am all new to mathlib world..
>
> What I try to do is plotting some charts over an image.
> I would be very grateful, if somebody could provide me with an example.
> thanks
> robert
>
>
> Welcome Robert,
>
> This is fairly straight-forward. If you have a image file, you can plot it
> like so:
>
> >>> import matplotlib.pyplot as plt
> >>> imData = plt.imread("foobar.png")
> >>> plt.imshow(imData)
>
> Now, the tricky issue is that the coordinate system for the plot may be a bit
> backwards than you might want for normal plotting. The (0, 0) coordinate will
> be in the upper-left instead of the lower-left. Plus, the axis limits will be
> in pixels. This may or may not be an issue depending on what you plan to plot
> on top of the image. And, of course, unless you are in interactive mode, you
> will need to do a "plt.show()" call when you are finished building the plot
> and want to display it to the screen.
>
> I hope this helps and let us know if you have any other questions!
> Ben Root
>
thank a lot Ben,
it feels really good when you get answers that fast ..
one more question: can I as imData what dimensions it has?
thanks
robert
|
|
From: Benjamin R. <ben...@ou...> - 2011-07-15 15:57:19
|
On Fri, Jul 15, 2011 at 10:49 AM, robert <ro...@re...> wrote:
> Hi there,
> I am all new to mathlib world..
>
> What I try to do is plotting some charts over an image.
> I would be very grateful, if somebody could provide me with an example.
> thanks
> robert
>
>
Welcome Robert,
This is fairly straight-forward. If you have a image file, you can plot it
like so:
>>> import matplotlib.pyplot as plt
>>> imData = plt.imread("foobar.png")
>>> plt.imshow(imData)
Now, the tricky issue is that the coordinate system for the plot may be a
bit backwards than you might want for normal plotting. The (0, 0)
coordinate will be in the upper-left instead of the lower-left. Plus, the
axis limits will be in pixels. This may or may not be an issue depending on
what you plan to plot on top of the image. And, of course, unless you are
in interactive mode, you will need to do a "plt.show()" call when you are
finished building the plot and want to display it to the screen.
I hope this helps and let us know if you have any other questions!
Ben Root
|
|
From: robert <ro...@re...> - 2011-07-15 15:49:14
|
Hi there, I am all new to mathlib world.. What I try to do is plotting some charts over an image. I would be very grateful, if somebody could provide me with an example. thanks robert |
|
From: Armagan T. <ar...@ya...> - 2011-07-15 08:04:32
|
Gerald, Eric, the code was very useful and run without any problem. many thanks for your help. -- Armagan ---------------------------------------------------- Armagan Tarim http://yunus.hacettepe.edu.tr/~armo/ ---------------------------------------------------- ________________________________ From: Gerald Storer <gd...@mr...> To: mat...@li... Cc: ar...@ya... Sent: Fri, July 15, 2011 5:47:34 AM Subject: Re: [Matplotlib-users] matplotlib + pyside As Eric said Github master works with PySide. If you can't wait for a release and you don't want to run the Github version of MPL you can use the following code to render a plot inside a PySide app. Note that this will just show the plot image. You won't get the tool bar, status bar or any other GUI elements. Gerald. |
|
From: ruggit <ru...@gm...> - 2011-07-15 06:08:28
|
Hi,
How to set the ticks width through rc?
Something like: rc('xtick.major', size=6), but for the width? I cannot
find the proper key.
Thanks.
R.
|
|
From: Gerald S. <gd...@mr...> - 2011-07-15 02:47:51
|
As Eric said Github master works with PySide. If you can't wait for a release and you don't want to run the Github version of MPL you can use the following code to render a plot inside a PySide app. Note that this will just show the plot image. You won't get the tool bar, status bar or any other GUI elements. Gerald. On 14/07/2011 3:33 PM, Eric Firing wrote: > On 07/13/2011 09:18 PM, Armagan Tarim wrote: >> Hi All, >> I have tried the sample PySide code given at >> http://www.scipy.org/Cookbook/Matplotlib/PySide >> the below excerpt is from my "Python Shell" for this sample code, which >> gives this error, > Github master works with pyside. It is expected to emerge as a release > within a few weeks. > > Eric > >> "ImportError: Warning: formlayout requires PyQt4>v4.3" >> It seems that it is looking for PyQt; but the whole point of using >> PySide is to avoid using PyQt. >> Any help is appreciated. >> -- Armagan >> Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit >> (Intel)] on win32 >> Type "copyright", "credits" or "license()" for more information. >> >>> import sys >> >>> import matplotlib >> >>> matplotlib.use('Qt4Agg') >> >>> import pylab >> Traceback (most recent call last): >> File "<pyshell#3>", line 1, in<module> >> import pylab >> File "C:\Python27\lib\site-packages\pylab.py", line 1, in<module> >> from matplotlib.pylab import * >> File "C:\Python27\lib\site-packages\matplotlib\pylab.py", line 263, in >> <module> >> from matplotlib.pyplot import * >> File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 95, in >> <module> >> new_figure_manager, draw_if_interactive, show = pylab_setup() >> File "C:\Python27\lib\site-packages\matplotlib\backends\__init__.py", >> line 25, in pylab_setup >> globals(),locals(),[backend_name]) >> File >> "C:\Python27\lib\site-packages\matplotlib\backends\backend_qt4agg.py", >> line 12, in<module> >> from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\ >> File "C:\Python27\lib\site-packages\matplotlib\backends\backend_qt4.py", >> line 18, in<module> >> import matplotlib.backends.qt4_editor.figureoptions as figureoptions >> File >> "C:\Python27\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py", >> line 11, in<module> >> import matplotlib.backends.qt4_editor.formlayout as formlayout >> File >> "C:\Python27\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", >> line 51, in<module> >> raise ImportError, "Warning: formlayout requires PyQt4>v4.3" >> ImportError: Warning: formlayout requires PyQt4>v4.3 >> >> ------------------------------------------------- >> |
|
From: Christopher B. <c-...@as...> - 2011-07-15 00:20:40
|
The following helpers do the trick for me:
def set_foregroundcolor(ax, color):
'''For the specified axes, sets the color of the frame, major ticks,
tick labels, axis labels, title and legend
'''
for tl in ax.get_xticklines() + ax.get_yticklines():
tl.set_color(color)
for spine in ax.spines:
ax.spines[spine].set_edgecolor(color)
for tick in ax.xaxis.get_major_ticks():
tick.label1.set_color(color)
for tick in ax.yaxis.get_major_ticks():
tick.label1.set_color(color)
ax.axes.xaxis.label.set_color(color)
ax.axes.yaxis.label.set_color(color)
ax.axes.title.set_color(color)
lh = ax.get_legend()
if lh != None:
lh.get_title().set_color(color)
lh.legendPatch.set_edgecolor(color)
labels = lh.get_texts()
for lab in labels:
lab.set_color(color)
def set_backgroundcolor(ax, color):
'''Sets the background color of the current axes (and legend).
Use 'None' (with quotes) for transparent. To get transparent
background on saved figures, use:
pp.savefig("fig1.svg", transparent=True)
'''
ax.patch.set_facecolor(color)
lh = ax.get_legend()
if lh != None:
lh.legendPatch.set_facecolor(color)
--
Christopher Brown, Ph.D.
Associate Research Professor
Department of Speech and Hearing Science
Arizona State University
http://pal.asu.edu
|