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
(4) |
2
(17) |
3
(9) |
4
(5) |
5
(5) |
6
(2) |
7
|
8
(7) |
9
(6) |
10
(1) |
11
(4) |
12
(12) |
13
(7) |
14
(1) |
15
|
16
|
17
(12) |
18
(11) |
19
(6) |
20
(6) |
21
(2) |
22
(5) |
23
(1) |
24
(4) |
25
(6) |
26
(3) |
27
(2) |
28
|
29
(2) |
30
(12) |
31
(8) |
|
|
|
From: Skip M. <sk...@po...> - 2013-07-11 21:04:39
|
> I have a small matplotlib app I wrote to plot columns of a CSV files. > The X axis is almost always time. Once displayed, I will often zoom in > on a small patch of a plot. I'm currently selecting the strftime > format based on the original time range of the input. As I zoom in, > however, that doesn't work so well.... > but when I use it in the obvious way, all I get is the current year > for all tick labels, despite the fact that the scaled attribute of the > formatter has keys which are much smaller than a year. I kind of got this working. I had to associate the locator with the X axis and call it's autoscale() method before calling plot.show(). Now I get %H:%M:%S formatting for everything, even when I'm zoomed way out on a data set containing two-days worth of time series data. I suppose I can fiddle with the AutoDateFormatter's scaled attribute, but the default looks like it ought to work. Any thoughts on what I'm (still) missing? The locator/formatter code looks like this: locator = matplotlib.dates.AutoDateLocator() formatter = matplotlib.dates.AutoDateFormatter(locator) ... left_plot = figure.add_subplot(111) left_plot.set_title(title) left_plot.set_axisbelow(True) left_plot.yaxis.set_major_formatter(pylab.FormatStrFormatter('%g')) ... locator.set_axis(left_plot.xaxis) left_plot.xaxis.set_major_formatter(formatter) locator.autoscale() pylab.show() This works fine except for the lack of dynamic scaling and apparently incorrect choice of labels on plots over large time scales. Skip |
From: psb1967 <ps...@ho...> - 2013-07-11 18:54:45
|
Hi Bill, Made an important move, after a log jam for quite some. I spent some time exploring *TA-LIB for python*. Today I tested plotting Bollinger bands, SMA, WMA etc on my 5 min. intraday hist. chart. It was not bad. The most important one, *Hull Moving Average (HMA)* which is back bone to my system needs to be written. I will start working on that one, now I don't need to worry any more about other aspects. :) Thanks once again to both of you. Regards Suresh -- View this message in context: http://matplotlib.1069221.n5.nabble.com/To-add-Bollinger-Bands-in-finance-work2-py-tp41310p41454.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Signell, R. <rsi...@us...> - 2013-07-11 14:03:49
|
http://scitools.org.uk/iris/docs/v1.0/examples/graphics/hovmoller.html On Thu, Jul 11, 2013 at 5:40 AM, Sudheer Joseph <sud...@ya...> wrote: > Dear All, > Is there a straight forward way to get > Hovemuller diagram or longitude/latitude vs time plot using matplotlib. > If possible please send me some examples if any one know it existing in > web > > with best regards, > Sudheer > > *************************************************************** > Sudheer Joseph > Indian National Centre for Ocean Information Services > Ministry of Earth Sciences, Govt. of India > POST BOX NO: 21, IDA Jeedeemetla P.O. > Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 > Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), > Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) > E-mail:sjo...@gm...;sud...@ya... > Web- http://oppamthadathil.tripod.com > *************************************************************** > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Dr. Richard P. Signell (508) 457-2229 USGS, 384 Woods Hole Rd. Woods Hole, MA 02543-1598 |
From: Sudheer J. <sud...@ya...> - 2013-07-11 09:40:34
|
Dear All, Is there a straight forward way to get Hovemuller diagram or longitude/latitude vs time plot using matplotlib. If possible please send me some examples if any one know it existing in web with best regards, Sudheer *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo...@gm...;sud...@ya... Web- http://oppamthadathil.tripod.com *************************************************************** |
From: Skip M. <sk...@po...> - 2013-07-10 19:40:21
|
I have a small matplotlib app I wrote to plot columns of a CSV files. The X axis is almost always time. Once displayed, I will often zoom in on a small patch of a plot. I'm currently selecting the strftime format based on the original time range of the input. As I zoom in, however, that doesn't work so well. Consider the attached plot. How do I trigger a recalculation of the X axis format? I see this class, which looks promising: http://matplotlib.org/api/dates_api.html#matplotlib.dates.AutoDateFormatter but when I use it in the obvious way, all I get is the current year for all tick labels, despite the fact that the scaled attribute of the formatter has keys which are much smaller than a year. formatter = matplotlib.dates.AutoDateFormatter( matplotlib.dates.AutoDateLocator()) print formatter.scaled The default scaled attribute displays as: {1.0: '%b %d %Y', 365.0: '%Y', 30.0: '%b %Y', 0.041666666666666664: '%H:%M:%S'} I'm plotting data now with a range of about four hours, so I think the last format (%H:%M:%S) should be used. Thx, Skip |
From: Martin M. <mmo...@fo...> - 2013-07-09 15:03:22
|
Hi Nicolas, Nicolas Mailhot wrote: > > Le Mar 9 juillet 2013 15:14, Nicolas Mailhot a écrit : >> >> Le Lun 8 juillet 2013 18:18, Martin Mokrejs a écrit : > >>> Could you instead just test for "if not self._family"? Tests for >>> equality >>> are more expensive (that means self._family == 0 or self._family == >>> False >>> will also trigger your return). >> >> I can test if it works. However, all the other tests in that file are >> already of the if Foo is None form, and I didn't want to change the coding >> style I think it is a bad style then. If in some places a '' or False is needed to discriminate from None then the code should be changed. > > And I can confirm the following patch also fixes my workload > > diff -uNr matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py > matplotlib-1.2.1/lib/matplotlib/font_manager.py > --- matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py 2013-03-26 > 14:04:37.000000000 +0100 > +++ matplotlib-1.2.1/lib/matplotlib/font_manager.py 2013-07-08 > 14:49:37.791845661 +0200 > @@ -721,6 +721,8 @@ > Return the name of the font that best matches the font > properties. > """ > + if not self._family: > + return rcParams['font.family'][0] > return ft2font.FT2Font(str(findfont(self))).family_name > > def get_style(self): > > Now could something similar be merged? Thank you for your efforts on this. I am just a user like you so we have to wait for an answer of the maintainers. Maybe I should have emphasized that earlier. ;-) But this is good for the community review anyway. ;) Martin |
From: Nicolas M. <nic...@la...> - 2013-07-09 14:30:18
|
Le Mar 9 juillet 2013 15:14, Nicolas Mailhot a écrit : > > Le Lun 8 juillet 2013 18:18, Martin Mokrejs a écrit : >> Could you instead just test for "if not self._family"? Tests for >> equality >> are more expensive (that means self._family == 0 or self._family == >> False >> will also trigger your return). > > I can test if it works. However, all the other tests in that file are > already of the if Foo is None form, and I didn't want to change the coding > style And I can confirm the following patch also fixes my workload diff -uNr matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py matplotlib-1.2.1/lib/matplotlib/font_manager.py --- matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py 2013-03-26 14:04:37.000000000 +0100 +++ matplotlib-1.2.1/lib/matplotlib/font_manager.py 2013-07-08 14:49:37.791845661 +0200 @@ -721,6 +721,8 @@ Return the name of the font that best matches the font properties. """ + if not self._family: + return rcParams['font.family'][0] return ft2font.FT2Font(str(findfont(self))).family_name def get_style(self): Now could something similar be merged? Regards, -- Nicolas Mailhot |
From: Nicolas M. <nic...@la...> - 2013-07-09 13:15:16
|
Le Lun 8 juillet 2013 18:18, Martin Mokrejs a écrit : > Nicolas Mailhot wrote: >> Hi, >> >> In matplotlib 1.2.1, the get_name function is not garding against none >> self (unlike other functions); Unfortunately it seems I have a workload >> that makes matplotlib call get_name with None (wasn't the case in >> 1.2.0). >> I couldn't isolate the exact trigger, when I reduce the volume of data >> processed the problem goes away so I have to simple shareable >> reproducer. >> >> Anyway, the following patch makes it all work for me, could it (or >> something similar) be merged? >> >> diff -uNr matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py >> matplotlib-1.2.1/lib/matplotlib/font_manager.py >> --- matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py >> 2013-03-26 >> 14:04:37.000000000 +0100 >> +++ matplotlib-1.2.1/lib/matplotlib/font_manager.py 2013-07-08 >> 14:49:37.791845661 +0200 >> @@ -721,6 +721,8 @@ >> Return the name of the font that best matches the font >> properties. >> """ >> + if self._family is None: >> + return rcParams['font.family'] >> return ft2font.FT2Font(str(findfont(self))).family_name >> >> def get_style(self): >> >> Regards, >> > > Could you instead just test for "if not self._family"? Tests for equality > are more expensive (that means self._family == 0 or self._family == False > will also trigger your return). I can test if it works. However, all the other tests in that file are already of the if Foo is None form, and I didn't want to change the coding style Regards, -- Nicolas Mailhot |
From: Carlos B. <car...@gm...> - 2013-07-09 08:36:57
|
The violinplots look amazing, that is what I was looking for, thanks!! Carlos ------------------------------------------ Carlos On Mon, Jul 8, 2013 at 10:57 PM, <jos...@gm...> wrote: > On Mon, Jul 8, 2013 at 4:36 PM, Benjamin Root <ben...@ou...> wrote: > > This looks very similar to something Tony Yu made once. Check out this > > thread: > > > > > http://matplotlib.1069221.n5.nabble.com/Combination-of-a-box-plot-and-a-histogram-td25313.html#a25319 > > > > Note that Tony now has some sort of toolbox available that may have some > of > > this implemented easily. > > and some variations on the violins made it into statsmodels > > > http://statsmodels.sourceforge.net/devel/generated/statsmodels.graphics.boxplots.violinplot.html > > http://statsmodels.sourceforge.net/devel/generated/statsmodels.graphics.boxplots.beanplot.html > > Josef > > > > > Cheers! > > Ben Root > > > > > > > > On Mon, Jul 8, 2013 at 4:19 PM, Carlos Becker <car...@gm...> > > wrote: > >> > >> Hi all, > >> > >> I was wondering if there is something similar to this > >> http://reference.wolfram.com/mathematica/ref/DistributionChart.html in > >> matplotlib, or if someone can give me a hint on how to implement it, > since > >> it is very interesting for density plots. > >> > >> As far as I saw, there are histogram plots already available in > >> matplotlib, but I haven't seen something close to what is shown in the > link > >> above. > >> > >> Thanks, > >> > >> ------------------------------------------ > >> Carlos > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by Windows: > >> > >> Build for Windows Store. > >> > >> http://p.sf.net/sfu/windows-dev2dev > >> _______________________________________________ > >> Matplotlib-users mailing list > >> Mat...@li... > >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >> > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: death j. <dea...@ya...> - 2013-07-09 04:42:45
|
06.07.2013, 16:23, "Ryan Nelson": > You might need to explicitly specify your axes object rather than > relying on plt.subplot. > Try replacing 'ax = plt.sublplot(111)' with 'ax = plt.axes([0, 0, 1, 1])'. Ryan, thanks for your reply Your suggestion works perfectly Cheers |
From: mocalvao <moc...@gm...> - 2013-07-09 00:29:14
|
Hello there, I would like to have a plot with centered axes (spines) and also "boxed" with possible (major and minor) tickmarks along the borders of the visible box. The usual examples from matplotlib gallery only deal with borderless centered/zeroed spines; I would rather have a mix of the second ("normal spines") and third ("centered spines") or fourth ("zeroed spines") plots in the matplotlib spine placement demo page (http://matplotlib.org/examples/pylab_examples/spine_placement_demo.html). Thanks for any help PS: sorry if this message appears more than once, since I got confused with the nabble and matplotlib-users options/subscriptions -- View this message in context: http://matplotlib.1069221.n5.nabble.com/boxed-and-centered-axes-spines-tp41435.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: <jos...@gm...> - 2013-07-08 20:58:02
|
On Mon, Jul 8, 2013 at 4:36 PM, Benjamin Root <ben...@ou...> wrote: > This looks very similar to something Tony Yu made once. Check out this > thread: > > http://matplotlib.1069221.n5.nabble.com/Combination-of-a-box-plot-and-a-histogram-td25313.html#a25319 > > Note that Tony now has some sort of toolbox available that may have some of > this implemented easily. and some variations on the violins made it into statsmodels http://statsmodels.sourceforge.net/devel/generated/statsmodels.graphics.boxplots.violinplot.html http://statsmodels.sourceforge.net/devel/generated/statsmodels.graphics.boxplots.beanplot.html Josef > > Cheers! > Ben Root > > > > On Mon, Jul 8, 2013 at 4:19 PM, Carlos Becker <car...@gm...> > wrote: >> >> Hi all, >> >> I was wondering if there is something similar to this >> http://reference.wolfram.com/mathematica/ref/DistributionChart.html in >> matplotlib, or if someone can give me a hint on how to implement it, since >> it is very interesting for density plots. >> >> As far as I saw, there are histogram plots already available in >> matplotlib, but I haven't seen something close to what is shown in the link >> above. >> >> Thanks, >> >> ------------------------------------------ >> Carlos >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Benjamin R. <ben...@ou...> - 2013-07-08 20:36:40
|
This looks very similar to something Tony Yu made once. Check out this thread: http://matplotlib.1069221.n5.nabble.com/Combination-of-a-box-plot-and-a-histogram-td25313.html#a25319 Note that Tony now has some sort of toolbox available that may have some of this implemented easily. Cheers! Ben Root On Mon, Jul 8, 2013 at 4:19 PM, Carlos Becker <car...@gm...>wrote: > Hi all, > > I was wondering if there is something similar to this > http://reference.wolfram.com/mathematica/ref/DistributionChart.html in > matplotlib, or if someone can give me a hint on how to implement it, since > it is very interesting for density plots. > > As far as I saw, there are histogram plots already available in > matplotlib, but I haven't seen something close to what is shown in the link > above. > > Thanks, > > ------------------------------------------ > Carlos > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Carlos B. <car...@gm...> - 2013-07-08 20:20:11
|
Hi all, I was wondering if there is something similar to this http://reference.wolfram.com/mathematica/ref/DistributionChart.html in matplotlib, or if someone can give me a hint on how to implement it, since it is very interesting for density plots. As far as I saw, there are histogram plots already available in matplotlib, but I haven't seen something close to what is shown in the link above. Thanks, ------------------------------------------ Carlos |
From: Martin M. <mmo...@fo...> - 2013-07-08 16:18:18
|
Nicolas Mailhot wrote: > Hi, > > In matplotlib 1.2.1, the get_name function is not garding against none > self (unlike other functions); Unfortunately it seems I have a workload > that makes matplotlib call get_name with None (wasn't the case in 1.2.0). > I couldn't isolate the exact trigger, when I reduce the volume of data > processed the problem goes away so I have to simple shareable reproducer. > > Anyway, the following patch makes it all work for me, could it (or > something similar) be merged? > > diff -uNr matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py > matplotlib-1.2.1/lib/matplotlib/font_manager.py > --- matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py 2013-03-26 > 14:04:37.000000000 +0100 > +++ matplotlib-1.2.1/lib/matplotlib/font_manager.py 2013-07-08 > 14:49:37.791845661 +0200 > @@ -721,6 +721,8 @@ > Return the name of the font that best matches the font > properties. > """ > + if self._family is None: > + return rcParams['font.family'] > return ft2font.FT2Font(str(findfont(self))).family_name > > def get_style(self): > > Regards, > Could you instead just test for "if not self._family"? Tests for equality are more expensive (that means self._family == 0 or self._family == False will also trigger your return). |
From: p.maxted <p.m...@ke...> - 2013-07-08 16:17:46
|
Trying to install matplotlib-1.2.1 from source, i.e., [macpflm:~/matplotlib-1.2.1] pflm% python3 setup.py install Everything seems to run ok, but I cannot import macplotlib: [macpflm:~] pflm% python3 Python 3.3.1 (v3.3.1:d9893d13c628, Apr 6 2013, 11:07:11) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot Python(16295) malloc: *** error for object 0x101c86820: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort I tried updating libpng and freetype using macports and re-building, it did not solve the problem. There are some warnings printed during the build, e.g., ld: warning: in /opt/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libstdc++.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ..and.. /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" (both warning several times). Some details from the start of the screen output during the build. basedirlist is: ['/usr/local/', '/usr', '/usr/X11', '/opt/local'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.1 python: 3.3.1 (v3.3.1:d9893d13c628, Apr 6 2013, 11:07:11) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.7.0 freetype2: 16.2.10 OPTIONAL BACKEND DEPENDENCIES libpng: 1.5.16 Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5 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 PySide: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES dateutil: matplotlib will provide pytz: matplotlib will provide six: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: 1.5 ghostscript: 6.01 latex: 3.141592 [Edit setup.cfg to suppress the above messages] ============================================================================ Help! -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Install-problems-OSX-10-6-8-Python-3-3-1-tp41430.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Nicolas M. <nic...@la...> - 2013-07-08 14:57:36
|
Hi, In matplotlib 1.2.1, the get_name function is not garding against none self (unlike other functions); Unfortunately it seems I have a workload that makes matplotlib call get_name with None (wasn't the case in 1.2.0). I couldn't isolate the exact trigger, when I reduce the volume of data processed the problem goes away so I have to simple shareable reproducer. Anyway, the following patch makes it all work for me, could it (or something similar) be merged? diff -uNr matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py matplotlib-1.2.1/lib/matplotlib/font_manager.py --- matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py 2013-03-26 14:04:37.000000000 +0100 +++ matplotlib-1.2.1/lib/matplotlib/font_manager.py 2013-07-08 14:49:37.791845661 +0200 @@ -721,6 +721,8 @@ Return the name of the font that best matches the font properties. """ + if self._family is None: + return rcParams['font.family'] return ft2font.FT2Font(str(findfont(self))).family_name def get_style(self): Regards, -- Nicolas Mailhot |
From: Nicolas M. <nic...@la...> - 2013-07-08 14:49:17
|
Hi, Following an hardware failure I had to move some matplotlib scripts from an ancient (but updated) Debian box to a clean RHEL 6 VM. As a result my matplotlib version changed from 1.2.0 (as present in Debian instable) to 1.2.1 (some of the code wanted matplotlib ≥ 1.0, so I rebuilt an 1.2.1 packaged based on the Fedora 1.2.0 one. 1.3.0-rc2 / 1.3.0git gave me so many dependencies griefs I gave up on it) Anyway the result seems to work fine so far, except for a few scores of time graphs where some tick labels gone missing. Those graphs are supposed to show weekly data, with: – ticks on month ends, – subticks on week ends, – week numbers in the middle of each week (top) and – month numbers on the middle of each month (bottom). With the new installation months numbers got missing. Here is an extract of the relevant code : %<--- subplot.set_xticks([dd.monthstart(m) for m in months]) subplot.set_xticks([w.gmticks() for w in weeks], minor=True) subplot.set_xticklabels([]) plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) subplot1 = subplot.twiny() mmonths = [m for i,m in enumerate(months) if operator.mod(i,1+(len(months)-1)/12) == 0] subplot1.set_xticks([dd.monthmiddle(m) for m in mmonths]) subplot1.set_xticklabels(mmonths) subplot1.tick_params(labelsize='6.5',labelbottom=True, labeltop=False) plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) subplot2 = subplot.twiny() mweeks = [w for i,w in enumerate(weeks) if operator.mod(i,1+(len(weeks)-1)/53) == 0] subplot2.set_xticks([dd.weekmiddle(w) for w in mweeks]) subplot2.set_xticklabels([w.iso_week[1] for w in mweeks]) subplot2.tick_params(labelsize='5',labelbottom=False, labeltop=True,pad=3) plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) subplot2.xaxis.set_ticks_position('none') subplot1.xaxis.set_ticks_position('none') subplot.xaxis.set_ticks_position('both') %<--- I've tried to move the subplot1.tick_params(labelsize='6.5',labelbottom=True, labeltop=False) line to the end of the block, but it seems matplotlib is confusing subplot1 and subplot2, and that results in the displaying of week numbers (not month numbers) to the bottom of the plot (and the week numbers disappear from the top of the graph). Any idea how to restore the previously working behaviour ? Regards, -- Nicolas Mailhot |
From: Ryan N. <rne...@gm...> - 2013-07-06 14:22:36
|
You might need to explicitly specify your axes object rather than relying on plt.subplot. Try replacing 'ax = plt.sublplot(111)' with 'ax = plt.axes([0, 0, 1, 1])'. Ryan On 7/5/2013 12:44 PM, death jun wrote: > Hello list, > > I have LineCollection object: "l = matplotlib.collections.LineCollection()" which I want to save as image without any kind of margins. > > What have I tried is following: > > ax = plt.subplot(111) > ax.set_axis_off() > ax.add_collection(l) > ax.autoscale_view() > plt.savefig('img.png') > > but there are still unwanted margins. > > How to plot without margins? > > > Thanks > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Jeff W. <js...@fa...> - 2013-07-06 04:13:01
|
> spmls <mailto:spl...@gm...> > July 5, 2013 10:58 AM > Hello, > > I've been having a problem in my basemap plots of areas with small spatial > extents, where my meridians are cutoff like so: > > <http://matplotlib.1069221.n5.nabble.com/file/n41409/Max_Water_Surface.png> > > > I've tried simplifying the code as much as possible, but still get a > similar > problem: > <http://matplotlib.1069221.n5.nabble.com/file/n41409/meridians_cutoff_atTop.png> > > > The meridians plot correctly when I use a normal mercator instead of the > transverse mercator projection, so switching to mercator is my last resort > option for now. Has anyone dealt with this problem before and found a > workaround? > > Thank you! > -SeanPaul SeanPaul: This looks like a bug in basemap - please file an issue on the github page (https://github.com/matplotlib/basemap). -Jeff > > Here's my simplified code: > > import numpy as np > import matplotlib as mpl > from mpl_toolkits.basemap import Basemap > import matplotlib.pyplot as plt > > > """Input desired lats (y) and lons(x) of plot""" > ############ > xmin = -166.22 > xmax = -166.134 > > ymin = 53.7439 > ymax = 53.7827 > ############ > > m = Basemap(projection='tmerc', lon_0=-165. , lat_0=0 , llcrnrlon=xmin, > llcrnrlat=ymin, urcrnrlon=xmax , urcrnrlat=ymax) > > meridians = np.arange(xmin,xmax,(30/3600)) # 30 arcsecond spacing > m.drawmeridians(meridians) > > parallels = np.arange(ymin,ymax,(30/3600)) > m.drawparallels(parallels) > > plt.show() > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/basemap-meridians-cut-off-tp41409.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------ |
From: spmls <spl...@gm...> - 2013-07-05 16:59:05
|
Hello, I've been having a problem in my basemap plots of areas with small spatial extents, where my meridians are cutoff like so: <http://matplotlib.1069221.n5.nabble.com/file/n41409/Max_Water_Surface.png> I've tried simplifying the code as much as possible, but still get a similar problem: <http://matplotlib.1069221.n5.nabble.com/file/n41409/meridians_cutoff_atTop.png> The meridians plot correctly when I use a normal mercator instead of the transverse mercator projection, so switching to mercator is my last resort option for now. Has anyone dealt with this problem before and found a workaround? Thank you! -SeanPaul Here's my simplified code: import numpy as np import matplotlib as mpl from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt """Input desired lats (y) and lons(x) of plot""" ############ xmin = -166.22 xmax = -166.134 ymin = 53.7439 ymax = 53.7827 ############ m = Basemap(projection='tmerc', lon_0=-165. , lat_0=0 , llcrnrlon=xmin, llcrnrlat=ymin, urcrnrlon=xmax , urcrnrlat=ymax) meridians = np.arange(xmin,xmax,(30/3600)) # 30 arcsecond spacing m.drawmeridians(meridians) parallels = np.arange(ymin,ymax,(30/3600)) m.drawparallels(parallels) plt.show() -- View this message in context: http://matplotlib.1069221.n5.nabble.com/basemap-meridians-cut-off-tp41409.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: death j. <dea...@ya...> - 2013-07-05 16:44:57
|
Hello list, I have LineCollection object: "l = matplotlib.collections.LineCollection()" which I want to save as image without any kind of margins. What have I tried is following: ax = plt.subplot(111) ax.set_axis_off() ax.add_collection(l) ax.autoscale_view() plt.savefig('img.png') but there are still unwanted margins. How to plot without margins? Thanks |
From: Jeff W. <js...@fa...> - 2013-07-05 16:21:43
|
> kmanross <mailto:kev...@gm...> > July 2, 2013 12:42 PM > Greetings! > > Relative newbie here. > > I'm trying to plot wind vectors using basemap quiver and to fit my ortho > projection. This is essentially a hack of Jeff Whitaker's animate.py found > at > > https://github.com/matplotlib/basemap/blob/master/examples/animate.py > > The data source I'm connecting to, however, has the latitudes in > decreasing > order, so I get the "lats and lons must be in increasing order!" exception > when trying to use the transform_vector method which seems to be > required to > fit the vectors to the projection. (ugliness occurs when failing to > transform) > > What would be the best way to transform latitudes (to increasing) as > needed > by transform_vector, while also accounting for the data order of my u > and v > grids? > > -kevin. > Kevin: Just flip the data around. lats_flipped = lats[::-1,:] data_flipeed = data[::-1,:] # assuming 2d array shape (nlats,nlons) -Jeff > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/Basemap-transform-vector-for-decreasing-latitudes-tp41375.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------ |
From: v0idnull <v0i...@ps...> - 2013-07-05 16:02:48
|
Yes, but this is where I am failing. I don't have the code with me right now but I can explain it: I get a new number every 2000 milliseconds, and I want to update the graph say, every 50 milliseconds, and keep a minute of history visible in the graph. So that's 30 x-axis ticks. But if I want to draw this out smoothly, I need 40 more ticks per update interval. I have five lines I want to show, so every 50ms, 600 points need to be plotted out. Now, my proof of concept code is just working with arrays in a sort of FIFO queue, I haven't actually tried to plug those arrays into matplotlib, but it seems like replotting 600 points is a lot of work. Maybe I am over reacting? Or is there some feature of matplotlib that allows me to push data onto a plot instead of replotting all points? I dunno, I'm not confident in my approach. I seek inspiration. thanks, --alex This means that every 50ms, 600 points need to be updated. On 13-07-04 05:11 PM, Michael Droettboom wrote: > I see -- you want to basically interpolate between points? I don't > think there's anything built in to matplotlib to do that, but you > could always do that interpolation outside and just update the graph > more often. > > Mike > > On 07/04/2013 04:28 PM, v0idnull wrote: >> eh.... >> >> Let me explain my problem in a different way: >> >> Every two seconds I get a value from a service. Let's say I over 8 >> seconds I get 1, 5, 10, 5 as values. >> >> So if my application updates the graph every two seconds, this will >> look choppy and ugly. This is because every two seconds, an entire >> line is added onto the graph between the two points. >> >> Imagine if I could control the drawing of said line though. If I >> could draw the individual pixels of the line every couple of ticks >> instead of just dumping a line in every two seconds, I will end up >> with a nice smooth animation. It may not be 100% real time anymore, >> but my focus on this personal project of mine is vanity, not >> practicality ;) >> >> I hope this better explains what I am trying to accomplish... >> >> Thanks, >> --alex >> >> On 13-07-04 04:09 PM, Michael Droettboom wrote: >>> Have you looked at the simple_anim.py example -- other than the >>> networking piece, it seems to do what you describe, and it's pretty >>> fast. Maybe start from that and make changes until it gets slow in >>> order to determine where the slowness comes from...? >>> >>> Mike >>> >>> On 07/03/2013 09:19 PM, v0idnull wrote: >>>> I am receiving a number from a server every two seconds. I would >>>> like to plot this number.out over time for the past say... 30 polls. >>>> >>>> Would it be possible to use... Anything, to produce a smooth >>>> animation of the plot line getting drawn? As it stands now the >>>> animation is well... Quite choppy. ;) >>>> >>>> I'm using pygame currently to render my graphs on this full screen >>>> application I'm making just for my self. I am not bound to it >>>> though if there are better linux-only things out there. >>>> >>>> Thanks in advance, >>>> --alex >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Windows: >>>> >>>> Build for Windows Store. >>>> >>>> http://p.sf.net/sfu/windows-dev2dev >>>> >>>> >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> >>> !DSPAM:51d5d60416102691037314! >>> >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >>> !DSPAM:51d5d60416102691037314! >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > !DSPAM:51d5e4c116101841011479! > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > > !DSPAM:51d5e4c116101841011479! > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > !DSPAM:51d5e4c116101841011479! |
From: piecess <vil...@gm...> - 2013-07-05 12:17:31
|
I want to plot current data on a map. I wrote that : But it returns me only one arrow According to the using of the shape function I guess my slice is right : What can I do to have all the arrows? (It's a global world file..) -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Plotting-current-surface-data-Only-one-arrow-appears-tp41405.html Sent from the matplotlib - users mailing list archive at Nabble.com. |