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
(14) |
2
(11) |
3
(5) |
4
(17) |
5
(11) |
6
(37) |
7
(35) |
8
(9) |
9
(1) |
10
(9) |
11
(7) |
12
(22) |
13
(34) |
14
(24) |
15
(27) |
16
(13) |
17
(19) |
18
(43) |
19
(36) |
20
(12) |
21
(9) |
22
(21) |
23
(3) |
24
(5) |
25
(30) |
26
(14) |
27
(23) |
28
(19) |
29
(19) |
30
(10) |
31
(6) |
|
|
|
|
|
|
Thanks for that: def ifmissing(x): try: return float(x) except: return np.nan works just fine. -Evan On Sun, May 10, 2009 at 6:59 AM, Ryan May <rm...@gm...> wrote: > > > On Sat, May 9, 2009 at 8:35 PM, Evan Mason <eva...@gm...> wrote: > >> Hi, I want to use mlab.load to load in some data: >> >> >> 1) 2004年02月27日 21:51:00 1 2553.51 2553.51 >> -99.0000N 3.217 >> 2) 2004年02月27日 22:01:00 2 2553.47 2553.47 >> -99.0000N 3.217 >> 3) 2004年02月27日 22:10:59 3 2553.45 2553.45 >> -99.0000N 3.218 >> 4) 2004年02月27日 22:20:59 4 2553.46 2553.46 >> -99.0000N 3.223 >> >> >> unfortunately missing values are given as -99.000N, and these cause the >> following error: >> >> >> In [98]: mlab.load(site_file,skiprows=29,usecols=[4]) >> >> --------------------------------------------------------------------------- >> ValueError Traceback (most recent call >> last) >> >> /Users/evan/python/tools/fig_NEA_seas_paper_RAPID.py in <module>() >> ----> 1 >> 2 >> 3 >> 4 >> 5 >> >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mlab.pyc >> in load(fname, comments, delimiter, converters, skiprows, usecols, unpack, >> dtype) >> 1458 if usecols is not None: >> 1459 vals = splitfunc(line) >> -> 1460 row = [converterseq[j](vals[j]) for j in usecols] >> 1461 else: >> 1462 row = [converterseq[j](val) >> >> ValueError: invalid literal for float(): -99.00N >> >> >> Is there any way around this, apart from editing all the data files to >> remove every 'N'? > > > Make use of the converters argument: > > mlab.load(..., converters={5:fix_func}) > > Where fix_func is a function that will convert the -99.0000N values to what > you're looking for. > > Ryan > > -- > Ryan May > Graduate Research Assistant > School of Meteorology > University of Oklahoma >
Hi All, I'm facing a weird problem while embedding in a gtk window made with glade (dunno if this might be involved in the problem, but worth noticing) + dynamical update of the plot. What I'm doing is: fig = Figure() ax = fig.add_subplot(111) line, = ax.plot([], []) then using that reference to update the plot when user click on a button: def update_graph(<params>): line_ref.set_data(np.array([L1, L2])) ax.set_yscale('log') fig_ref.canvas.draw() Sadly, the graph embedded remains unchanged, if not for the Y labels & ticks that changes because of the log scale. The data is there, becase if I explicitly set the x/ylim then the data are shown, but i'd like mpl to autoscale. I've used several tentatives to make it works: - ax.set_autoscale_on(True) - ax.autoscale_view() but none of them worked. Do you know if there's something I can do to make that graph autoscale at "set_data" time? can I force it somehow? if I can't do it handy, is there a workaround to obtain the same effect? Thanks in advance, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
Pl see picture below. The grid always shows on top of the plot lines. Is it possible to put it below? Thanks! http://www.nabble.com/file/p23474184/gridlines.gif -- View this message in context: http://www.nabble.com/how-to-put-grid-under-the-plot-lines--tp23474184p23474184.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Hello, I overlay bunch of boxplots with mean values shown as stars on each corresponding boxplot instance. (As could be seen in this image: http://img216.imageshack.us/img216/7528/boxplot.png. There is a minor thing that affects the appearance of the figure. That is 1st and the last boxplots don't fit in the figure borders. How can I fix this? Do you have any suggestions? Thank you. Gökhan
Hello everybody! I am experiencing the following problem: when I draw text with usetex enabled and the xcolor package, the result is not colored; however the intermediate steps that I find in .../tex.cache still are! The problem occurs with: ===== from matplotlib import rc from pylab import figure, text, show, savefig rc('text', usetex=True) rc('text.latex', preamble="\usepackage{xcolor}") f = figure() f.text(0.5,0.5,r"{\color[rgb]{0,1,0}a}b") show() #savefig("colortest.png") ===== The resulting graph is not colored -- but in the directory ~/.matplotlib/tex.cache/ the text is green, both in the dvi and the png file! It therefore seems to me that this is not completely hopeless but I cannot figure out how to proceed. Can someone help? Thanks & best regards, Sebastian. I am on Linux macbook 2.6.27-11-generic #1 SMP Wed Apr 1 20:53:41 UTC 2009 x86_64 GNU/Linux running Python 2.5.2 (r252:60911, Oct 5 2008, 19:29:17) and matplotlib 0.98.3 downloaded from the Ubuntu repositories for 8.10. I ran > python colortest.py --verbose-helpful /usr/lib/python2.5/site-packages/pytz/__init__.py:29: UserWarning: Module dateutil was already imported from /var/lib/python-support/python2.5/dateutil/__init__.py, but /var/lib/python-support/python2.5 is being added to sys.path from pkg_resources import resource_stream $HOME=/... CONFIGDIR=/.../.matplotlib matplotlib data path /usr/share/matplotlib/mpl-data loaded rc file /etc/matplotlibrc matplotlib version 0.98.3 verbose.level helpful interactive is False units is False platform is linux2 Using fontManager instance from /home/buschi/.matplotlib/fontManager.cache backend TkAgg version 8.4 Found dvipng version 1.11 and > python colortest.py --verbose-debug /usr/lib/python2.5/site-packages/pytz/__init__.py:29: UserWarning: Module dateutil was already imported from /var/lib/python-support/python2.5/dateutil/__init__.py, but /var/lib/python-support/python2.5 is being added to sys.path from pkg_resources import resource_stream $HOME=/... CONFIGDIR=/.../.matplotlib matplotlib data path /usr/share/matplotlib/mpl-data loaded rc file /etc/matplotlibrc matplotlib version 0.98.3 verbose.level debug interactive is False units is False platform is linux2 loaded modules: ['numpy.lib.pkgutil', 'numpy.lib.tempfile', 'numpy.ma.types', 'xml.sax.urlparse', 'distutils', 'matplotlib.errno', 'matplotlib.matplotlib', '_bisect', 'numpy.core.defchararray', 'numpy.lib.bz2', 'matplotlib.tempfile', 'distutils.sysconfig', 'ctypes._endian', 'encodings.encodings', 'matplotlib.dateutil', 'matplotlib.colors', 'numpy.core.numerictypes', 'numpy.testing.sys', 'numpy.core.info', 'xml', 'numpy.fft.types', 'numpy.ma.operator', 'distutils.dep_util', 'numpy.ma.cPickle', 'struct', 'numpy.random.info', 'tempfile', 'mmap', 'xml.sax.urllib', 'numpy.linalg', 'matplotlib.threading', 'numpy.testing.operator', 'imp', 'compiler.sys', 'collections', 'compiler.pyassem', 'numpy.core.umath', '_struct', 'unittest', 'compiler.new', 'numpy.lib.numpy', 'numpy.testing.types', 'compiler.ast', 'numpy.ma.sys', 'zipimport', 'string', 'numpy.testing.os', 'matplotlib.locale', 'numpy.lib.arraysetops', 'numpy.testing.unittest', 'numpy.lib.inspect', 'encodings.utf_8', 'matplotlib.__future__', 'pytz.tzinfo', 'numpy.ctypeslib', 'numpy.testing.re', 'itertools', 'numpy.version', 'numpy.lib.re', 'distutils.re', 'ctypes.os', 'compiler.token', 'numpy.core.os', 'compiler', 'numpy.lib.type_check', 'httplib', 'bisect', 'signal', 'compiler.consts', 'numpy.lib._datasource', 'random', 'numpy.ma.extras', 'token', 'numpy.fft.fftpack_lite', 'shlex', 'ctypes.ctypes', 'xml.sax.xmlreader', 'matplotlib.pytz', 'numpy.__builtin__', 'numpy.testing.shlex', 'distutils.log', 'dis', 'numpy.lib.itertools', 'cStringIO', 'zlib', 'numpy.numpy', 'matplotlib.StringIO', 'numpy.random.mtrand', 'numpy.add_newdocs', 'numpy.lib.getlimits', 'compiler.dis', 'compiler.transformer', 'xml.sax.saxutils', 'compiler.struct', 'pkgutil', 'compiler.parser', 'numpy.lib.sys', 'encodings', 'compiler.symbol', 'numpy.lib.io', 'StringIO', 'dateutil', 'pydoc', 'pytz.cStringIO', 'numpy.imp', 'numpy.ctypes', 'matplotlib.warnings', 'rfc822', 'matplotlib.string', 'pytz.pytz', 'urllib', 'matplotlib.sys', 're', 'numpy.lib._compiled_base', 'threading', 'numpy.core.mmap', 'new', 'numpy.lib.struct', 'symbol', 'math', 'numpy.fft.helper', 'fcntl', 'numpy.ma.warnings', 'compiler.imp', 'UserDict', 'inspect', 'distutils.os', 'matplotlib', 'urllib2', 'pytz.os', 'fnmatch', 'numpy.lib.info', 'numpy.testing', 'numpy.testing.glob', 'numpy.lib.warnings', 'ctypes.struct', 'codecs', 'numpy.core._sort', 'numpy.os', 'pytz.bisect', 'compiler.visitor', 'md5', 'numpy.testing.difflib', 'matplotlib.sre_constants', 'matplotlib.os', 'thread', 'numpy.lib.ufunclike', 'numpy.core.memmap', 'traceback', 'pkg_resources', 'numpy.testing.warnings', 'weakref', 'numpy.core._internal', 'numpy.fft.fftpack', 'opcode', 'numpy.core.scalarmath', 'numpy.linalg.lapack_lite', 'ctypes', 'distutils.sys', 'os', 'marshal', 'sre_parse', 'numpy.lib.shutil', '__future__', 'numpy.core.string', 'matplotlib.copy', 'xml.sax.types', 'numpy.random.numpy', '_sre', 'numpy.lib.gzip', 'numpy.core.sys', 'numpy.random', 'numpy.linalg.numpy', '__builtin__', 'numpy.lib.twodim_base', 'numpy.ma.core', 'matplotlib.re', 'numpy.core.cPickle', 'base64', 'operator', 'numpy.testing.parametric', 'numpy.core.arrayprint', 'distutils.string', 'ctypes._ctypes', '_heapq', 'ctypes.sys', 'matplotlib.datetime', 'posixpath', 'numpy.lib.financial', 'numpy.core.multiarray', 'errno', 'numpy.testing.numpy', '_socket', 'binascii', 'numpy.lib.compiler', 'sre_constants', 'compiler.cStringIO', 'locale', 'compiler.os', 'matplotlib.md5', 'types', 'pytz.sys', 'tokenize', 'xml.sax.handler', 'numpy.core.numpy', 'numpy', 'numpy.lib.urlparse', 'pytz.pkg_resources', 'matplotlib.types', 'numpy.core.defmatrix', 'xml.sax.os', 'cPickle', 'matplotlib.xml', '_codecs', '_locale', 'matplotlib.traceback', 'numpy.__config__', 'numpy.fft.info', 'numpy.lib.types', 'pytz', 'matplotlib.pyparsing', 'compiler.copy_reg', 'numpy.ma.numpy', 'copy', 'numpy.core.re', 'socket', '_types', 'numpy.core.fromnumeric', 'hashlib', 'compiler.future', 'matplotlib.cbook', 'numpy.core.copy_reg', 'numpy.lib.scimath', 'numpy.fft', 'numpy.lib', '_ctypes', 'apport_python_hook', 'posix', 'encodings.aliases', 'matplotlib.fontconfig_pattern', 'exceptions', 'xml.sax._exceptions', 'datetime', 'sets', 'numpy.core.cStringIO', 'numpy.core.ctypes', 'mimetools', 'distutils.distutils', 'copy_reg', 'sre_compile', 'xml.sax', 'compiler.compiler', '_hashlib', '_random', 'parser', 'site', 'numpy.lib.polynomial', 'numpy._import_tools', 'numpy.glob', 'pytz.struct', 'numpy.lib.time', '__main__', 'compiler.misc', 'numpy.core.records', 'shutil', 'numpy.lib.cPickle', 'numpy.sys', 'matplotlib.weakref', 'numpy.lib.pydoc', 'numpy.core._dotblas', 'numpy.testing.traceback', 'strop', 'compiler.pycodegen', 'numpy.core.numeric', 'pytz.tzfile', 'numpy.linalg.info', 'encodings.codecs', 'gettext', 'pytz.datetime', 'heapq', 'numpy.lib.cStringIO', 'numpy.core', 'numpy.testing.info', 'matplotlib.rcsetup', 'matplotlib.time', 'pytz.sets', 'matplotlib.numpy', 'xml.sax.codecs', 'stat', '_ssl', 'numpy.lib.utils', 'numpy.lib.index_tricks', 'numpy.testing.utils', 'warnings', 'encodings.types', 'numpy.lib.math', 'glob', 'numpy.lib.shape_base', 'distutils.util', 'numpy.core.types', 'numpy.fft.numpy', 'repr', 'sys', 'numpy.core.warnings', 'numpy.lib.urllib2', 'compiler.types', 'numpy.core.__builtin__', 'xml.sax.sys', 'numpy.lib.format', 'numpy.lib.os', 'numpy.ma', 'os.path', 'bz2', 'pytz.gettext', 'sitecustomize', 'compiler.symbols', 'distutils.spawn', 'matplotlib.distutils', '_weakref', 'numpy.testing.numpytest', 'difflib', 'distutils.errors', 'urlparse', 'linecache', 'matplotlib.shutil', 'numpy.lib.function_base', 'numpy.testing.imp', 'time', 'gzip', 'numpy.lib.machar', 'compiler.marshal', 'numpy.linalg.linalg', 'compiler.syntax'] Using fontManager instance from /home/buschi/.matplotlib/fontManager.cache backend TkAgg version 8.4 findfont found Bitstream Vera Sans, normal, normal 400, normal, 12.0 findfont returning /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf Found dvipng version 1.11
On Sun, May 10, 2009 at 8:33 AM, Sahar <sa...@cm...> wrote: > Hello, > > Is it possible to autoscale the color map of an image (as in > matlab's 'imagesc')? > I'm using imshow and I can use vmin and vmax but than I have to set these > values manually. > If you don't give it a range, it should autoscale by itself. Double check to make sure there isn't a spurious value somewhere in your array. Otherwise, we'd need to see a complete, small example that demonstrates the problem you're seeing, as well as your version of matplotlib. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States
On Sat, May 9, 2009 at 8:35 PM, Evan Mason <eva...@gm...> wrote: > Hi, I want to use mlab.load to load in some data: > > > 1) 2004年02月27日 21:51:00 1 2553.51 2553.51 > -99.0000N 3.217 > 2) 2004年02月27日 22:01:00 2 2553.47 2553.47 > -99.0000N 3.217 > 3) 2004年02月27日 22:10:59 3 2553.45 2553.45 > -99.0000N 3.218 > 4) 2004年02月27日 22:20:59 4 2553.46 2553.46 > -99.0000N 3.223 > > > unfortunately missing values are given as -99.000N, and these cause the > following error: > > > In [98]: mlab.load(site_file,skiprows=29,usecols=[4]) > --------------------------------------------------------------------------- > ValueError Traceback (most recent call last) > > /Users/evan/python/tools/fig_NEA_seas_paper_RAPID.py in <module>() > ----> 1 > 2 > 3 > 4 > 5 > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mlab.pyc > in load(fname, comments, delimiter, converters, skiprows, usecols, unpack, > dtype) > 1458 if usecols is not None: > 1459 vals = splitfunc(line) > -> 1460 row = [converterseq[j](vals[j]) for j in usecols] > 1461 else: > 1462 row = [converterseq[j](val) > > ValueError: invalid literal for float(): -99.00N > > > Is there any way around this, apart from editing all the data files to > remove every 'N'? Make use of the converters argument: mlab.load(..., converters={5:fix_func}) Where fix_func is a function that will convert the -99.0000N values to what you're looking for. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
Hello, Is it possible to autoscale the color map of an image (as in matlab's 'imagesc')? I'm using imshow and I can use vmin and vmax but than I have to set these values manually. Thanks, Sahar ******************************************************************************************************* This e-mail message may contain confidential,and privileged information or data that constitute proprietary information of CMT Medical Ltd. Any review or distribution by others is strictly prohibited. If you are not the intended recipient you are hereby notified that any use of this information or data by any other person is absolutely prohibited. If you are not the intended recipient, please delete all copies. Thank You. http://www.cmt.co.il ******************************************************************************************************** ************************************************************************************ This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. ************************************************************************************
Hi, I want to use mlab.load to load in some data: 1) 2004年02月27日 21:51:00 1 2553.51 2553.51 -99.0000N 3.217 2) 2004年02月27日 22:01:00 2 2553.47 2553.47 -99.0000N 3.217 3) 2004年02月27日 22:10:59 3 2553.45 2553.45 -99.0000N 3.218 4) 2004年02月27日 22:20:59 4 2553.46 2553.46 -99.0000N 3.223 unfortunately missing values are given as -99.000N, and these cause the following error: In [98]: mlab.load(site_file,skiprows=29,usecols=[4]) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /Users/evan/python/tools/fig_NEA_seas_paper_RAPID.py in <module>() ----> 1 2 3 4 5 /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mlab.pyc in load(fname, comments, delimiter, converters, skiprows, usecols, unpack, dtype) 1458 if usecols is not None: 1459 vals = splitfunc(line) -> 1460 row = [converterseq[j](vals[j]) for j in usecols] 1461 else: 1462 row = [converterseq[j](val) ValueError: invalid literal for float(): -99.00N Is there any way around this, apart from editing all the data files to remove every 'N'? Many thanks, Evan