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
(3) |
|
2
|
3
(1) |
4
(7) |
5
(7) |
6
(11) |
7
(3) |
8
(4) |
|
9
(5) |
10
(5) |
11
(15) |
12
(7) |
13
(5) |
14
(4) |
15
(5) |
|
16
|
17
(4) |
18
(8) |
19
(12) |
20
(11) |
21
(4) |
22
(2) |
|
23
(4) |
24
(7) |
25
(5) |
26
(13) |
27
(3) |
28
(10) |
29
(3) |
|
30
(1) |
31
(15) |
|
|
|
|
|
|
From: Dominique O. <Dom...@po...> - 2005-01-17 23:28:32
|
John Hunter wrote:
>>>>>>"Dominique" == Dominique Orban <Dom...@po...> writes:
>
>
> Dominique> I notice some spurious zigzagging lines towards the top
> Dominique> of the plot. Any idea where those might be coming from?
>
> I don't get zigzag lines either. Try using replacing
> matplotlib.axes.Axes.contour with the function included below (from
> CVS) and let me know if it works.
>
> Dominique> Also, the figure produced by the above script is
> Dominique> flipped horizontally. The corresponding Matlab script
> Dominique> produces the correct plot.
>
> matplotlib supports two image / contour orientation styles, and this
> is controlled by an rc parameter. Try (note the origin kwarg)
>
> from matplotlib.pylab import *
>
> def rosenbrock(x,y):
> return 10.0 * (y-x**2)**2 + (x-1)**2
>
> x = arange( -1.5, 1.5, 0.01 )
> y = arange( -0.5, 1.5, 0.01 )
> [X,Y] = meshgrid( x, y )
> Z = rosenbrock( X, Y )
> contour( Z, x=X, y=Y, levels = 50, origin='lower' )
> show()
>
>
> Amended contour function
> [snip]
John,
Many thanks for the update. That solves some of the issues. The 'origin'
keyword argument restores the orientation of the plot. To account for
the 'x' and 'y' keyword arguments, I would suggest changing the lines
if x == None and y == None:
y, x = indices((jmax,imax), 'd')
to
if x is None:
x = indices((jmax,imax), 'd')
if y is None:
y = indices((jmax,imax), 'd')
to account for the situation where only one of x or y is specified (I
admit that might be unlikely but hey).
Regarding the zigzags, I notice they appear for relatively small values
of the increment in arange() (the 3rd argument). When I decrease it to,
say, 0.1, zigzags start to appear. For higher values, they don't. It
makes me think they might be part of the line collections. Is anyone
else able to reproduce this behavior?
Thanks much.
Dominique
|
|
From: John H. <jdh...@ac...> - 2005-01-17 21:53:37
|
>>>>> "Dominique" == Dominique Orban <Dom...@po...> writes:
Dominique> I notice some spurious zigzagging lines towards the top
Dominique> of the plot. Any idea where those might be coming from?
I don't get zigzag lines either. Try using replacing
matplotlib.axes.Axes.contour with the function included below (from
CVS) and let me know if it works.
Dominique> Also, the figure produced by the above script is
Dominique> flipped horizontally. The corresponding Matlab script
Dominique> produces the correct plot.
matplotlib supports two image / contour orientation styles, and this
is controlled by an rc parameter. Try (note the origin kwarg)
from matplotlib.pylab import *
def rosenbrock(x,y):
return 10.0 * (y-x**2)**2 + (x-1)**2
x = arange( -1.5, 1.5, 0.01 )
y = arange( -0.5, 1.5, 0.01 )
[X,Y] = meshgrid( x, y )
Z = rosenbrock( X, Y )
contour( Z, x=X, y=Y, levels = 50, origin='lower' )
show()
Amended contour function
def contour(self, z,
x = None,
y = None,
levels = None,
colors = None,
linewidths = None,
alpha = 1.0,
fmt='%1.3f',
origin=None):
"""\
CONTOUR(z, x = None, y = None, levels = None, colors = None)
plots contour lines of an image z
z is a 2D array of image values
x and y are 2D arrays with coordinates of z values in the
two directions. x and y do not need to be evenly spaced but must
be of the same shape as z
levels can be a list of level values or the number of levels to be
plotted. If levels == None, a default number of 7 evenly spaced
levels is plotted.
colors is one of these:
- a tuple of matplotlib color args (string, float, rgb, etc),
different levels will be plotted in different colors in the order
specified
- one string color, e.g. colors = 'r' or colors = 'red', all levels
will be plotted in this color
- if colors == None, the default color for lines.color in
.matplotlibrc is used.
linewidths is one of:
- a number - all levels will be plotted with this linewidth,
e.g. linewidths = 0.6
- a tuple of numbers, e.g. linewidths = (0.4, 0.8, 1.2) different
levels will be plotted with different linewidths in the order
specified
- if linewidths == None, the default width in lines.linewidth in
.matplotlibrc is used
reg is a 2D region number array with the same dimensions as x and
y. The values of reg should be positive region numbers, and zero fro
zones wich do not exist.
triangle - triangulation array - must be the same shape as reg
alpha : the default transparency of contour lines
fmt is a format string for adding a label to each collection.
Currently this is useful for auto-legending and may be useful down
the road for legend labeling
origin = 'upper'|'lower'|None. If None, the rc value for image.origin
will be used
More information on reg and triangle arrays is in _contour.c
Return value is levels, collections where levels is a list of contour
levels used and collections is a list of
matplotlib.collections.LineCollection instances
"""
if origin is None: origin = rcParams['image.origin']
if origin == 'upper':
if x is not None: x = x[::-1]
if y is not None: y = y[::-1]
z = z[::-1]
if not self._hold: self.cla()
if which[0] == "numeric":
z = array(z.tolist(),typecode = z.typecode())
if len(shape(z)) != 2:
raise TypeError("Input must be a 2D array.")
else:
jmax, imax = shape(z)
region = 0
reg = ones((jmax,imax), Int32)
reg[:,0]=0
triangle = zeros((jmax,imax), Int32)
if x == None and y == None:
y, x = indices((jmax,imax), 'd')
rz = ravel(z)
zmax = nxmax(rz)
zmin = nxmin(rz)
def autolev(N):
return mlab.linspace(zmin, zmax, N+2)[1:-1]
if levels is None: lev = autolev(7)
else:
try: Nlev = int(levels)
except TypeError:
lev = list(levels)
else: lev = autolev(Nlev)
Nlev = len(lev)
if colors == None:
colors = rcParams['lines.color']
if is_string_like(colors):
colors = [colors] * Nlev
elif iterable(colors) and len(colors) < Nlev:
colors = list(colors) * Nlev
else:
try: gray = float(colors)
except TypeError: pass
else: colors = [gray] * Nlev
tcolors = []
for c in colors:
tcolors.append((colorConverter.to_rgba(c, alpha),))
if linewidths == None:
tlinewidths = [linewidths] *Nlev
else:
if iterable(linewidths) and len(linewidths) < Nlev:
linewidths = list(linewidths) * int(ceil(Nlev/len(linewidths)))
elif not iterable(linewidths) and type(linewidths) in [int, float]:
linewidths = [linewidths] * Nlev
tlinewidths = [(w,) for w in linewidths]
args = zip(lev, tcolors, tlinewidths)
levels = []
collections = []
for level, color, width in args:
ntotal, nparts = _contour.GcInit1(x, y, reg, triangle, region, z, level)
np = zeros((nparts,), Int32)
xp = zeros((ntotal, ), Float64)
yp = zeros((ntotal,), Float64)
nlist = _contour.GcTrace(np, xp, yp)
col = LineCollection(nlist, colors=color, linewidths = width)
col.set_label(fmt%level)
self.add_collection(col)
levels.append(level)
#col.set_linestyle('dashdot') # dashed|dotted|solid|dashdot
#dashes = 0, (4,2,8,1)
#col.set_linestyle( (dashes,) ) # offset, onoffseq
collections.append(col)
if x is not None:
rx = ravel(x)
self.set_xlim((min(rx), max(rx)))
else:
self.set_xlim([0,imax])
if y is not None:
ry = ravel(y)
self.set_ylim((min(ry), max(ry)))
else:
self.set_ylim([0,jmax])
return levels, collections
|
|
From: Carol L. <car...@sr...> - 2005-01-17 19:05:19
|
The change picked up the top color. However, it looks to me as though the yellowish color is missing from the color bar. I see only 9 colors. The is without tweaking clim. When I do tweak clim to clim(vmin=-.1, vmax = 0.1), I see the yellowish color, but two of the bluer colors seem to be missing. I see only 8 colors in the color bar. > To: Carol Leger <car...@sr...> > Cc: mat...@li... > Subject: Re: [Matplotlib-users] Color bar with discrete colors > From: John Hunter <jdh...@ac...> > Date: Sat, 15 Jan 2005 16:32:48 -0600 > > >>>>>>"Carol" == Carol Leger <car...@sr...> writes: > > > Carol> This is how I modified poormans_contour.py: > > It's a bug; in the matplotlib/pylab.py function "colorbar", replace > the line that reads > > N = 200 > > with > > N = cmap.N > > No need to tweak the clim.... > > Should cure what ails ya, > JDH > -- Ms. Carol A. Leger SRI International Phone: (650) 859-4114 333 Ravenswood Avenue G-273 Menlo Park, CA 94025 e-mail: le...@sr... |
|
From: <fcc...@fi...> - 2005-01-17 12:56:04
|
On Friday 14 January 2005 14:48, Dominique Orban wrote: I don't get any zig-zag lines on my box when I run your code... as for being sideways, I cant tell since I don't have matlab here... I don't have a solution, but it doesn't seem to be a matplotlib problem. I am running, version 0.70.1 good luck, =46l=E1vio > Hi, > > When trying to plot the contours of the famous Rosenbrock function: > > ---------------------------------------- > from matplotlib.pylab import * > > def rosenbrock(x,y): > return 10.0 * (y-x**2)**2 + (x-1)**2 > > x =3D arange( -1.5, 1.5, 0.01 ) > y =3D arange( -0.5, 1.5, 0.01 ) > [X,Y] =3D meshgrid( x, y ) > Z =3D rosenbrock( X, Y ) > contour( Z, x=3DX, y=3DY, levels =3D 50 ) > show() > ---------------------------------------- > > I notice some spurious zigzagging lines towards the top of the plot. Any > idea where those might be coming from? > > Also, the figure produced by the above script is flipped horizontally. > The corresponding Matlab script produces the correct plot. > > Thanks, > Dominique > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |