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
(20) |
2
(16) |
3
(9) |
4
(12) |
5
(14) |
6
(22) |
|
7
(17) |
8
(33) |
9
(26) |
10
(32) |
11
(47) |
12
(26) |
13
(7) |
|
14
(24) |
15
(44) |
16
(42) |
17
(22) |
18
(31) |
19
(8) |
20
(4) |
|
21
(15) |
22
(27) |
23
(41) |
24
(33) |
25
(31) |
26
(24) |
27
(10) |
|
28
(20) |
|
|
|
|
|
|
|
From: John H. <jd...@gm...> - 2010-02-23 14:47:36
|
On Mon, Feb 22, 2010 at 6:28 PM, Eric Firing <ef...@ha...> wrote: > Yes. You are looking at ColorbarBase, which does not have an associated > mappable. The derived Colorbar class does grab the cmap and norm from the > mappable used in the initialization. Is this somehow not working? Did you > really need to specify the norm explicitly? No, I didn't test this, I just read the code (apparently the wrong code) and concluded I needed it. I did just test w/o it and all is well. Sorry for the noise. JDH |
|
From: John H. <jd...@gm...> - 2010-02-23 14:40:25
|
On Tue, Feb 23, 2010 at 4:12 AM, Jan Strube <cur...@gm...> wrote: > Hi John, > thanks for keeping at it. I have updated from svn > But this script > File > "/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py", > line 278, in _config_axes > ticks, ticklabels, offset_string = self._ticker() > File > "/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py", > line 417, in _ticker > b = np.array(locator()) > File > "/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/ticker.py", > line 1085, in __call__ > vmin = self.axis.get_minpos() > AttributeError: DummyAxis instance has no attribute 'get_minpos' Take a look at the file name in the traceback: matplotlib-1.0.svn_r8037 The r8037 is the svn revision number. According the svn log, I made my commit on r8149, so you are not running HEAD. You may have multiple matplotlib's installed and are not picking up the right egg. I recommend > rm -rf /Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib* and then doing a clean install from mpl svn r8149 or later. JDH |
|
From: Sebastian R. <seb...@go...> - 2010-02-23 14:22:30
|
Hi,
has anyone a good idea how to interactively display the xy coordintes (as
whole numbers) and the pixel intensity using the mouse cursor. Here is the
code snippet:
...
fig = plt.figure()
ax1 = fig.add_subplot(111)
channel_select = 1
p = imread(filename) # normally I use TIFF file
if (p.ndim > 2):
p1 = p[:,:,channel_select] # if more than 1 channel --> select
else:
p1 = p
ax1.imshow(p1)
plt.show()
...
So far only the XY coordinates are displayed, but not as whole numbers and
even negative xy values are displayed, if the cursor is move to the corners
(???). And of course I would like the pixel intensity to be displayed ...
Thanks,
Sebi
|
|
From: t p. <tee...@gm...> - 2010-02-23 14:07:20
|
I would like to use custom symbols (markers) on both line charts and scatter charts. The symbols I would like to use are currently stored in PNG files. Is there a way to convert these images to markers? Symbols are pretty simple and contain only one colour, and the background should be transparent. |
|
From: Kornél J. <kja...@gm...> - 2010-02-23 10:43:56
|
Hi all! I am preparing a journal article and the figures should have a fixed width of 3 inches, with as thin white border around as possible. The figure does an imshow with *equal* axes: My problem is: I do not know in advance the height of my figure to specify figsize. The height should vary so that the whole figure (with ticks, legends and colorbanr) fits tightly into a 3 x ? inch box. I have already tried bbox_inches='tight' for savefig and looked at HowTo FAQ: automatically make room for tick labels<http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels>for possible ideas but do no have a clue yet. Any suggestion is welcome. Thx very much! Kornel |
|
From: Jon M. <jon...@ya...> - 2010-02-23 10:34:13
|
Hi, I'm using the Python(x,y) distribution which comes with matplotlib for Windows. My OS is Windows XP with all updates and service packs on an AMD Athlon 2600+ PC with ATI Radeon 9600 graiphics card. Python will work fine for anything that doesn't import the pylab component (I can import matplotlib itself no problem as well as numpy etc) but if I try to import pylab I get:- "An unhandled exception occured in pythonw.exe [3976]" I've tied reinstalling Python(x,y) and even reinstalling windows then Python(x,y) but to no avail. This seems odd to me as 2 other PCs at work install Python(x,y) and run Pylab fine. Any suggestions as to what I should check to track down this error? Thanks Jon __________ Information from ESET NOD32 Antivirus, version of virus signature database 4888 (20100222) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |
|
From: Kjell M. F. <kj...@gm...> - 2010-02-23 10:28:50
|
Erik Tollerud-2 wrote: > > I'm curious if anyone knows a good way to embed pydot > (http://code.google.com/p/pydot/) graphs (or really, any > graphviz-style graphs) inside matplotlib somehow. > The closest thing is probably NetworkX (http://networkx.lanl.gov/index.html) and PyGraphviz (http://networkx.lanl.gov/pygraphviz/) The above tools can at least provide the position of the nodes, but I don't think they use the drawing information provided by Graphviz. As mentioned in another post, it is not that hard to write a Graphviz to Matplotlib converter. Graphviz can output very detailed rendering information when using the xdot output format (http://www.graphviz.org/doc/info/output.html#d:xdot) Sounds like a fun weekend project :) - Kjell Magne Fauske -- View this message in context: http://old.nabble.com/Pydot-graphs-in-matplotlib--tp27602474p27701290.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Jan S. <cur...@gm...> - 2010-02-23 10:12:18
|
Hi John,
thanks for keeping at it. I have updated from svn
But this script
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import LogFormatter
from matplotlib import colors
class LogFormatterHB(LogFormatter):
def __call__(self, v, pos=None):
vv = self._base ** v
print vv
return LogFormatter.__call__(self, vv, pos)
data = np.load('deltaR_parton_jet_109370.npz')
ptcut = np.logical_and(data['jetMomentum'] < 300000, data['jetMomentum']>0)
deltaRCut = data['deltaR']>0
cut = np.logical_and(ptcut, deltaRCut)
fig = plt.figure()
polycol = plt.hexbin(data['jetMomentum'][cut] / 1000, data['deltaR'][cut],
gridsize=50, norm=colors.LogNorm())
plt.title('deltaR between parton(eta<2.5) and jet(eta<2.5)')
plt.xlabel('jet pt (GeV)')
plt.ylabel('deltaR')
cb = plt.colorbar(norm=polycol.norm)
cb.set_label('# entries')
fig.savefig('hexbin_demo.png', dpi=100)
#plt.show()
gives me an error:
> python test.py
Traceback (most recent call last):
File "test.py", line 24, in <module>
cb = plt.colorbar(norm=polycol.norm)
File
"/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/pyplot.py",
line 1356, in colorbar
ret = gcf().colorbar(mappable, cax = cax, ax=ax, **kw)
File
"/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/figure.py",
line 1104, in colorbar
cb = cbar.Colorbar(cax, mappable, **kw)
File
"/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py",
line 649, in __init__
ColorbarBase.__init__(self, ax, **kw)
File
"/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py",
line 240, in __init__
self.draw_all()
File
"/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py",
line 251, in draw_all
self._config_axes(X, Y)
File
"/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py",
line 278, in _config_axes
ticks, ticklabels, offset_string = self._ticker()
File
"/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py",
line 417, in _ticker
b = np.array(locator())
File
"/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/ticker.py",
line 1085, in __call__
vmin = self.axis.get_minpos()
AttributeError: DummyAxis instance has no attribute 'get_minpos'
Cheers,
Jan
On Tue, Feb 23, 2010 at 12:26 AM, John Hunter <jd...@gm...> wrote:
> On Mon, Feb 22, 2010 at 4:33 PM, John Hunter <jd...@gm...> wrote:
> > polycol = plt.hexbin(data['jetMomentum'][cut] / 1000,
> > data['deltaR'][cut],gridsize=50, norm=colors.LogNorm())
> > cb = plt.colorbar(norm=colors.LogNorm())
> >
> > but this appears to be broken:
>
> I committed some changes to support this -- the following now works:
>
> polycol = plt.hexbin(data['jetMomentum'][cut] / 1000,
> data['deltaR'][cut],gridsize=50, norm=colors.LogNorm())
>
> cb = plt.colorbar(norm=polycol.norm)
>
> Eric - I was surprised the colorbar does not use the mappable norm by
> default (if passed norm=None). Instead it uses ::
>
> norm = colors.Normalize()
>
> is this a feature?
>
> JDH
>
|
|
From: Stephen G. <ste...@op...> - 2010-02-23 08:26:51
|
David Goldsmith wrote: > I've searched and searched the online docs...please help. > > DG > If I understand your question correctly you probably need to look at http://matplotlib.sourceforge.net/api/ticker_api.html#tick-formatting ax.xaxis.set_major_formatter( xmajorFormatter ) ax.xaxis.set_minor_formatter( xminorFormatter ) - Steve |
|
From: Andrew S. <str...@as...> - 2010-02-23 07:34:40
|
John Hunter wrote: > > > On Mon, Feb 22, 2010 at 1:44 PM, Ben Axelrod <BAx...@co... > <mailto:BAx...@co...>> wrote: > > I noticed that there are many modules in the current code base > that are not listed at: > http://matplotlib.sourceforge.net/modindex.html. I understand > that a few are new files and that the documentation for these will > be generated during the next release. But I know that most of > these were in the last release so should have had their > documentation generated. Am I missing something? Can the > documentation for these modules be found somewhere else? > > > You're not missing anything in terms of the html/pdf docs. When we > converted our documentation build system to sphinx/rest, we had to > convert our docstrings to rest as well. We made good headway for a > while but the progress has stalled. To add a module to the > documentation system, you need to Also, it's worth nothing that the docs from svn head are automatically compiled and uploaded from svn on each commit: HTML: http://matplotlib.sourceforge.net/trunk-docs/index.html PDF: http://matplotlib.sourceforge.net/trunk-docs/Matplotlib.pdf -Andrew |
|
From: Philipp B. <li...@ro...> - 2010-02-23 07:18:48
|
Hi David,
I found this one::
xticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') )
On the page
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xticks
If I had that problem I would try to do something like that:
xvalues = linspace(0,100,1000)
xticks(xvalues, ["%.2f" % val for val in xvalues])
# or, with a lambda expression, but in #python they say
# a list comprehension is better (faster)
xticks(xvalues, map(lambda i : "%.2f" % i, xvalues))
The side effect is, of course, that the tick is not exactly at the position he
indicates. Maybe you better use "arange()" to get the right values for your
ticks, just make sure that they cover the interval your xvalues are in.
If you find a better solution, please let me know.
Best regards,
Philipp
|
|
From: David G. <d_l...@ya...> - 2010-02-23 07:01:14
|
I've searched and searched the online docs...please help.
DG
|
|
From: Eric F. <ef...@ha...> - 2010-02-23 01:28:51
|
John Hunter wrote: > On Mon, Feb 22, 2010 at 4:33 PM, John Hunter <jd...@gm...> wrote: >> polycol = plt.hexbin(data['jetMomentum'][cut] / 1000, >> data['deltaR'][cut],gridsize=50, norm=colors.LogNorm()) >> cb = plt.colorbar(norm=colors.LogNorm()) >> >> but this appears to be broken: > > I committed some changes to support this -- the following now works: > > polycol = plt.hexbin(data['jetMomentum'][cut] / 1000, > data['deltaR'][cut],gridsize=50, norm=colors.LogNorm()) > > cb = plt.colorbar(norm=polycol.norm) > > Eric - I was surprised the colorbar does not use the mappable norm by > default (if passed norm=None). Instead it uses :: > > norm = colors.Normalize() > > is this a feature? Yes. You are looking at ColorbarBase, which does not have an associated mappable. The derived Colorbar class does grab the cmap and norm from the mappable used in the initialization. Is this somehow not working? Did you really need to specify the norm explicitly? Eric > > JDH |