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) |
|
On Sat, Jul 11, 2009 at 9:05 AM, John Hunter <jd...@gm...> wrote: > > It looks like there is an incompatibility with the freetype supplied > in /sw (probably fink supplied). Perhaps it is not configured as a > universal binary. > > You can build mpl from svn the way we do when we make a release, which > will automatically fetch and build the dependencies correctly. First > see, > > > http://matplotlib.sourceforge.net/faq/installing_faq.html#which-python-for-osx > > then grab a copy of mpl from svn > > http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn > > and cd into the releases/osx directory and follow the instructions in > the README there. > Hi, I get the same errors when I follow those instructions. I have a very new 17" MacBook Pro running 10.5.7. I've installed the Enthought Python Distribution. These commands worked correctly: unset PKG_CONFIG_PATH make fetch_deps cd bdist_mpkg-0.4.3 sudo python setup.py install cd .. make dependencies cd ../.. python setup.py sdist mv dist/matplotlib-0.98.6svn.tar.gz release/osx/ cd release/osx I then edit the Makefile and change MPLVERSION=0.98.5.3 to MPLVERSION=0.98.6svn but the next command, make installers produces the error: ... < blah blah untarring > ... ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.6svn python: 2.5.4 |EPD_Py25 4.3.0| (r254:67916, May 17 2009, 20:07:12) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.3.0 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: 67737, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.7.1 * WxAgg extension not required for wxPython >= 2.8 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide adding pytz OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no [Edit setup.cfg to suppress the above messages] ============================================================================ pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', ' matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] running bdist_mpkg installing to build/bdist.macosx-10.3-fat/mpkg running build running build_py creating build creating build/lib.macosx-10.3-fat-2.5 copying lib/pylab.py -> build/lib.macosx-10.3-fat-2.5 creating build/lib.macosx-10.3-fat-2.5/matplotlib ... < blah blah, copying > ... creating build/temp.macosx-10.3-fat-2.5/CXX gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3 -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33 -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c src/ft2font.cpp -o build/temp.macosx-10.3-fat-2.5/src/ft2font.o gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3 -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33 -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c src/mplutils.cpp -o build/temp.macosx-10.3-fat-2.5/src/mplutils.o gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3 -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33 -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c CXX/cxx_extensions.cxx -o build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3 -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33 -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c CXX/cxxsupport.cxx -o build/temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3 -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33 -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c CXX/IndirectPythonInterface.cxx -o build/temp.macosx-10.3-fat-2.5/CXX/IndirectPythonInterface.o gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3 -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33 -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c CXX/cxxextensions.c -o build/temp.macosx-10.3-fat-2.5/CXX/cxxextensions.o g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/4.3.0/lib -bundle -undefined dynamic_lookup -arch ppc -arch i386 -L/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3 -L/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33 -L/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7 -Os -arch ppc -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3 -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33 -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include build/temp.macosx-10.3-fat-2.5/src/ft2font.o build/temp.macosx-10.3-fat-2.5/src/mplutils.o build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o build/temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o build/temp.macosx-10.3-fat-2.5/CXX/IndirectPythonInterface.o build/temp.macosx-10.3-fat-2.5/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib -lfreetype -lz -lstdc++ -lm -o build/lib.macosx-10.3-fat-2.5/matplotlib/ft2font.so ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/4.3.0/lib/libz.dylib, file is not of required architecture ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib, missing required architecture ppc in file ld: in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/4.3.0/lib/libz.1.dylib, file is not of required architecture for architecture ppc collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/mr/mrDdnQgUEQWRcRe-wF1uFE+++TI/-Tmp-//ccvdMAI3.out (No such file or directory) error: command 'g++' failed with exit status 1 make: *** [installers] Error 1 It appears that I have no idea how the OS X build system works, because I'm quite surprised by all of the seeming references to 10.3 and 10.4, given that I'm running 10.5. I'd be quite happy to provide further information. I'm happy with the stock matplotlib on my system, but I'd like to get this working so I can submit my tiny patch to acorr/xcorr. Thanks, -michael > JDH > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to 100,000ドル in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Lerner, Ph.D. IRTA Postdoctoral Fellow Laboratory of Computational Biology NIH/NHLBI 5635 Fishers Lane, Room T909, MSC 9314 Rockville, MD 20852 (UPS/FedEx/Reality) Bethesda MD 20892-9314 (USPS)
thanks a lot! Johann John Hunter wrote: > On Sat, Jul 11, 2009 at 1:15 PM, Eric Firing<ef...@ha...> wrote: > >> John Hunter wrote: >> >>> On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi<co...@lp...> >>> wrote: >>> >>>> Hello, how can I center axis tick labels, so that the labels ends up at >>>> the center between 2 ticks. >>>> >>>> >>> There is no support for this, though you can left or right align a >>> label with a single tick:: >>> >>> for label in ax.xaxis.get_xticklabels(): >>> label.set_horizontalalignment('right') >>> >>> JDH >>> >> Labels for intervals rather than ticks would be nice to have; this is >> commonly used for labeling months or years, for example. I don't have time >> to work on it now, unfortunately. >> >> The best way to fake it with present facilities might be to use no labels on >> the major ticks, place minor ticks half-way between the majors, set their >> lengths to zero, and label them. >> > > > Nice idea, just committed this example to svn as > examples/pylab_examples/centered_ticklabels.py > > import datetime > import numpy as np > import matplotlib > import matplotlib.dates as dates > import matplotlib.ticker as ticker > import matplotlib.pyplot as plt > > # load some financial data; apple's stock price > fh = matplotlib.get_example_data('aapl.npy') > r = np.load(fh); fh.close() > r = r[-250:] # get the last 250 days > > fig = plt.figure() > ax = fig.add_subplot(111) > ax.plot(r.date, r.adj_close) > > ax.xaxis.set_major_locator(dates.MonthLocator()) > ax.xaxis.set_minor_locator(dates.MonthLocator(bymonthday=15)) > > ax.xaxis.set_major_formatter(ticker.NullFormatter()) > ax.xaxis.set_minor_formatter(dates.DateFormatter('%b')) > > for tick in ax.xaxis.get_minor_ticks(): > tick.tick1line.set_markersize(0) > tick.tick2line.set_markersize(0) > tick.label1.set_horizontalalignment('center') > > imid = len(r)/2 > ax.set_xlabel(str(r.date[imid].year)) > plt.show() >
On Sat, Jul 11, 2009 at 1:15 PM, Eric Firing<ef...@ha...> wrote: > John Hunter wrote: >> >> On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi<co...@lp...> >> wrote: >>> >>> Hello, how can I center axis tick labels, so that the labels ends up at >>> the center between 2 ticks. >>> >> >> There is no support for this, though you can left or right align a >> label with a single tick:: >> >> for label in ax.xaxis.get_xticklabels(): >> label.set_horizontalalignment('right') >> >> JDH > > Labels for intervals rather than ticks would be nice to have; this is > commonly used for labeling months or years, for example. I don't have time > to work on it now, unfortunately. > > The best way to fake it with present facilities might be to use no labels on > the major ticks, place minor ticks half-way between the majors, set their > lengths to zero, and label them. Nice idea, just committed this example to svn as examples/pylab_examples/centered_ticklabels.py import datetime import numpy as np import matplotlib import matplotlib.dates as dates import matplotlib.ticker as ticker import matplotlib.pyplot as plt # load some financial data; apple's stock price fh = matplotlib.get_example_data('aapl.npy') r = np.load(fh); fh.close() r = r[-250:] # get the last 250 days fig = plt.figure() ax = fig.add_subplot(111) ax.plot(r.date, r.adj_close) ax.xaxis.set_major_locator(dates.MonthLocator()) ax.xaxis.set_minor_locator(dates.MonthLocator(bymonthday=15)) ax.xaxis.set_major_formatter(ticker.NullFormatter()) ax.xaxis.set_minor_formatter(dates.DateFormatter('%b')) for tick in ax.xaxis.get_minor_ticks(): tick.tick1line.set_markersize(0) tick.tick2line.set_markersize(0) tick.label1.set_horizontalalignment('center') imid = len(r)/2 ax.set_xlabel(str(r.date[imid].year)) plt.show()
Jae-Joon and John, thank you for your help. Just a few minutes before I read your emails I found a thread in the archives (from a few months back) where Jae-Joon anwered exactly the same question. http://www.nabble.com/legend-bug--td22466216.html#a22466216 Sorry, that I overlooked that last time searched in the archives. 'Scatterpoints=1' did what I needed. Thanks again for your thelp. Cheers OIiver Jae-Joon Lee <lee...@gm...> wrote on 11.07.2009 16:42:29: > From: > > Jae-Joon Lee <lee...@gm...> > > To: > > John Hunter <jd...@gm...> > > Cc: > > Oliver Tomic <oli...@no...>, mat...@li... > > Date: > > 11.07.2009 16:47 > > Subject: > > Re: [Matplotlib-users] problems with numpoints in legend > > The number of points in scatter plot has other keyword argument > (scatterpoints). This is true for svn version, but I'm not quite sure > if it is also true for 0.98.5.2. > Anyhow, the documentation still needs to be updated. > > Regards, > > -JJ > > > On Sat, Jul 11, 2009 at 9:46 AM, John Hunter<jd...@gm...> wrote: > > On Mon, Jul 6, 2009 at 6:06 AM, Oliver Tomic<oli...@no...> wrote: > >> Hi, > >> > >> Windows XP > >> Python 2.5.2 > >> matplotlib 0.98.5.2 > >> > >> I try to use numpoints for a legend my plot, but without luck. I always end > >> up having three points in the legend despite setting numpoints=1 (see below > >> towards the end of the code). > >> Things work nicely though in a much simpler script. > >> > >> Help is greatly appreciated. > > > > When posting an example, it helps if we can run it:-) In this case, > > we would need your data files > > > > assC = np.loadtxt('Apples_flowerFlavour_assC_corrPlot.txt') > > all = np.loadtxt('Apples_flowerFlavour_allAssessors_corrPlot.txt') > > > > JDH > > > > > ------------------------------------------------------------------------------ > > Enter the BlackBerry Developer Challenge > > This is your chance to win up to 100,000ドル in prizes! For a limited time, > > vendors submitting new applications to BlackBerry App World(TM) will have > > the opportunity to enter the BlackBerry Developer Challenge. See full prize > > details at: http://p.sf.net/sfu/Challenge > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to 100,000ドル in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
John Hunter wrote: > On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi<co...@lp...> wrote: >> Hello, how can I center axis tick labels, so that the labels ends up at >> the center between 2 ticks. >> > > There is no support for this, though you can left or right align a > label with a single tick:: > > for label in ax.xaxis.get_xticklabels(): > label.set_horizontalalignment('right') > > JDH Labels for intervals rather than ticks would be nice to have; this is commonly used for labeling months or years, for example. I don't have time to work on it now, unfortunately. The best way to fake it with present facilities might be to use no labels on the major ticks, place minor ticks half-way between the majors, set their lengths to zero, and label them. Eric
On Sat, Jul 11, 2009 at 9:55 AM, Eli Brosh<eb...@gm...> wrote: > Thanks John, > A kwarg fillstyle with options 'full|top|bottom|left|right' for any marker > is certainly better than what i have done. > I just did not have an idea how to program this kwarg. > Further, I can't see an easy way of generalizing the half-filling of > markers. > is there a better way than just programming each half-filled marker > separately ? > Perhaps if you can give me some hints, I can try to do the rest of the work. Sure, first take a look at the coding guide, in particular these two sections which introduce kwarg processing and documentation conventions. http://matplotlib.sourceforge.net/devel/coding_guide.html#keyword-argument-processing http://matplotlib.sourceforge.net/devel/coding_guide.html#documentation-and-docstrings Basically, any new "property", where I use quotes because mpl properties are not the same as python properties, needs a setter and getter. The setter must also have an ACCEPTS flag, which gives the acceptable arguments. mpl uses these in the setp and getp introspection facilities, as well as in the auto-table building of kwargs in the docs. The artist.ArtistInspector is used to insepct the functions and docs to extract the properties: http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.artist.ArtistInspector I've committed a patch to svn that implements the fillstyle property for Line2D, and implemented it for draw_square. The other filled markers raise a NotImplementedError if the fillstyle is not 'full', and that is where you come in. The basic implementation is to draw two half markers, one filled and one unfilled, and use the rotation property of the transformation to support the various left|right|bottom|top. Here is the reference implementation for draw_square:: def _draw_square(self, renderer, gc, path, path_trans): gc.set_snap(renderer.points_to_pixels(self._markersize) >= 2.0) side = renderer.points_to_pixels(self._markersize) transform = Affine2D().translate(-0.5, -0.5).scale(side) rgbFace = self._get_rgb_face() fs = self.get_fillstyle() if fs=='full': renderer.draw_markers(gc, Path.unit_rectangle(), transform, path, path_trans, rgbFace) else: # build a bottom filled square out of two rectangles, one # filled. Use the rotation to support left, right, bottom # or top if fs=='bottom': rotate = 0. elif fs=='top': rotate = 180. elif fs=='left': rotate = 270. else: rotate = 90. bottom = Path([[0.0, 0.0], [1.0, 0.0], [1.0, 0.5], [0.0, 0.5], [0.0, 0.0]]) top = Path([[0.0, 0.5], [1.0, 0.5], [1.0, 1.0], [0.0, 1.0], [0.0, 0.05]]) transform = transform.rotate_deg(rotate) renderer.draw_markers(gc, bottom, transform, path, path_trans, rgbFace) renderer.draw_markers(gc, top, transform, path, path_trans, None) See examples/pylab_examples/fillstyle_demo.py in svn, and the attached patch (although this is already committed, it might be instructional so you can see the steps needed to add a new property). When you finish the others, send along an svn diff and some more examples in the fillstyle_demo and I'll commit it. Thanks! JDH
My version is 0.98.3 This is what comes with ubuntu intrepid. I will try to upgrade from svn. Eli On Sat, Jul 11, 2009 at 4:15 PM, John Hunter <jd...@gm...> wrote: > On Sat, Jul 11, 2009 at 6:06 AM, Eli Brosh<eb...@gm...> wrote: > > Hello, > > I encountered a problem when trying to draw a legend outside the axes. > > For some reason, when the legend is placed outside the axes, the markers > are > > not drawn near the labels. > > > > I attach two scripts and two corresponding figures. > > the only differences between the scripts is the location of the legend. > > When the legend is placed inside the axes, everything is OK. > > However, when the legend is outside the markers are gone. > > > > Is this a bug ? > > Is there a way around it ? > > I am not seeing this problem in mpl svn (what version are you using). > perhaps you can upgrade to svn? > > http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn > > JDH >
Thanks John, A kwarg fillstyle with options 'full|top|bottom|left|right' for any marker is certainly better than what i have done. I just did not have an idea how to program this kwarg. Further, I can't see an easy way of generalizing the half-filling of markers. is there a better way than just programming each half-filled marker separately ? Perhaps if you can give me some hints, I can try to do the rest of the work. Eli On Sat, Jul 11, 2009 at 4:28 PM, John Hunter <jd...@gm...> wrote: > On Sat, Jul 11, 2009 at 3:43 AM, Eli Brosh<eb...@gm...> wrote: > > Hello, > > A few weeks earlier I was asking whether it is possible to plot > half-filled > > markers in matplotlib. > > As I got no answers I tried to do it myself. > > There are several ways to do it. For example, I considered following the > > example in > > http://matplotlib.sourceforge.net/examples/api/scatter_piecharts.html > > but with the approach described there I could not reproduce the custom > > marker in the legend. > > > > The approach that did work was to modify the lines.py file in the > matplotlib > > folder. > > My version of the file is attached with several new markers added. > > > > The implementation is not very elegant but half-filled markers are quite > > useful when plotting lots of data. > > > > Does anyone have a better idea for the implementation of half-filled > markers > > in matplotlib ? > > This looks interesting, and the functionality is certainly nice, but > it looks like a brute force hammer approach when a scapel might be > preferable, For example, what if we introduce a new kwarg fillstyle > with options 'full|top|bottom|left|right' so *any* marker could be > half filled. This would result in both less code and more > functionality. If you are interested in tackling this, I'd be happy > to consider a patch. Please see > > http://matplotlib.sourceforge.net/faq/howto_faq.html#submit-a-patch > > JDH >
The number of points in scatter plot has other keyword argument (scatterpoints). This is true for svn version, but I'm not quite sure if it is also true for 0.98.5.2. Anyhow, the documentation still needs to be updated. Regards, -JJ On Sat, Jul 11, 2009 at 9:46 AM, John Hunter<jd...@gm...> wrote: > On Mon, Jul 6, 2009 at 6:06 AM, Oliver Tomic<oli...@no...> wrote: >> Hi, >> >> Windows XP >> Python 2.5.2 >> matplotlib 0.98.5.2 >> >> I try to use numpoints for a legend my plot, but without luck. I always end >> up having three points in the legend despite setting numpoints=1 (see below >> towards the end of the code). >> Things work nicely though in a much simpler script. >> >> Help is greatly appreciated. > > When posting an example, it helps if we can run it:-) In this case, > we would need your data files > > assC = np.loadtxt('Apples_flowerFlavour_assC_corrPlot.txt') > all = np.loadtxt('Apples_flowerFlavour_allAssessors_corrPlot.txt') > > JDH > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to 100,000ドル in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
On Mon, Jul 6, 2009 at 6:06 AM, Oliver Tomic<oli...@no...> wrote: > Hi, > > Windows XP > Python 2.5.2 > matplotlib 0.98.5.2 > > I try to use numpoints for a legend my plot, but without luck. I always end > up having three points in the legend despite setting numpoints=1 (see below > towards the end of the code). > Things work nicely though in a much simpler script. > > Help is greatly appreciated. When posting an example, it helps if we can run it:-) In this case, we would need your data files assC = np.loadtxt('Apples_flowerFlavour_assC_corrPlot.txt') all = np.loadtxt('Apples_flowerFlavour_allAssessors_corrPlot.txt') JDH
On Mon, Jul 6, 2009 at 9:35 PM, Christoph Gohlke<cg...@uc...> wrote: > Hi Steve, > > matplotlib-0.98.5.3.win32-py2.6.exe was compiled without support for GTK. > > If you don't mind trying, I have a build of the matplotlib trunk > available on my homepage that has GTK support enabled: > > http://www.lfd.uci.edu/~gohlke/#pythonlibs > > It should work with the PyGTK 2.12 Windows binaries from > http://www.pygtk.org/downloads.html. > > SVG support seems broken: the window.set_icon_from_file() function in > backend_gtk.py will raise an exception, not recognizing SVG files. The > PNG icon works. > Christoph: could you look into a patch that uses png for the icon for win32/gtk? Thanks, JDH
On Mon, Jul 6, 2009 at 5:45 PM, Michael Cohen<mc...@ca...> wrote: > Hi all, > I am trying to produce a weighted histogram. > The help text for "hist" here: > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.hist > has a mention of adding weights, but it is not noted in the command line > section where this should appear. > > Calling: > hist(data,20,data_weights) > > gives the error: > File > "/usr/local/python-2.5.2/lib/python2.5/site-packages/matplotlib/pyplot.py", > line 1868, in hist > ret = gca().hist(*args, **kwargs) > File > "/usr/local/python-2.5.2/lib/python2.5/site-packages/matplotlib/axes.py", > line 6236, in hist > normed=bool(normed), new=True) > File > "/usr/local/python-2.5.2/lib/python2.5/site-packages/numpy/lib/function_base.py", > line 353, in histogram > mn, mx = range > ValueError: too many values to unpack > > Calling: > hist(data,20,weights=data_weights) > > gives the error: > File > "/usr/local/python-2.5.2/lib/python2.5/site-packages/matplotlib/pyplot.py", > line 1868, in hist > ret = gca().hist(*args, **kwargs) > File > "/usr/local/python-2.5.2/lib/python2.5/site-packages/matplotlib/axes.py", > line 6371, in hist > p.update(kwargs) > File > "/usr/local/python-2.5.2/lib/python2.5/site-packages/matplotlib/artist.py", > line 453, in update > raise AttributeError('Unknown property %s'%k) > AttributeError: Unknown property weights > > There's no indication in the help text of where or how to insert the > weights array. The weights kwarg is not yet in the official release, only in svn. See http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn The site docs and examples generally track svn, so sometimes you see features that are not out yet. We will try and get a release out soon.... JDH
On Tue, Jul 7, 2009 at 1:26 PM, Nicolas Bigaouette<nbi...@gm...> wrote: > Hi, > > I compiled matplotlib svn revision 7246 yesterday to try the 3D stuff. > > From mpl's website, an example for 3D bar plotting is shown[1]. I just don't > understand the axes. From the code, shouldn't X values go from 0 to 20, > instead of 0 to 400 000 like shown on the graph? Where does these values for > the X and Z axes comes from (in the graph)? > > I'm trying my own 3D bar plot, with similar "weird" results. > > Could it be a bug? > > Thanx a lot. > > [1] http://matplotlib.sourceforge.net/examples/mplot3d/bars3d_demo.html This certainly looks like a bug, and I can replicate it on my end. Reinier, can you take a look? JDH
On Tue, Jul 7, 2009 at 4:06 PM, Joseph Smidt<jos...@gm...> wrote: > I have several plots where the scientific notation exponential > overflows to the top of the plot like this: > http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.html. > > Is there any way to add units to this? So that, if I wanted, the > units would show up in the overflow as: 1e8 m^3 , for meters cubed? > > Also, is there an easy way to add units to the numbers on the x or y > axis in general? Thanks. You can use a custom formatter, eg:: from matplotlib.ticker import FormatStrFormatter ax.xaxis.set_major_formatter(r'$%.4fm^3'$) # using mathtext for the m^3 exponent See http://matplotlib.sourceforge.net/api/ticker_api.html#matplotlib.ticker.FormatStrFormatter and some code examples http://matplotlib.sourceforge.net/search.html?q=codex+Formatter JDH
On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi<co...@lp...> wrote: > Hello, how can I center axis tick labels, so that the labels ends up at > the center between 2 ticks. > There is no support for this, though you can left or right align a label with a single tick:: for label in ax.xaxis.get_xticklabels(): label.set_horizontalalignment('right') JDH
On Sat, Jul 11, 2009 at 3:43 AM, Eli Brosh<eb...@gm...> wrote: > Hello, > A few weeks earlier I was asking whether it is possible to plot half-filled > markers in matplotlib. > As I got no answers I tried to do it myself. > There are several ways to do it. For example, I considered following the > example in > http://matplotlib.sourceforge.net/examples/api/scatter_piecharts.html > but with the approach described there I could not reproduce the custom > marker in the legend. > > The approach that did work was to modify the lines.py file in the matplotlib > folder. > My version of the file is attached with several new markers added. > > The implementation is not very elegant but half-filled markers are quite > useful when plotting lots of data. > > Does anyone have a better idea for the implementation of half-filled markers > in matplotlib ? This looks interesting, and the functionality is certainly nice, but it looks like a brute force hammer approach when a scapel might be preferable, For example, what if we introduce a new kwarg fillstyle with options 'full|top|bottom|left|right' so *any* marker could be half filled. This would result in both less code and more functionality. If you are interested in tackling this, I'd be happy to consider a patch. Please see http://matplotlib.sourceforge.net/faq/howto_faq.html#submit-a-patch JDH
2009年2月23日 Gregor Skrt <gre...@gm...>: > 1. Where can I find a good tutorial or set of examples for > embeding matplotlib in Tkinter ? > 2. Problem: I created a simple test with Tkinter. First I plot my > graph on __init__ (it works ok). Then I want to clear graph and > plot on the same canvas with different parameters. The thing is > that plot shows up only when I resize my window. Any idea what > could I be doing wrong ? I was trying draw method but it doasn't > work... > Have you seen the embedding_in_tk*.py examples at http://matplotlib.sourceforge.net/examples/user_interfaces/index.html JDH
On Tue, Jul 7, 2009 at 9:53 AM, Voichek<vo...@gm...> wrote: > > Hi everyone, > > I just installed matplotlib (after suffering from Numpy, Scipy, Atlas, > Lapack...), and I have this weird problem. > > When I plot the first time I have no problem, the plot comes out just fine > and the plot window is interactive. > After I close the plotting window and try to plot again I can see the graph > but the plot window doesn't response (not interactive). > > When I import pylab I get this warning: >>>> import pylab > > Warning (from warnings module): > File > "/home/yoavv/ActivePython-2.6_64/lib/python2.6/site-packages/pytz/tzinfo.py", > line 5 > from sets import Set > DeprecationWarning: the sets module is deprecated >>>> pylab.plot(range(100)) > [<matplotlib.lines.Line2D object at 0x2b921d0>] >>>> p = _ >>>> pylab.show() > >>>> pylab.plot(range(200)) > [<matplotlib.lines.Line2D object at 0x3113510>] > > - Here no response. > > I am using: > - ActivePython-2.6 > - matplotlib 0.98.5.3 > > I would appreciate any help, Take a look at http://matplotlib.sourceforge.net/users/shell.html After you have digested the ideas there and make sure your interactive and backend settings are proper for ActivePython, feel free to get back to us with more questions. Be sure to read the links "Customizing matplotlib" and "What is a backend" referred to from the page above. JDH
On Mon, Jul 6, 2009 at 10:35 AM, jcm52<joe...@gm...> wrote: > > Perhaps this is a new feature since you sent this request, but I just came > across > > pylab.suptitle('my super title') > > Seems to work fairly well, but the font sizes don't appear to behave as well > as I'd like. Just pass in the fontsize kwarg: pylab.suptitle('my super title', fontsize=14) JDH
On Tue, Jul 7, 2009 at 6:41 PM, Doug Penner<dar...@gm...> wrote: > so instead of doing > > plt.savefig("some/location.png") > > return HttpResponse("<html><body><img src='some/location.png' > /></body></html>") > > I could do > > return HttpResponse(plt.image_render('image/png'), mimetype="image/png") > > and not have to worry about deleting the image later (there are LOT that > get generated) You can save directly to a file handle (eg sys.stdout) so you need not go to a PNG file. Alternatively, you can write to a StringIO object. See the examples at http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-in-a-web-application-server And if you would be willing to complete the FAQ stub for Django http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-with-django That would be much appreciated. See http://matplotlib.sourceforge.net/faq/howto_faq.html#how-to-contribute-docs Thanks, JDH
On Sat, Jul 11, 2009 at 6:06 AM, Eli Brosh<eb...@gm...> wrote: > Hello, > I encountered a problem when trying to draw a legend outside the axes. > For some reason, when the legend is placed outside the axes, the markers are > not drawn near the labels. > > I attach two scripts and two corresponding figures. > the only differences between the scripts is the location of the legend. > When the legend is placed inside the axes, everything is OK. > However, when the legend is outside the markers are gone. > > Is this a bug ? > Is there a way around it ? I am not seeing this problem in mpl svn (what version are you using). perhaps you can upgrade to svn? http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn JDH
On Fri, Jul 10, 2009 at 5:46 AM, Pau<vim...@go...> wrote: > Hello, > > are there some relative/absolute limits in the plotting area? > > I would like to set some text (labels) in the plot automatically, so > that I do not need to recalculate everytime where they should go. > > I mean some kind of absolute X0, Y0, X1, Y1 , so that I know where to > place the labels in text in the plot area without having to look at > the particular values of the particular plot I am dealing with, in a > series of very similar plots. Specify the coordinates using the axes transform -- (0,0) is bottom left and (1,1) is top right ax = fig.add_subplot(111) ax.text(0.1, 0.9, 'this is a test', transform=ax.transAxes) See also the "annotate" command, which takes a variety of different coordinate systems: data, axes, figure.. http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.annotate http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html JDH
On Thu, Jul 9, 2009 at 4:13 PM, W.P. McNeill<bi...@gm...> wrote: > I am trying to install matplot on an OS X (10.5.7) Intel MacBook. I > cannot build the matplot lib extensions. I get the following error: > > .... > g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -bundle -undefined dynamic_lookup > build/temp.macosx-10.3-i386-2.5/src/ft2font.o > build/temp.macosx-10.3-i386-2.5/src/mplutils.o > build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o > build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o > build/temp.macosx-10.3-i386-2.5/CXX/IndirectPythonInterface.o > build/temp.macosx-10.3-i386-2.5/CXX/cxxextensions.o -L/sw/lib > -L/sw/lib/freetype219/lib -L/usr/local/lib -L/usr/lib -L/sw/lib > -L/usr/X11R6/lib -lfreetype -lz -lstdc++ -lm -o > build/lib.macosx-10.3-i386-2.5/matplotlib/ft2font.so > -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices > ld warning: in /sw/lib/libfreetype.dylib, file is not of required architecture > ld: in /sw/lib/libiconv.2.dylib, file is not of required architecture > for architecture ppc > collect2: ld returned 1 exit status > lipo: can't open input file: > /var/folders/xW/xW61KykkHgSaGc2vPwOTCk+++TI/-Tmp-//ccGEBvWb.out (No > such file or directory) > error: command 'g++' failed with exit status 1 It looks like there is an incompatibility with the freetype supplied in /sw (probably fink supplied). Perhaps it is not configured as a universal binary. You can build mpl from svn the way we do when we make a release, which will automatically fetch and build the dependencies correctly. First see, http://matplotlib.sourceforge.net/faq/installing_faq.html#which-python-for-osx then grab a copy of mpl from svn http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn and cd into the releases/osx directory and follow the instructions in the README there. JDH
On Thu, Jul 9, 2009 at 5:56 PM, Joseph Smidt<jos...@gm...> wrote: > Thank you! That did it. I thought I read the webpage you sent 10 > times, but didn't even notice. Thanks. > > On Thu, Jul 9, 2009 at 3:38 PM, Chaitanya Krishna<ic...@gm...> wrote: >> Hi, >> >> legend.draw_frame(False) should do the trick. Check out >> http://matplotlib.sourceforge.net/api/artist_api.html?highlight=draw_frame#matplotlib.legend.Legend.draw_frame I often set the alpha on the frame so it is translucent, which in some cases is preferable to turning the frame off entirely:: leg = ax.legend(fancybox=True) leg.get_frame().set_alpha(0.5) JDH
On Wed, Jul 8, 2009 at 3:49 PM, T J<tj...@gm...> wrote: > Are matplotlib backends pluggable? That is, can package X provide an > experimental backend and tell matplotlib to use it? If so, how? Yes, just point to your backend with the syntax: matplotlibrc:: backend : module://mybackend where mybackend is a module in your PYTHONPATH or in code:: import matplotlib matplotlib.use('module://mybackend') JDH