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
(21) |
3
(21) |
4
(14) |
5
(8) |
6
(12) |
7
(16) |
8
(27) |
9
(39) |
10
(19) |
11
(12) |
12
(3) |
13
(3) |
14
(18) |
15
(14) |
16
(6) |
17
(7) |
18
(19) |
19
(5) |
20
(8) |
21
(24) |
22
(42) |
23
(12) |
24
(11) |
25
(16) |
26
(2) |
27
(4) |
28
(10) |
|
|
|
|
|
That's right. python setup.py build seems to execute without a problem (though there were some warnings). But then I get an architecture issue. -gideon On Feb 22, 2011, at 4:54 PM, Darren Dale wrote: > On Tue, Feb 22, 2011 at 4:21 PM, Gideon Simpson > <si...@ma...> wrote: >> Here's the ouput I got: >> >> Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) >> [GCC 4.2.1 (Apple Inc. build 5664)] on darwin >> Type "help", "copyright", "credits" or "license" for more information. >>>>> import pylab >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py", line 1, in <module> >> from matplotlib.pylab import * >> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py", line 220, in <module> >> from matplotlib import mpl # pulls in most modules >> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl.py", line 1, in <module> >> from matplotlib import artist >> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/artist.py", line 6, in <module> >> from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath >> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/transforms.py", line 34, in <module> >> from matplotlib._path import affine_transform >> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so, 2): no suitable image found. Did find: >> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so: mach-o, but wrong architecture > > So the build went ok then? Or is this the 32-bit matplotlib installer > with a 64-bit python?
Gideon Simpson, on 2011年02月22日 16:21, wrote: > Here's the ouput I got: > > Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import pylab > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py", line 1, in <module> > from matplotlib.pylab import * > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py", line 220, in <module> > from matplotlib import mpl # pulls in most modules > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl.py", line 1, in <module> > from matplotlib import artist > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/artist.py", line 6, in <module> > from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/transforms.py", line 34, in <module> > from matplotlib._path import affine_transform > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so, 2): no suitable image found. Did find: > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so: mach-o, but wrong architecture Hi Gideon, this looks identical to http://old.nabble.com/-matplotlib-problem-td30888849.html The poster there solved the problem by using a 32 bit version of python. If that's not an option for you, please provide a more detailed description of the problems you run into building matplotlib for your 64-bit python. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
On Tue, Feb 22, 2011 at 4:21 PM, Gideon Simpson <si...@ma...> wrote: > Here's the ouput I got: > > Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> import pylab > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py", line 1, in <module> > from matplotlib.pylab import * > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py", line 220, in <module> > from matplotlib import mpl # pulls in most modules > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl.py", line 1, in <module> > from matplotlib import artist > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/artist.py", line 6, in <module> > from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath > File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/transforms.py", line 34, in <module> > from matplotlib._path import affine_transform > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so, 2): no suitable image found. Did find: > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so: mach-o, but wrong architecture So the build went ok then? Or is this the 32-bit matplotlib installer with a 64-bit python?
Matthias Wong, on 2011年02月17日 20:56, wrote: > Hi all, > > It's exactly as said. I am using OS 10.6 > > If I use ipython -pylab and later try to plot anything, the GUI for plotting launches and I just get a beachball. > > However, if I do ipython and then import plot, I can do a plot with no problem. > > I did a search but came up with nothing. I have this problem whether I use apple python or the python2.7 downloaded from python.org. > > I am new to the whole terminal/programming thing. As you can imagine, everything is very difficult. Any help is appreciated Hi Matthias, can you post the results of running the following: import matplotlib import IPython print matplotlib.get_backend() print matplotlib.__version__ print IPython.__version__ If you are trying IPython 0.11, this is a known issue as of 3 months ago [1]. There were also similar issues reported with using GTK [2], which I believe were addressed in [3], and are waiting to be merged. 1. https://github.com/ipython/ipython/issues/#issue/202 2. https://github.com/ipython/ipython/issues/#issue/185 3. https://github.com/ipython/ipython/pull/237 best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
On Tue, Feb 22, 2011 at 3:31 PM, Patton Bradford <pat...@at...>wrote: > Trying to get the referenced example from the mplot3d example web page > working with Python 2.6.1 on Windows XP. Naturally, the line: > > ax = fig.add_subplot(2, 1, 2, projection='3d') > > fails since '3d' is not a recognized projection. Now, if I want to just > plot the 3d, the solution that works seems to be: > fig = plt.figure() > ax = Axes3D(fig) > <snip> > surf = ax.plot_surface(<snip>) > > However, I can't seem to find a way to create the one figure, add the 2D > subplot and then the 3D subplot. > > Any suggestions? > > Thanks in advance. > > That was a feature added in matplotlib 1.0.0. You will need to upgrade your version of matplotlib to perform that example. Ben Root
Trying to get the referenced example from the mplot3d example web page working with Python 2.6.1 on Windows XP. Naturally, the line: ax = fig.add_subplot(2, 1, 2, projection='3d') fails since '3d' is not a recognized projection. Now, if I want to just plot the 3d, the solution that works seems to be: fig = plt.figure() ax = Axes3D(fig) <snip> surf = ax.plot_surface(<snip>) However, I can't seem to find a way to create the one figure, add the 2D subplot and then the 3D subplot. Any suggestions? Thanks in advance.
Here's the ouput I got: Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pylab Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py", line 1, in <module> from matplotlib.pylab import * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py", line 220, in <module> from matplotlib import mpl # pulls in most modules File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl.py", line 1, in <module> from matplotlib import artist File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/artist.py", line 6, in <module> from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/transforms.py", line 34, in <module> from matplotlib._path import affine_transform ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so, 2): no suitable image found. Did find: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so: mach-o, but wrong architecture -gideon On Feb 22, 2011, at 2:17 PM, Darren Dale wrote: > On Tue, Feb 22, 2011 at 1:35 PM, Gideon Simpson > <si...@ma...> wrote: >> Hi, I have OS X 10.6.6, Python 2.7.1 installed from the binary at python.org, and I am trying to get mpl 1.0.1 running. I have no problem with numpy/scipy, but I seem to be having 32 vs. 64 bit issues with mpl. I believe that the binaries online are only 32 bit, yet my installation is 64 bit. I have tried using the make.osx file, but this has not proved successful so far. In part, I am trying to avoid installing duplicate png/zlib/freetype/... libraries, which seem to be working fine at present. Has anyone successfully gotten this running from source? Alternatively, does anyone have 64 bit binaries? > > Maybe you could post some error messages or build output. > > I am using python-2.7, png/zlib/freetype installed from macports on OS > X 10.6, and I don't need to use make.osx. I just run python setup.py > build and it appears to work fine.
On Tue, Feb 22, 2011 at 2:17 PM, M.Rule <mru...@gm...> wrote: > Hello, I'm having trouble installing Matplotlib. Both easy_install and the > latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx > > any ideas ? > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > If you are on Ubuntu, you can do this easily with the following command: sudo apt-get build-dep python-matplotlib Then you can try building matplotlib. Ben Root
installed: libfreetype6-dev libpng12-dev python-tk libgtk2.0-dev everything seems good, just need to configure GUI backend now, thanks. On Tue, Feb 22, 2011 at 3:22 PM, Darren Dale <dsd...@gm...> wrote: > On Tue, Feb 22, 2011 at 3:17 PM, M.Rule <mru...@gm...> wrote: > > Hello, I'm having trouble installing Matplotlib. Both easy_install and > the > > latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx > > any ideas ? > > You are missing headers from a number of critical libraries. Try using > your package manager to install the development packages of the > libraries mentioned in the build report: > > freetype2: found, but unknown version (no pkg-config) > * WARNING: Could not find 'freetype2' headers in any > * of '/usr/local/include', '/usr/include', '.', > * '/usr/local/include/freetype2', > * '/usr/include/freetype2', './freetype2'. > > OPTIONAL BACKEND DEPENDENCIES > libpng: found, but unknown version (no pkg-config) > * Could not find 'libpng' headers in any of > * '/usr/local/include', '/usr/include', '.' > Tkinter: no > * TKAgg requires Tkinter > wxPython: 2.8.10.1 > * WxAgg extension not required for wxPython >= 2.8 > Gtk+: gtk+: 2.20.1, glib: 2.24.1, pygtk: 2.17.0, > pygobject: 2.21.1 > * Could not find Gtk+ headers in any of > * '/usr/local/include', '/usr/include', '.' >
On Tue, Feb 22, 2011 at 3:17 PM, M.Rule <mru...@gm...> wrote: > Hello, I'm having trouble installing Matplotlib. Both easy_install and the > latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx > any ideas ? You are missing headers from a number of critical libraries. Try using your package manager to install the development packages of the libraries mentioned in the build report: freetype2: found, but unknown version (no pkg-config) * WARNING: Could not find 'freetype2' headers in any * of '/usr/local/include', '/usr/include', '.', * '/usr/local/include/freetype2', * '/usr/include/freetype2', './freetype2'. OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) * Could not find 'libpng' headers in any of * '/usr/local/include', '/usr/include', '.' Tkinter: no * TKAgg requires Tkinter wxPython: 2.8.10.1 * WxAgg extension not required for wxPython >= 2.8 Gtk+: gtk+: 2.20.1, glib: 2.24.1, pygtk: 2.17.0, pygobject: 2.21.1 * Could not find Gtk+ headers in any of * '/usr/local/include', '/usr/include', '.'
Hello, I'm having trouble installing Matplotlib. Both easy_install and the latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx any ideas ?
Waléria Antunes David, on 2011年02月22日 16:17, wrote: > Hi Daniel, > > Yes, i tried import errorbar....i did this: import matplotlib.errobar , but > occurred an error: Exception Type: ImportError Exception Value: > > No module named errobar Hi Waléria, there was a typo in Daniel's reply. The function is called errorbar, not errobar. For the object-oriented interface, you can find it attached to an Axes instance, or call the corresponding convenience function from the pyplot interface. import matplotlib.pyplot as plt # object-oriented interface ax = plt.subplot(1,1,1) ax.errorbar? # pyplot (matlab-like) interface plt.errorbar? As Daniel pointed out, the question mark will pull up the docstring if you're using IPython, but if you aren't, you can always call python's help. help(plt.errorbar) which will print the docstring for you. hope that helps, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
On Tue, Feb 22, 2011 at 1:42 PM, Alan G Isaac <ai...@am...> wrote: > Am I overlooking tick format support for ``format``? > http://docs.python.org/library/functions.html#format > > If not, might it be added? > > Ordinarily I'd use FormatStrFormatter, but this time > I wanted percentages, so I had to (?) use FuncFormatter. > This was both surprising (because ``format`` is core > Python functionality) and confusing (because the docs > did not point out that the user-provided function must > take two arguments). > > Thanks, > Alan Isaac > > I second this. Given that the '%' approach to formatting will be deprecated in later releases of the 3.x series, it probably would be a good idea to start transitioning to the new approach. To start, I would like to see a note added to the FormatStrFormatter docs pointing to an example on how to use FuncFormatter to implement the new style formatter. Ben Root
Jason Stone, on 2011年02月18日 14:39, wrote: > Good afternoon all, > One last matplotlib question for the group for today. On one of my GUI > plots, I'm calling imshow on an array of data (to display it in the same way > MATLAB's imagesc command does). I'd like to add a second y-axis to the > right side of the plot that is completely dependent on the values on the > primary y-axis. Essentially, for each y-axis tick point, I'll put the > y-axis 'value' into a formula and then put the result on the second y-axis. > I did this in MATLAB by essentially overlaying a second set of axes over > the plot, but I haven't found the exact way to do it with matplotlib yet. > I've seen a few examples online, but they all use the second overlaid plot > to actually plot new data - I wouldn't be doing this. > Would I need to use the twinx (or twiny) function? > Are there examples of this on the web that I haven't found that somebody > could point me towards? Hi Jason, here's an example that does what you want, using e^x as the formula, change the paramter to fmtr to suit your needs: ax = plt.subplot(1,1,1) ax.plot(np.sin(np.linspace(0,np.pi))) ax2 = ax.twinx() ax2._sharey = ax # share both x and y fmtr = mpl.ticker.FuncFormatter(lambda x,pos: "%.2f"%np.exp(x)) ax2.yaxis.set_major_formatter(fmtr) plt.draw() best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
Am I overlooking tick format support for ``format``? http://docs.python.org/library/functions.html#format If not, might it be added? Ordinarily I'd use FormatStrFormatter, but this time I wanted percentages, so I had to (?) use FuncFormatter. This was both surprising (because ``format`` is core Python functionality) and confusing (because the docs did not point out that the user-provided function must take two arguments). Thanks, Alan Isaac
Hi Daniel, Yes, i tried import errorbar....i did this: import matplotlib.errobar , but occurred an error: Exception Type: ImportError Exception Value: No module named errobar Thanks, On Tue, Feb 22, 2011 at 3:59 PM, < mat...@li...> wrote: > Send Matplotlib-users mailing list submissions to > mat...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > or, via email, send a message with subject or body 'help' to > mat...@li... > > You can reach the person managing the list at > mat...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Matplotlib-users digest..." > > > Today's Topics: > > 1. Re: Histogram with single series - colour coding different > ranges? (Benjamin Root) > 2. Errorbar plot (Wal?ria Antunes David) > 3. Re: Errorbar plot (Daniel Mader) > 4. Re: Plotting large data sets with Pylab (Benjamin Root) > 5. errorbar plot (Wal?ria Antunes David) > 6. MacOSX backend bug (Dominique Orban) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: 2011年2月22日 10:12:54 -0600 > From: Benjamin Root <ben...@ou...> > Subject: Re: [Matplotlib-users] Histogram with single series - colour > coding different ranges? > To: Victor Hooi <vic...@ya...> > Cc: mat...@li... > Message-ID: > <AANLkTi=8_h...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > On Tue, Feb 15, 2011 at 11:07 PM, Victor Hooi <vic...@ya...> > wrote: > > > heya, > > > > Is there an easy way to colour-code a Matplotlib histogram with a single > > set of data? > > > > So for example, you'd have a bell-shaped histogram, and the middle 50% > > might be green, the regions 20% to the left and right of that might be > > yellow, and the 5% either side beyond that could be red. > > > > I couldn't seem to find anything in the Matplotlib options for this - any > > suggestions? > > > > Cheers, > > Victor > > > > > Sure, check out the following: > > import matplotlib.pyplot as plt > import numpy as np > > xs = np.arange(20) > ys = np.random.rand(20) > cs = (['y'] * round(0.25 * len(xs))) + (['g'] * round(0.5 * len(xs))) + > (['y'] * round(0.25 * len(xs))) > > plt.bar(xs, ys, color=cs) > plt.show() > > > Admittedly, this isn't using matplotlib's hist() function because it only > allows for one color per dataset. However, you can use numpy's histogram > function to get the bins and counts yourself, and then use bar() to make > the > bars. bar() will allow you to color the bars individually. > > I hope this helps! > Ben Root > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: 2011年2月22日 13:13:53 -0300 > From: Wal?ria Antunes David <wal...@gm...> > Subject: [Matplotlib-users] Errorbar plot > To: Matplotlib Users <mat...@li...> > Message-ID: > <AANLkTinNop0tGL-R0Cr4Box=TeXwzhW=xj+...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi all, > > I have this line about errorbar plot, but i need a errorbar this: > http://img14.imageshack.us/i/exampled.jpg/ (in blue) > > My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2, > marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos') > > Can you help me? > > Thanks, > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 3 > Date: 2011年2月22日 17:28:04 +0100 > From: Daniel Mader <dan...@go...> > Subject: Re: [Matplotlib-users] Errorbar plot > To: mat...@li... > Message-ID: > <AAN...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi Wal?ria, > > you should try to figure out the docstring help :) > > In a terminal (IDLE or IPython), just do > import matplotlib > matplotlib.errobar? > > This will show you extensive help on the command. > > You will also need to compare with the regular plot command: > matplotlib.plot? > > Best regards, > Daniel > > P.S. I cannot see what is wrong with your line. Change 'r' to 'b' and > the plot should be in blue. > > 2011年2月22日 Wal?ria Antunes David <wal...@gm...>: > > Hi all, > > > > I have this line about errorbar plot, but i need a errorbar this: > > http://img14.imageshack.us/i/exampled.jpg/ (in blue) > > > > My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, > elinewidth=2, > > marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos') > > > > Can you help me? > > > > Thanks, > > > > > ------------------------------------------------------------------------------ > > Index, Search & Analyze Logs and other IT data in Real-Time with Splunk > > Collect, index and harness all the fast moving IT data generated by your > > applications, servers and devices whether physical, virtual or in the > cloud. > > Deliver compliance at lower cost and gain new business insights. > > Free Software Download: http://p.sf.net/sfu/splunk-dev2dev > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > > > ------------------------------ > > Message: 4 > Date: 2011年2月22日 10:38:10 -0600 > From: Benjamin Root <ben...@ou...> > Subject: Re: [Matplotlib-users] Plotting large data sets with Pylab > To: bge...@ya... > Cc: Bruno George <bge...@gm...>, Matplotlib Users > <mat...@li...> > Message-ID: > <AANLkTimzPCUO=L7d...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > On Tue, Feb 22, 2011 at 10:30 AM, Bruno George <bge...@gm... > >wrote: > > > Dear Benjamin, > > > > Thanks for the observations. The speed wasn't as large of a concern as > > the Python's ability to plot the volume of data in Windows.. The Mac was > a > > MacBook Air laptop, 1.8GHz Intel dual core 64 bit processor while the > > Windows desk side machine using an AMD64 3200+ 2.1 GHz processor running > 32 > > bit Windows. Both machines have 2GB ram the Windows machine is using a > > Nvidia GeForce 6200 graphics card and the Mac is using Intel on board > > graphics. The hardware is fairly well matched by and large. > > > > Here's the error message from the PC: > > > > > > > ***************************************************************************************** > > > > Exception in Tkinter callback > > Traceback (most recent call last): > > File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__ > > return self.func(*args) > > File > > "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", > line > > 245, in resize > > self.show() > > File > > "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", > line > > 248, in draw > > FigureCanvasAgg.draw(self) > > File > "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py", > > line 394, in draw > > self.figure.draw(self.renderer) > > File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 55, in > > draw_wrapper > > draw(artist, renderer, *args, **kwargs) > > File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 798, in > > draw > > func(*args) > > File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 55, in > > draw_wrapper > > draw(artist, renderer, *args, **kwargs) > > File "C:\Python27\lib\site-packages\matplotlib\axes.py", line 1946, in > > draw > > a.draw(renderer) > > File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 55, in > > draw_wrapper > > draw(artist, renderer, *args, **kwargs) > > File "C:\Python27\lib\site-packages\matplotlib\lines.py", line 540, in > > draw > > drawFunc(renderer, gc, tpath, affine.frozen()) > > File "C:\Python27\lib\site-packages\matplotlib\lines.py", line 905, in > > _draw_lines > > self._lineFunc(renderer, gc, path, trans) > > File "C:\Python27\lib\site-packages\matplotlib\lines.py", line 986, in > > _draw_solid > > renderer.draw_path(gc, path, trans) > > File > "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py", > > line 117, in draw_path > > self._renderer.draw_path(gc, path, transform, rgbFace) > > OverflowError: Agg rendering complexity exceeded. Consider downsampling > or > > decimating your data > > > > *********************************************************************** > > Thanks for looking into my problem, > > > > Bruno George > > > > > Bruno, > > First, as a side note, even though your Windows machine is a 64-bit > machine, > the fact is that you are running a 32-bit Windows, which will limit the > amount of memory any one process can use. > > As for your error message, I believe that is actually something slightly > different than what I originally thought. Have you tried dealing with > path.simplfy? Which version of matplotlib are you running? > > Ben Root > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 5 > Date: 2011年2月22日 15:55:42 -0300 > From: Wal?ria Antunes David <wal...@gm...> > Subject: [Matplotlib-users] errorbar plot > To: Matplotlib Users <mat...@li...> > Message-ID: > <AAN...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi all, > > I have this line about errorbar plot, but i need a errorbar this: > http://img14.imageshack.us/i/exampled.jpg/ (in blue) > > My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2, > marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos') > > Can you help me? > > Thanks, > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 6 > Date: 2011年2月22日 13:48:53 -0500 > From: Dominique Orban <dom...@gm...> > Subject: [Matplotlib-users] MacOSX backend bug > To: mat...@li... > Message-ID: > <AANLkTikuVotGK=1g3PmhOdfn=rPcFD=XFM...@ma...> > Content-Type: text/plain; charset="utf-8" > > Hi there, > > $ uname -a > Darwin nazgul.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 > 18:13:17 PST 2010; root:xnu-1504年9月26日~3/RELEASE_I386 i386 > $ python -c 'import matplotlib ; print matplotlib.__version__' > 1.0.1 > > I installed Matplotlib from Pypi. > > I'm having two problems with the MacOSX backend: > > 1) Plot windows systematically appear *behind* any other window. This > makes it difficult to find them. > > 2) I can't type anything in the save dialog box. The cursor blinks in > the text box, but any typing goes to the terminal. This is the same I > believe as > http://old.nabble.com/save-dialogue-in-macosx-bug-p27966555.html > > I attach a screenshot to explain more clearly what's happening. Typing > 'filename' in the save dialog box results in 'filename' being > displayed in the terminal window, where the red arrow points to. > > This seems to be related to the MacOSX backend as switching to TkAgg > resolves #2 (#1 still happens). > > Any ideas? > > -- > Dominique > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: Screen shot 2011年02月22日 at 1.35.41 PM.png > Type: image/png > Size: 56951 bytes > Desc: not available > > ------------------------------ > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > > ------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > End of Matplotlib-users Digest, Vol 57, Issue 70 > ************************************************ >
Hi, I have OS X 10.6.6, Python 2.7.1 installed from the binary at python.org, and I am trying to get mpl 1.0.1 running. I have no problem with numpy/scipy, but I seem to be having 32 vs. 64 bit issues with mpl. I believe that the binaries online are only 32 bit, yet my installation is 64 bit. I have tried using the make.osx file, but this has not proved successful so far. In part, I am trying to avoid installing duplicate png/zlib/freetype/... libraries, which seem to be working fine at present. Has anyone successfully gotten this running from source? Alternatively, does anyone have 64 bit binaries? -gideon
Hi there, $ uname -a Darwin nazgul.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504年9月26日~3/RELEASE_I386 i386 $ python -c 'import matplotlib ; print matplotlib.__version__' 1.0.1 I installed Matplotlib from Pypi. I'm having two problems with the MacOSX backend: 1) Plot windows systematically appear *behind* any other window. This makes it difficult to find them. 2) I can't type anything in the save dialog box. The cursor blinks in the text box, but any typing goes to the terminal. This is the same I believe as http://old.nabble.com/save-dialogue-in-macosx-bug-p27966555.html I attach a screenshot to explain more clearly what's happening. Typing 'filename' in the save dialog box results in 'filename' being displayed in the terminal window, where the red arrow points to. This seems to be related to the MacOSX backend as switching to TkAgg resolves #2 (#1 still happens). Any ideas? -- Dominique
Hi all, I have this line about errorbar plot, but i need a errorbar this: http://img14.imageshack.us/i/exampled.jpg/ (in blue) My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2, marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos') Can you help me? Thanks,
On Tue, Feb 22, 2011 at 10:30 AM, Bruno George <bge...@gm...>wrote: > Dear Benjamin, > > Thanks for the observations. The speed wasn't as large of a concern as > the Python's ability to plot the volume of data in Windows.. The Mac was a > MacBook Air laptop, 1.8GHz Intel dual core 64 bit processor while the > Windows desk side machine using an AMD64 3200+ 2.1 GHz processor running 32 > bit Windows. Both machines have 2GB ram the Windows machine is using a > Nvidia GeForce 6200 graphics card and the Mac is using Intel on board > graphics. The hardware is fairly well matched by and large. > > Here's the error message from the PC: > > > ***************************************************************************************** > > Exception in Tkinter callback > Traceback (most recent call last): > File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__ > return self.func(*args) > File > "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line > 245, in resize > self.show() > File > "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line > 248, in draw > FigureCanvasAgg.draw(self) > File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py", > line 394, in draw > self.figure.draw(self.renderer) > File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 55, in > draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 798, in > draw > func(*args) > File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 55, in > draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "C:\Python27\lib\site-packages\matplotlib\axes.py", line 1946, in > draw > a.draw(renderer) > File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 55, in > draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "C:\Python27\lib\site-packages\matplotlib\lines.py", line 540, in > draw > drawFunc(renderer, gc, tpath, affine.frozen()) > File "C:\Python27\lib\site-packages\matplotlib\lines.py", line 905, in > _draw_lines > self._lineFunc(renderer, gc, path, trans) > File "C:\Python27\lib\site-packages\matplotlib\lines.py", line 986, in > _draw_solid > renderer.draw_path(gc, path, trans) > File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py", > line 117, in draw_path > self._renderer.draw_path(gc, path, transform, rgbFace) > OverflowError: Agg rendering complexity exceeded. Consider downsampling or > decimating your data > > *********************************************************************** > Thanks for looking into my problem, > > Bruno George > > Bruno, First, as a side note, even though your Windows machine is a 64-bit machine, the fact is that you are running a 32-bit Windows, which will limit the amount of memory any one process can use. As for your error message, I believe that is actually something slightly different than what I originally thought. Have you tried dealing with path.simplfy? Which version of matplotlib are you running? Ben Root
Hi Waléria, you should try to figure out the docstring help :) In a terminal (IDLE or IPython), just do import matplotlib matplotlib.errobar? This will show you extensive help on the command. You will also need to compare with the regular plot command: matplotlib.plot? Best regards, Daniel P.S. I cannot see what is wrong with your line. Change 'r' to 'b' and the plot should be in blue. 2011年2月22日 Waléria Antunes David <wal...@gm...>: > Hi all, > > I have this line about errorbar plot, but i need a errorbar this: > http://img14.imageshack.us/i/exampled.jpg/ (in blue) > > My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2, > marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos') > > Can you help me? > > Thanks, > > ------------------------------------------------------------------------------ > Index, Search & Analyze Logs and other IT data in Real-Time with Splunk > Collect, index and harness all the fast moving IT data generated by your > applications, servers and devices whether physical, virtual or in the cloud. > Deliver compliance at lower cost and gain new business insights. > Free Software Download: http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Hi all, I have this line about errorbar plot, but i need a errorbar this: http://img14.imageshack.us/i/exampled.jpg/ (in blue) My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2, marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos') Can you help me? Thanks,
On Tue, Feb 15, 2011 at 11:07 PM, Victor Hooi <vic...@ya...> wrote: > heya, > > Is there an easy way to colour-code a Matplotlib histogram with a single > set of data? > > So for example, you'd have a bell-shaped histogram, and the middle 50% > might be green, the regions 20% to the left and right of that might be > yellow, and the 5% either side beyond that could be red. > > I couldn't seem to find anything in the Matplotlib options for this - any > suggestions? > > Cheers, > Victor > > Sure, check out the following: import matplotlib.pyplot as plt import numpy as np xs = np.arange(20) ys = np.random.rand(20) cs = (['y'] * round(0.25 * len(xs))) + (['g'] * round(0.5 * len(xs))) + (['y'] * round(0.25 * len(xs))) plt.bar(xs, ys, color=cs) plt.show() Admittedly, this isn't using matplotlib's hist() function because it only allows for one color per dataset. However, you can use numpy's histogram function to get the bins and counts yourself, and then use bar() to make the bars. bar() will allow you to color the bars individually. I hope this helps! Ben Root
On Sun, Feb 20, 2011 at 9:22 PM, Bruno George <bge...@gm...>wrote: > Both Python 2.6 and Python 2.7 Windows and Mac > > I've been running a very simple plotting script with Mac OSX 10.5.8 and > Windows XP Professional Version 2002, Service Pack 3 using a large, > 10,000,000 element .csv file. I ran both scripts locally with the data in > the same local directory as the script. > > The Python version on the Mac is: > Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) > [GCC 4.0.1 (Apple Inc. build 5493)] on darwin > Type "copyright", "credits" or "license()" for more information. > > **************************************************************** > Personal firewall software may warn about the connection IDLE > makes to its subprocess using this computer's internal loopback > interface. This connection is not visible on any external > interface and no data is sent to or received from the Internet. > **************************************************************** > > IDLE 2.6.6 > >>> ================================ RESTART > ================================ > >>> > Now its: Sun Feb 20 17:18:10 2011 > 1298251090.64 > slorping > It took 414.0 seconds to slorp in an array containing 10000000 elements. > > on Windows: > > Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit > (Intel)] on win32 > Type "copyright", "credits" or "license()" for more information. > > **************************************************************** > Personal firewall software may warn about the connection IDLE > makes to its subprocess using this computer's internal loopback > interface. This connection is not visible on any external > interface and no data is sent to or received from the Internet. > **************************************************************** > > IDLE 2.6.6 > >>> ================================ RESTART > ================================ > >>> > Now its: Sun Feb 20 18:25:41 2011 > 1298255141.56 > slorping > It took 169.0 seconds to slorp in an array containing 10000000 elements. > > Now its: Sun Feb 20 18:28:30 2011 > > ************************************************ > > The script and the data are identical: > > > import time as ti > > from math import radians > > from pylab import plot, show > > > from numpy import loadtxt, ravel , shape > > ##################################################### > ###Timekeeping Stuff################################# > ##################################################### > > print 'Now its: ',ti.asctime() > > clockA = ti.time() > print clockA > > > ##################################################### > ###One Big Huge Flat Array########################### > ##################################################### > column = 0 > > x = () > raw = () > normal = () > checker = () > trigger = () > > print 'slorping' > > raw = loadtxt('DataLogger.csv', float, delimiter = 'n,') > x = ravel(raw) > ##normal = (x+.5807)*(2/3.) > > ################################################### > ###Just fun timing stuff############################ > ################################################### > > clockS = ti.time() > s = shape(x) > print 'It took',round(clockS-clockA), 'seconds to slorp in an array > containing',s[0], 'elements.' > print "" > print 'Now its: ',ti.asctime() > > > plot(x, 'k') > show() > > > ********************************************************************************* > > This script will plot consistently on the Mac and crashes every time on the > PC. I'm data logging at 100MZ and the card is on the PC desk side machine. > My Macbook Air doesn't have a PCI slot. I developed all of the scripts on > the Mac using data logged on the PC. I was hoping to integrate everything > onto the PC for efficiency. Is there a workaround I can use on the PC? > > Thanks, > > Bruno George > > The performance issue for reading those data files will be largely dependent on how fast the harddrives are on the machines. The crashing issue is likely due to Windows XP's memory allocation mechanism or running into the memory barrier for 32-bit machines. Is your Mac a 64-bit machine? If it is, then it is likely that getting a 64-bit Windows machine would address the crashing issue. To be sure, I would watch the memory usage of those scripts to see how high it gets. Ben Root
On Thu, Feb 17, 2011 at 3:56 AM, Matthias Wong <ark...@gm...> wrote: > Hi all, > > It's exactly as said. I am using OS 10.6 > > If I use ipython -pylab and later try to plot anything, the GUI for > plotting launches and I just get a beachball. > > However, if I do ipython and then import plot, I can do a plot with no > problem. > > I did a search but came up with nothing. I have this problem whether I use > apple python or the python2.7 downloaded from python.org. > > I am new to the whole terminal/programming thing. As you can imagine, > everything is very difficult. Any help is appreciated > > God bless, > Matthias > Most likely, ipython is trying to import a different (broken?) version of matplotlib than what python finds automatically. I would try re-installing ipython. Ben Root