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
(19) |
2
(30) |
3
(14) |
4
(1) |
|
5
(16) |
6
(7) |
7
(12) |
8
(14) |
9
(35) |
10
(16) |
11
(31) |
|
12
(6) |
13
(14) |
14
(13) |
15
(20) |
16
(15) |
17
(27) |
18
(5) |
|
19
(10) |
20
(22) |
21
(20) |
22
(30) |
23
(25) |
24
(11) |
25
(2) |
|
26
(2) |
27
(23) |
28
(20) |
29
(26) |
30
(25) |
31
(7) |
|
|
From: Jeff W. <js...@fa...> - 2009-07-02 03:21:51
|
Alexandar Hansen wrote: > Hello, > > I've been struggling with this for a while now and have effectively > two issues. One, how can I define the range over which hexbin ... > bins? And two, how do I change the background color of a plot? Alexandar: To change the background color to the lowest value in the colormap: ax = plt.gca() ax.set_axis_bgcolor(plt.cm.jet(0)) -Jeff > The latter I thought would be trivial, but nothing I've tried has > worked. Let's take the example: > > import numpy as np > import matplotlib.cm <http://matplotlib.cm> as cm > import matplotlib.pyplot as plt > > n = 100000 > x = np.random.standard_normal(n) > y = 2.0 + 3.0 * x + 4.0 * np.random.standard_normal(n) > #xmin = x.min() > #xmax = x.max() > #ymin = y.min() > #ymax = y.max() > xmin = 0 > xmax = 10 > ymin = 0 > ymax = 30 > > plt.hexbin(x,y, cmap=cm.jet) > #plt.hexbin(x,y, cmap=cm.jet, extent=[xmin, xmax, ymin, ymax]) > plt.axis([xmin, xmax, ymin, ymax]) > plt.title("Hexagon binning") > cb = plt.colorbar() > cb.set_label('counts') > > plt.show() > > > Let's say i'm only interested in the positive quadrant of the data, so > I only want to bin data in the range of 0-10 in x and 0-30 in y. The > first thing I tried was to use the extent option to only bin the > specified range of data, but that gives these errors: > > [tesla:~/NMR/500-Tupp/IM7][349] HexBin.py > Traceback (most recent call last): > File "HexBin.py", line 28, in <module> > plt.hexbin(x,y, cmap=cm.jet, extent=[xmin, xmax, ymin, ymax]) > File "/usr/lib64/python2.5/site-packages/matplotlib/pyplot.py", line > 1920, in hexbin > ret = gca().hexbin(*args, **kwargs) > File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line > 5447, in hexbin > collection.update(kwargs) > File "/usr/lib64/python2.5/site-packages/matplotlib/artist.py", line > 548, in update > raise AttributeError('Unknown property %s'%k) > AttributeError: Unknown property extent > > > After that, I just set the plt.axis range to what I'm interested in. > However, the range not binned by hexbin shows up as white, instead of > the 0-count blue. I've tried adding facecolor, edgecolor, axisbg, and > who knows what else as part of plt.hexbin, plt.axis, and plt.savefig, > But most have no consequence on the plot. plt.savefig(myname, > facecolor='blue') successfully changed everything blue except the > white region within the plot. > > So, where am I going wrong? I'm finding myself out of options and > would ideally not like to trim or add false points to my data just to > get the axis and colors correct. > > Best, > Alex > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Stephen G. <ste...@op...> - 2009-07-02 01:07:10
|
Hi,
I just downloaded matplotlib-0.98.5.3.win32-py2.6.exe from sourceforge.
I have an existing Application that works fine with
python : 2.5.4 final 0
pyGTK : 2.12.1
GTK+ : 2.14.7
numpy : 1.2.1
matplotlib : 0.98.5.2
Now I am trying the same App on
python version : 2.6.0 final 0
pyGTK version : 2.12.1
gtk+ version : 2.16.2
numpy version : 1.3.0
matplotlib version: 0.98.5.3
I got the following traceback, I'm wondering:
- Am I looking at changes due to the different matplotlib versions?
- Are some bits are missing in the downloaded installer ?
- or is there incompatibility with the newer versions of GTK?
importing matplotlib
Traceback (most recent call last):
File "C:\SVNproj\FrictionTests2\PyGTKFricPlot.py", line 17, in <module>
from matplotlib.backends.backend_gtk import FigureCanvasGTK as
FigureCanvas
File
"C:\Python26\Lib\site-packages\matplotlib\backends\backend_gtk.py", line
25, in <module>
from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
File
"C:\Python26\Lib\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
Thanks for any clues
Steve
|
|
From: Brian Z. <br...@gm...> - 2009-07-02 00:09:15
|
As usual, I ended up figuring this out after I sent this question. The trick was adding the central widget (FigureCanvas) to a QLayout, and just ignoring the resizeEvent. So, I just did: vbox = QVBoxLayout() vbox.addWidget(self.canvas) self.setLayout(vbox) in the custom QWidget which holds the canvas and everything worked fine. I also removed the overridden resizeEvent. BZ On Wed, Jul 1, 2009 at 1:17 PM, Brian Zambrano <br...@gm...> wrote: > Hi all, > > I'm having a problem with resizing a FigureCanvas using the Qt4 backend > when the FigureCanvas is used alongside some dock widgets. What happens is > that the figure never grows beyond the original size set when the window or > other dock widgets are expanded. It's probably easier to look at a > screenshot taken after I resized (grew) things a bit: > > http://brianz.s3.amazonaws.com/mpl_buggy.png > > The simple code I used to generate and test this is located here: > > http://brianz.s3.amazonaws.com/mpl_qt_buggy.py.txt > > To get the FigureCanvas to resize at all, I'm passing the resizeEvent from > the parent widget down to the FigureCanvas's resizeEvent. > > Am I doing something incorrectly here or is this a bug? > > Thanks, > BZ > |