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
(1) |
2
(8) |
3
(10) |
4
|
|
5
(4) |
6
|
7
(5) |
8
(6) |
9
(4) |
10
(12) |
11
(7) |
|
12
(2) |
13
(2) |
14
(5) |
15
(9) |
16
(4) |
17
(7) |
18
(2) |
|
19
(12) |
20
(8) |
21
(11) |
22
(11) |
23
(2) |
24
(18) |
25
(18) |
|
26
(6) |
27
(7) |
28
(10) |
29
(7) |
30
(31) |
31
(10) |
|
|
From: Mark B. <ma...@gm...> - 2012-08-09 18:43:31
|
I am glad to see you can reproduce the error, Stan. I am running whatever is default with a PythonXY installation (sorry my windows machine is at work). Strange behavior. The code works fine on my mac (PyQt4 backend) with all options (show,draw,pause). Should we file a bug report? Mark On Thu, Aug 9, 2012 at 4:02 PM, Stan West <sta...@nr...> wrote: > ** > > *From:* Mark Bakker [mailto:ma...@gm...] > *Sent:* Tuesday, August 07, 2012 06:42 > > I tried a few things and found out that doing a pause works. > So why does a pause work, but a draw() or show() does not? > This all on Windows using the standard PythonXY installation. > Here is the code that works (testimage.py): > > from pylab import * > c = ones((10,20)) > ax = imshow(c) > pause(0.01) > print ax.get_axes().get_position() > > Running from IPython: > run testimage > Bbox(array([[ 0.125 , 0.24166667], > [ 0.9 , 0.75833333]])) > > I modified your script to test show(), draw(), and pause(); it's attached. > For the WXAgg matplotlib backend, I get: > > In [1]: print(matplotlib.get_backend()) > WXAgg > > In [2]: %run testimage > show: Bbox(array([[ 0.125, 0.1 ], > [ 0.9 , 0.9 ]])) > draw: Bbox(array([[ 0.125 , 0.24166667], > [ 0.9 , 0.75833333]])) > pause: Bbox(array([[ 0.125 , 0.24166667], > [ 0.9 , 0.75833333]])) > > but for the Qt4Agg backend, I get: > > In [1]: print(matplotlib.get_backend()) > Qt4Agg > > In [2]: %run testimage > show: Bbox(array([[ 0.125, 0.1 ], > [ 0.9 , 0.9 ]])) > draw: Bbox(array([[ 0.125, 0.1 ], > [ 0.9 , 0.9 ]])) > pause: Bbox(array([[ 0.125 , 0.24166667], > [ 0.9 , 0.75833333]])) > > Which backend have you been using? > |
|
From: Yasin S. B. <yas...@gm...> - 2012-08-09 14:58:05
|
Hi.
i wanted to make a colorbar for a dataset. dataset has 50 different values.
so instead of entering a different color for 50 values one by one, i tried
the code below.
here is what happens:
1- two different data value is painted same color.
changing the color number to some value, sometimes works, sometimes doesnt.
for example, if i change the N (number of colors) in the code below, from
50 to 52,
problem continues, but with different indices. (29-30) are same instead of
(28-29).
but if i change it to 60 colors, problem "seems to" go away for given data
values in the example.
2- colors in image are not "exactly" taken from colorbar. they are
different a tiny bit.
if you check that darkblue color color picker, there is no such color in
colorbar!
second 'data' line (RGB 21-1-167)
the most close one is color index 28 (RGB 22-2-168)
and even correctly indexed data colors are off a little bit (RGB-values, i
mean).
PS: since colors are very similar and look same, you need to use
a RGB color picker/finder app. (i use Color Selector 1.0)
thanks in advance.
#
===========================================================================
from matplotlib import colors, colorbar, pyplot
import numpy as np
# make a dict for colors.
color_info = {}
color_info["red"] = [[0.0, 0.00, 0.00], # black
[0.2, 0.40, 0.40], # brown
[0.4, 0.60, 0.60], # purple
[0.6, 0.00, 0.00], # darkblue
[0.7, 0.00, 0.00], # green
[0.8, 1.00, 1.00], # yellow
[0.9, 1.00, 1.00], # red
[1.0, 1.00, 1.00]] # white
color_info["green"] = [[0.0, 0.00, 0.00],
[0.2, 0.20, 0.20],
[0.4, 0.05, 0.05],
[0.6, 0.00, 0.00],
[0.7, 1.00, 1.00],
[0.8, 1.00, 1.00],
[0.9, 0.00, 0.00],
[1.0, 1.00, 1.00]]
color_info["blue"] = [[0.0, 0.00, 0.00],
[0.2, 0.00, 0.00],
[0.4, 0.70, 0.70],
[0.6, 0.65, 0.65],
[0.7, 0.00, 0.00],
[0.8, 0.00, 0.00],
[0.9, 0.18, 0.18],
[1.0, 1.00, 1.00]]
# divide colorbar into 50 colors. you can change this (Ex: N=15 and use
data2)
my_cmap = colors.LinearSegmentedColormap('my_colormap', color_info, N=50)
N = my_cmap.N
# we put tickmarks into the middle of colors, by shifting half a segment.
ticklabels = np.arange(N)
ind = np.arange(N)
ticks = [(i / float(N)) + (1 / float(2 * N)) for i in ind]
def my_cbar(cbar_ax, cmap=my_cmap):
"""adds cbar to image."""
base = colorbar.ColorbarBase(cbar_ax, cmap=my_cmap,
ticks=ticks,
orientation="horizontal")
xlabels = cbar_ax.get_xticklabels()
for label in xlabels:
label.set_rotation(60)
base.set_ticklabels(ticklabels)
# labels are very close so dont forget to maximize plot window to see
better.
fig = pyplot.figure(figsize=(7, 7))
data = [[27, 28],
[28, 29], # both are same colors!
[29, 30],
[30, 31],
[31, 32],
[32, 33]]
# data2 is just to show it works as expected for N=15.
data2 = [[7.999, 8],
[8.999, 9],
[9.999, 10],
[10, 11],
[11, 12],
[12, 13]]
# with these vmin/vmax, data value 0-0.99999 goes to 'color index 0',
# data value X - X.9999 goes to 'color index X' ...etc
# (change 'data' to 'data2' when N=15)
pyplot.imshow(data, cmap=my_cmap,
vmin=0, vmax=N, interpolation="nearest")
cx = fig.add_axes((0.2, 0.05, 0.6, 0.03))
my_cbar(cx, cmap=my_cmap)
# but data values 28 and 29 goes to same color. maybe this happens for other
# data values as well ???
# similarly interesting, if you check that darkblue color with a
# rgb color picker/reader, there is no such color in colorbar! the most
close
# one is color index 28.
# RGB values ->>> 'data[1, :]=(21, 1, 167)' vs 'color index 28=(22, 2, 168)'
# and even correctly indexed colors RGB values are off a little bit.
pyplot.show()
--
Yasin Selçuk Berber
"Bismillah, her hayrın başıdır."
|
|
From: Benjamin R. <ben...@ou...> - 2012-08-09 14:34:52
|
On Wed, Aug 8, 2012 at 7:03 AM, darkside <in....@gm...> wrote: > > > ---------- Forwarded message ---------- > From: darkside <in....@gm...> > Date: 2012/8/2 > Subject: Re: [Matplotlib-users] zoomed in detail box > To: Jae-Joon Lee <lee...@gm...> > > > Hi everyone! > > I'm also trying to do a detailed zoomed area of my plot, but I can't > manage to put the box in the position I want, bbox_to_anchor didn't work in > my case: > > axins = > zoomed_inset_axes(ax,3,loc=2,bbox_to_anchor=(0,0,0.5,0.5),bbox_transform=ax.transAxes) > > This bbox_to_anchor tuple is just an example. I only want to move the > zoomed box a little to the right, since the ticklabels overlap. > > Any idea? > > I really appreciate your help! > > Is this what you are looking for? http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#insetlocator Cheers! Ben Root |
|
From: Stan W. <sta...@nr...> - 2012-08-09 14:02:32
|
From: Mark Bakker [mailto:ma...@gm...]
Sent: Tuesday, August 07, 2012 06:42
I tried a few things and found out that doing a pause works.
So why does a pause work, but a draw() or show() does not?
This all on Windows using the standard PythonXY installation.
Here is the code that works (testimage.py):
from pylab import *
c = ones((10,20))
ax = imshow(c)
pause(0.01)
print ax.get_axes().get_position()
Running from IPython:
run testimage
Bbox(array([[ 0.125 , 0.24166667],
[ 0.9 , 0.75833333]]))
I modified your script to test show(), draw(), and pause(); it's attached. For
the WXAgg matplotlib backend, I get:
In [1]: print(matplotlib.get_backend())
WXAgg
In [2]: %run testimage
show: Bbox(array([[ 0.125, 0.1 ],
[ 0.9 , 0.9 ]]))
draw: Bbox(array([[ 0.125 , 0.24166667],
[ 0.9 , 0.75833333]]))
pause: Bbox(array([[ 0.125 , 0.24166667],
[ 0.9 , 0.75833333]]))
but for the Qt4Agg backend, I get:
In [1]: print(matplotlib.get_backend())
Qt4Agg
In [2]: %run testimage
show: Bbox(array([[ 0.125, 0.1 ],
[ 0.9 , 0.9 ]]))
draw: Bbox(array([[ 0.125, 0.1 ],
[ 0.9 , 0.9 ]]))
pause: Bbox(array([[ 0.125 , 0.24166667],
[ 0.9 , 0.75833333]]))
Which backend have you been using?
|