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
(12) |
2
(13) |
3
(4) |
4
(34) |
5
(14) |
6
(23) |
7
(26) |
8
(12) |
9
(7) |
10
(7) |
11
(9) |
12
(12) |
13
(20) |
14
(14) |
15
(13) |
16
(5) |
17
(4) |
18
(22) |
19
(29) |
20
(13) |
21
(9) |
22
(22) |
23
(3) |
24
(3) |
25
(29) |
26
(9) |
27
(10) |
28
(16) |
29
(16) |
30
(16) |
31
(9) |
|
|
|
|
|
|
Suppose I have two functions returning axes: def f1(): f = plt.figure() ax = f.add_axes(111) ax.plot(....) ax.lengend(....) return ax def f2(): similar to f1 now I have a figure main_fig = plt.fig() I want to merge axes from f1 and f2 in a unique axes (withou splitting the figure). For example if f1 produces a line and f2 produces another line I want to see two lines in the same plot at the end.
On 10/20/2010 11:41 PM, Alexander Dietz wrote: > Hi, > > I am generating a scatter plot with a colorbar, and want to pass on the > colorbar to some function to do something with it, like > > plt.scatter(px, py, c=pz, ...) > cb = plt.colorbar() > foo(cb) > > > My question: How can I extract the range of the colorbar from the cb > object? The colorbar extends from min(pz) to max(pz), but can I access > these values from the cb object alone, without the need to pass pz to > foo as well? cb.norm.vmin cb.norm.vmax Or you can get the same thing from the collection returned by scatter: col = scatter(...) col.norm.vmin col.norm.vmax The colorbar uses the norm and colormap from the current image (or more generally, the color-mappable object), which in this case is the collection generated by scatter(). Eric > > > Thanks > Alex > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps& games for the Nokia N8 for consumers in U.S. and Canada > 10ドル million total in prizes - 4ドルM cash, 500 devices, nearly 6ドルM in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Dear All, Please consider the snippet at the end of the email. Admittedly, I am still quite cumbersome with the matplotlib pipeline (I am a bit unsure about how to manipulate objects and their properties). The snippet below produces two plots. I have some questions (1) for both plots: how do I add some text to the plot(possibly in latex) in a specified position and fine-tune its properties (size, bold etc...)? (2) Last generated plot: I would like to have arrows like in the previous plot, just rotated by 90 degrees so that they hit the red areas at the north and south poles. However, this does not look possible right now without shortening the arrows (there is not enough vertical space; somehow the whole aspect ratio of the plot+boundary is not 1). Any suggestions about how to fix this? Many thanks Lorenzo ####################################################################################33 #!/usr/bin/env python """ See pcolor_demo2 for a much faster way of generating pcolor plots """ from __future__ import division from pylab import * def func3(x,y): return (1- x/2 + x**5 + y**3)*exp(-x**2-y**2) def func4(x,y): theta=arcsin(y) return cos(theta) def func5(x,y): return abs(sin(y)) def func6(x,y): return abs(cos(y)) # make these smaller to increase the resolution dx, dy = 0.05, 0.05 # x = arange(-1.0, 1.0, dx) # y = arange(-1.0, 1.0, dy) x = arange(-pi/2., pi/2., dx) y = arange(-pi/2., pi/2., dy) X,Y = meshgrid(x, y) Z = func6(X, Y) # print "Z is, ", Z ini=pi/2.+0.5 ax = subplot(111) ax.axis('off') im = imshow(Z,cmap=cm.jet, extent=(-pi/2., pi/2., -pi/2., pi/2.)) im.set_interpolation('bilinear') im.set_clip_path(Circle((0,0),pi/2., transform=ax.transData)) annotate("", xy=(-pi/2., 0), xytext=(-ini, 0), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., .2), xytext=(-ini, .2), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., -.2), xytext=(-ini, -.2), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., .4), xytext=(-ini, .4), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., -.4), xytext=(-ini, -.4), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., .6), xytext=(-ini, .6), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., -.6), xytext=(-ini, -.6), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., .8), xytext=(-ini, .8), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., -.8), xytext=(-ini, -.8), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., 1), xytext=(-ini, 1), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., -1), xytext=(-ini, -1), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., 1.2), xytext=(-ini, 1.2), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., -1.2), xytext=(-ini, -1.2), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., 1.4), xytext=(-ini, 1.4), arrowprops=dict(fc="g")) annotate("", xy=(-pi/2., -1.4), xytext=(-ini, -1.4), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., 0), xytext=(ini, 0), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., .2), xytext=(ini, .2), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., -.2), xytext=(ini, -.2), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., .4), xytext=(ini, .4), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., -.4), xytext=(ini, -.4), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., .6), xytext=(ini, .6), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., -.6), xytext=(ini, -.6), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., .8), xytext=(ini, .8), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., -.8), xytext=(ini, -.8), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., 1), xytext=(ini, 1), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., -1), xytext=(ini, -1), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., 1.2), xytext=(ini, 1.2), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., -1.2), xytext=(ini, -1.2), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., 1.4), xytext=(ini, 1.4), arrowprops=dict(fc="g")) annotate("", xy=(pi/2., -1.4), xytext=(ini, -1.4), arrowprops=dict(fc="g")) savefig("first-plot.pdf") clf() Z = func5(X, Y) ax = subplot(111,aspect='equal') ax.axis('off') im = imshow(Z,cmap=cm.jet, extent=(-pi/2., pi/2., -pi/2., pi/2.)) im.set_interpolation('bilinear') im.set_clip_path(Circle((0,0),pi/2., transform=ax.transData)) annotate("", xy=(pi/2., 0), xytext=(ini, 0), arrowprops=dict(fc="g")) annotate("", xy=(0., -1.6), xytext=(ini, 0), arrowprops=dict(fc="g")) savefig("second-plot.pdf") clf()
2010年10月21日 Stefan Mauerberger <ste...@mn...>: > My goal is to draw a grid with labels above the data. Similar to the > example 'demo curvelinear grid'. Ok, I think I cannot give you an authoritative response here, but the following might be useful for the labels: http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.text >From first glimple, I don't understand http://matplotlib.sourceforge.net/examples/axes_grid/demo_curvelinear_grid.html either. It assumes a lot of knowledge of the techniques used imo. As a conclusion, I predict that this plot can easily grow to middle complexity, and that it might be worth using PolarAxes with grid turned off, and maybe save it as svg and remove the circle or sth like that. AFAIK, lines in PolarAxes are automatically bended, so the grid shouln't be a problem (you may use some pcolor function with nans in the values, so that only the grid is drawn) You can override the PolarAxes locator and ticklabels. Friedrich
Hi everybody, I have been using the plot_surface function to create excellent 3d surface plots. However, the colour scales with the z axis, and I cannot find any way to change this. Specifically, I am interested in making the colour change with distance from the origin - in other words, so that it scales with (x^2+y^2+z^2)^1/2. Is there any way of doing this in matplotlib? Thanks, Matt -- View this message in context: http://old.nabble.com/Changing-the-axis-that-colour-changes-with-in-surface-plots-tp30018631p30018631.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Hi Bala, Strange that yum did not updated, Fedora does has the latest version packaged: http://koji.fedoraproject.org/koji/packageinfo?packageID=3607 Maybe you can try to force the installation of the latest rpm by downloading it and installing it with yum. ***************************************************** Filipe Pires Alvarenga Fernandes, PhD Candidate School of Marine Science and Technology University of Massachusetts at Dartmouth 706 Rodney French Blvd., New Bedford, MA 02744 Email: fal...@um... oc...@gm... http://ocefpaf.tiddlyspot.com/ ***************************************************** On Thu, Oct 21, 2010 at 06:46, Bala subramanian <bal...@gm...> wrote: > Friends, > I am using mpl in fedora10. I installed mpl (version 0.98.5.2) with yum > previously. Since yum does not upgrade to latest mpl version, i have > downloaded the tarball to install from the source. Now i want to install mpl > in the same location as previously done by yum (info. given below). > > 1) How can force the installation to the same location as done by yum. > > 2) Will there be anyproblem if i overwrite old one with new installation. > >>>> import matplotlib >>>> matplotlib.__version__ > '0.98.5.2' >>>> matplotlib.__file__ > '/usr/lib/python2.5/site-packages/matplotlib/__init__.pyc' > > > Thank you, > Bala > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > 10ドル million total in prizes - 4ドルM cash, 500 devices, nearly 6ドルM in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Friends, I am using mpl in fedora10. I installed mpl (version 0.98.5.2) with yum previously. Since yum does not upgrade to latest mpl version, i have downloaded the tarball to install from the source. Now i want to install mpl in the same location as previously done by yum (info. given below). 1) How can force the installation to the same location as done by yum. 2) Will there be anyproblem if i overwrite old one with new installation. >>> import matplotlib >>> matplotlib.__version__ '0.98.5.2' >>> matplotlib.__file__ '/usr/lib/python2.5/site-packages/matplotlib/__init__.pyc' Thank you, Bala
Hi, I am generating a scatter plot with a colorbar, and want to pass on the colorbar to some function to do something with it, like plt.scatter(px, py, c=pz, ...) cb = plt.colorbar() foo(cb) My question: How can I extract the range of the colorbar from the cb object? The colorbar extends from min(pz) to max(pz), but can I access these values from the cb object alone, without the need to pass pz to foo as well? Thanks Alex
Hi Frederick, thanks for your answer. The option *faceted* I already knew but this is not exactly what I want. Perhaps it would be possible to draw the grid without labels. My goal is to draw a grid with labels above the data. Similar to the example 'demo curvelinear grid'. Regards Stefan