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
|
|
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. |
|
From: Michael D. <md...@st...> - 2013-07-04 21:11:35
|
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 >> >> !DSPAM:51d5d60416102691037314! >> >> >> ------------------------------------------------------------------------------ >> 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 |
|
From: v0idnull <v0i...@ps...> - 2013-07-04 20:28:16
|
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 > > !DSPAM:51d5d60416102691037314! > > > ------------------------------------------------------------------------------ > 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! |
|
From: Michael D. <md...@st...> - 2013-07-04 20:11:02
|
It looks like the version of Numpy installed on your machine is too old for the latest version of matplotlib. You'll need at least version 1.5, I believe (though we neglected to update the documentation about this requirement). Mike On 07/03/2013 05:13 PM, David Jonathan Pryce Morris wrote: > I am new to python and when using Matplotlib 0.99.1.1 [Scientific Linux > 6.3, Python 2.6] to plot I get the following error: > > /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621: DeprecationWarning: Use the new widget gtk.Tooltip > self.tooltips = gtk.Tooltips() > > This is when the program reaches: > > plt.show() > > Where plt is the matplotlib.pyplot. Prior to this point of the code I am > able to produce pdf files of the figure by using plt.savefig(fname). > > Reading other online comments I have tried to update Matplotlib. First I > installed the dependences via > > sudo yum-builddep python-matplotlib > > Then: > > sudo yum install matplotlib > > This then tells me that I have the latest version of matplotlib and > therefore does nothing. There are more recent versions available from > the Matplotlib website. I tried to install the latest version after > unpacking the tar.gz file. After using the command: > > sudo python setup.py install > > I get the message below ending with error: > > command 'gcc' failed with exit status 1 > > Can anyone suggest a way to install the latest matplotlib or stop the > message I get with using plt.show()? > > Jonathan > > > > > > basedirlist is: ['/usr/local', '/usr', 'usr/lib64'] > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 1.2.1 > python: 2.6.6 (r266:84292, Jun 18 2012, 09:57:52) [GCC > 4.4.6 20110731 (Red Hat 4.4.6-3)] > platform: linux2 > > REQUIRED DEPENDENCIES > numpy: 1.4.1 > freetype2: 9.22.3 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.49 > Tkinter: Tkinter: 73770, Tk: 8.5, Tcl: 8.5 > * Guessing the library and include directories > for > * Tcl and Tk because the tclConfig.sh and > * tkConfig.sh could not be found and/or parsed. > Gtk+: gtk+: 2.18.9, glib: 2.22.5, pygtk: 2.16.0, > pygobject: 2.20.0 > Mac OS X native: no > Qt: no > Qt4: Qt: 4.6.2, PyQt4: 4.7.4 > PySide: no > Cairo: 1.8.6 > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > dateutil: 1.4.1 > pytz: 2010h > > OPTIONAL USETEX DEPENDENCIES > dvipng: no > ghostscript: 8.70 > latex: 3.141592 > pdftops: 0.12.4 > > [Edit setup.cfg to suppress the above messages] > ============================================================================ > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', > 'matplotlib.backends.qt4_editor', 'matplotlib.projections', > 'matplotlib.testing', 'matplotlib.testing.jpl_units', > 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', > 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', > 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', > 'matplotlib.delaunay'] > running install > running build > running build_py > copying lib/matplotlib/mpl-data/matplotlibrc -> > build/lib.linux-x86_64-2.6/matplotlib/mpl-data > running build_ext > building 'matplotlib.backends._backend_agg' extension > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c agg24/src/agg_trans_affine.cpp -o > build/temp.linux-x86_64-2.6/agg24/src/agg_trans_affine.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c agg24/src/agg_bezier_arc.cpp -o > build/temp.linux-x86_64-2.6/agg24/src/agg_bezier_arc.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c agg24/src/agg_curves.cpp -o > build/temp.linux-x86_64-2.6/agg24/src/agg_curves.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c agg24/src/agg_vcgen_dash.cpp -o > build/temp.linux-x86_64-2.6/agg24/src/agg_vcgen_dash.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c agg24/src/agg_vcgen_stroke.cpp -o > build/temp.linux-x86_64-2.6/agg24/src/agg_vcgen_stroke.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c agg24/src/agg_image_filters.cpp -o > build/temp.linux-x86_64-2.6/agg24/src/agg_image_filters.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c src/mplutils.cpp -o > build/temp.linux-x86_64-2.6/src/mplutils.o > In file included from /usr/include/python2.6/pyconfig.h:6, > from /usr/include/python2.6/Python.h:8, > from src/mplutils.h:18, > from src/mplutils.cpp:6: > /usr/include/python2.6/pyconfig-64.h:1034:1: warning: "_POSIX_C_SOURCE" > redefined > In file included > from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c > ++/4.4.6/x86_64-redhat-linux/bits/os_defines.h:39, > > from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c > ++/4.4.6/x86_64-redhat-linux/bits/c++config.h:1687, > > from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c > ++/4.4.6/iostream:39, > from src/mplutils.cpp:3: > /usr/include/features.h:162:1: warning: this is the location of the > previous definition > In file included from /usr/include/python2.6/pyconfig.h:6, > from /usr/include/python2.6/Python.h:8, > from src/mplutils.h:18, > from src/mplutils.cpp:6: > /usr/include/python2.6/pyconfig-64.h:1043:1: warning: "_XOPEN_SOURCE" > redefined > In file included > from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c > ++/4.4.6/x86_64-redhat-linux/bits/os_defines.h:39, > > from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c > ++/4.4.6/x86_64-redhat-linux/bits/c++config.h:1687, > > from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c > ++/4.4.6/iostream:39, > from src/mplutils.cpp:3: > /usr/include/features.h:164:1: warning: this is the location of the > previous definition > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c src/agg_py_transforms.cpp -o > build/temp.linux-x86_64-2.6/src/agg_py_transforms.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c CXX/cxxsupport.cxx -o > build/temp.linux-x86_64-2.6/CXX/cxxsupport.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c CXX/IndirectPythonInterface.cxx -o > build/temp.linux-x86_64-2.6/CXX/IndirectPythonInterface.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c CXX/cxx_extensions.cxx -o > build/temp.linux-x86_64-2.6/CXX/cxx_extensions.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c CXX/cxxextensions.c -o > build/temp.linux-x86_64-2.6/CXX/cxxextensions.o > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include > -Iusr/lib64/include -Iusr/lib64/python2.6/include > -Iusr/lib64/python2.6/site-packages/include > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/local/include -I/usr/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/lib64/python2.6/site-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.6 -c src/backend_agg.cpp -o > build/temp.linux-x86_64-2.6/src/backend_agg.o > In file included from src/backend_agg.cpp:42: > src/file_compat.h:4:32: error: numpy/npy_3kcompat.h: No such file or > directory > In file included from src/backend_agg.cpp:42: > src/file_compat.h: In function ‘int npy_PyFile_CloseFile(PyObject*)’: > src/file_compat.h:125: warning: deprecated conversion from string > constant to ‘char*’ > src/backend_agg.cpp: In member function ‘Py::Object > RendererAgg::write_rgba(const Py::Tuple&)’: > src/backend_agg.cpp:2040: error: ‘npy_PyFile_OpenFile’ was not declared > in this scope > src/backend_agg.cpp:2050: error: ‘npy_PyFile_Dup’ was not declared in > this scope > src/backend_agg.cpp:2054: error: ‘npy_PyFile_DupClose’ was not declared > in this scope > src/backend_agg.cpp:2064: error: ‘npy_PyFile_DupClose’ was not declared > in this scope > error: command 'gcc' failed with exit status 1 > > > ------------------------------------------------------------------------------ > 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: Michael D. <md...@st...> - 2013-07-04 20:09:14
|
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 |
|
From: v0idnull <v0i...@ps...> - 2013-07-04 01:25:29
|
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 |