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: 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 |
From: David J. P. M. <djp...@an...> - 2013-07-03 21:13:49
|
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 |
From: Damon M. <dam...@gm...> - 2013-07-03 20:21:40
|
On Tue, Jul 2, 2013 at 11:57 PM, Nelle Varoquaux <nel...@gm...>wrote: > On 2 July 2013 16:33, Anthony Scopatz <sc...@gm...> wrote: > > > > On Tue, Jul 2, 2013 at 9:04 AM, Jason Grout <jas...@cr... > > > > wrote: > >> > >> On 7/1/13 9:33 AM, Michael Droettboom wrote: > >> > SciPy 2013 was a great success. I didn't get good headcount at the > >> > matplotlib BOF, but it was a good number, and we had 15 participants > at > >> > various points during the sprints. It was nice to see the diversity > of > >> > experience with matplotlib at the sprints, and I hope we oldtimers > were > >> > helpful to the newtimers getting started so they can continue to > >> > contribute in the future. It was also great to put some faces to many > >> > of the talented names I've been seeing on github and the mailing list > >> > lately. > >> > > >> > >> On a slightly different, but related topic: is there any chance the > >> entries (or at least the winning entries) to the plotting contest could > >> be posted online? > > > > > > Yes, We'll put try to put these on the conference website at the very > least. > > We also talked about adding this to the matplotlib website, but we > need to sort out first the copyright problems and then coding this > part of the website. > +1 -- Damon McDougall http://www.damon-is-a-geek.com Institute for Computational Engineering Sciences 201 E. 24th St. Stop C0200 The University of Texas at Austin Austin, TX 78712-1229 |
From: Benjamin R. <ben...@ou...> - 2013-07-03 18:51:51
|
Not a bother. This is a fairly common problem because matplotlib, by design, does not handle layouts for you. If you are looking for an automated way of handling this, there is plt.tight_layout(), which is a feature that was added in v1.2, IIRC, that tries adjusting certain spacing and size parameters automatically in an effort to keep everything inside the figure space. However, a solution like yours is often perfered because it gives you explicit control over the plot, and is guaranteed to work the same way, every time. Cheers! Ben Root On Wed, Jul 3, 2013 at 2:08 PM, Florian Lindner <mai...@xg...> wrote: > Am Mittwoch, 3. Juli 2013, 20:02:30 schrieb Florian Lindner: > > Hello! > > > > I have that snipped to create a plot: > > > > import matplotlib.pyplot as plt > > size = (6.1, 3.5) > > fig = plt.figure(figsize=size) > > plt.xlabel("$x/l_F$") > > > > it's being saved as eps for latex. At the size given the "F" from l_F is > > truncated just a little bit. It works well if I change y-size to 3.6 but > > that makes latex place to figure on a seperate page which I do not want. > > > > Is this behavior by design or a bug? How can I give just 0.1 more > y-space to > > the xlabel without altering the overall size? > > Ok, I should have read to docu before googling. > > plt.xlabel("$x/l_F$", labelpad = -0.1) > did it. > > Sorry for bothering... > > Florian > > > ------------------------------------------------------------------------------ > 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: Florian L. <mai...@xg...> - 2013-07-03 18:31:39
|
Am Mittwoch, 3. Juli 2013, 20:02:30 schrieb Florian Lindner: > Hello! > > I have that snipped to create a plot: > > import matplotlib.pyplot as plt > size = (6.1, 3.5) > fig = plt.figure(figsize=size) > plt.xlabel("$x/l_F$") > > it's being saved as eps for latex. At the size given the "F" from l_F is > truncated just a little bit. It works well if I change y-size to 3.6 but > that makes latex place to figure on a seperate page which I do not want. > > Is this behavior by design or a bug? How can I give just 0.1 more y-space to > the xlabel without altering the overall size? Ok, I should have read to docu before googling. plt.xlabel("$x/l_F$", labelpad = -0.1) did it. Sorry for bothering... Florian |
From: Florian L. <mai...@xg...> - 2013-07-03 18:29:55
|
Hello! I have that snipped to create a plot: import matplotlib.pyplot as plt size = (6.1, 3.5) fig = plt.figure(figsize=size) plt.xlabel("$x/l_F$") it's being saved as eps for latex. At the size given the "F" from l_F is truncated just a little bit. It works well if I change y-size to 3.6 but that makes latex place to figure on a seperate page which I do not want. Is this behavior by design or a bug? How can I give just 0.1 more y-space to the xlabel without altering the overall size? Thanks, Florian |
From: Benjamin R. <ben...@ou...> - 2013-07-03 13:36:24
|
On Wed, Jul 3, 2013 at 3:13 AM, ChaoYue <cha...@gm...> wrote: > Thanks Ben. I tried but still confused. > > In [8]: fig,ax = plt.subplots() > > In [9]: ax.plot(range(100)) > Out[9]: [<matplotlib.lines.Line2D at 0x4cadb50>] > > In [10]: ax.get_xticks() > Out[10]: array([ 0., 20., 40., 60., 80., 100.]) > > In [11]: ax.get_yticks() > Out[11]: array([ 0., 20., 40., 60., 80., 100.]) > > In [12]: draw() > > In [13]: cs = ax.imshow(np.arange(100).reshape(10,10)) > > In [14]: draw() > > In [15]: cbar = plt.colorbar(cs,ticks=np.arange(0,100,10)) > > In [16]: cbar.ax.get_yticks() > Out[16]: > array([ 0. , 0.1010101 , 0.2020202 , 0.3030303 , 0.4040404 , > 0.50505051, 0.60606061, 0.70707071, 0.80808081, 0.90909091]) > > there are many methods avaialbe for cbar.ax.yaxis object: > In [19]: cbar.ax.yaxis.get*tick*? > cbar.ax.yaxis.get_major_ticks > cbar.ax.yaxis.get_majorticklabels > cbar.ax.yaxis.get_majorticklines > cbar.ax.yaxis.get_majorticklocs > cbar.ax.yaxis.get_minor_ticks > cbar.ax.yaxis.get_minorticklabels > cbar.ax.yaxis.get_minorticklines > cbar.ax.yaxis.get_minorticklocs > cbar.ax.yaxis.get_ticklabel_extents > cbar.ax.yaxis.get_ticklabels > cbar.ax.yaxis.get_ticklines > cbar.ax.yaxis.get_ticklocs > cbar.ax.yaxis.get_ticks_position > > I tried > In [20]: cbar.ax.yaxis.get_majorticklocs() > Out[20]: > array([ 0. , 0.1010101 , 0.2020202 , 0.3030303 , 0.4040404 , > 0.50505051, 0.60606061, 0.70707071, 0.80808081, 0.90909091]) > > But it doesn't give the tick locs as the normal axes? > > could you explain a bit further? > > thanks et cheers, > > Chao > > Remember, there is a difference between a tick location, and a tick label. A colormap works from 0 to 1, so that is its data coordinates. We merely label the ticks with the appropriate values. Try cbar.ax.yaxis.get_ticklabels(). Cheers! Ben Root |
From: ChaoYue <cha...@gm...> - 2013-07-03 07:13:55
|
Thanks Ben. I tried but still confused. In [8]: fig,ax = plt.subplots() In [9]: ax.plot(range(100)) Out[9]: [<matplotlib.lines.Line2D at 0x4cadb50>] In [10]: ax.get_xticks() Out[10]: array([ 0., 20., 40., 60., 80., 100.]) In [11]: ax.get_yticks() Out[11]: array([ 0., 20., 40., 60., 80., 100.]) In [12]: draw() In [13]: cs = ax.imshow(np.arange(100).reshape(10,10)) In [14]: draw() In [15]: cbar = plt.colorbar(cs,ticks=np.arange(0,100,10)) In [16]: cbar.ax.get_yticks() Out[16]: array([ 0. , 0.1010101 , 0.2020202 , 0.3030303 , 0.4040404 , 0.50505051, 0.60606061, 0.70707071, 0.80808081, 0.90909091]) there are many methods avaialbe for cbar.ax.yaxis object: In [19]: cbar.ax.yaxis.get*tick*? cbar.ax.yaxis.get_major_ticks cbar.ax.yaxis.get_majorticklabels cbar.ax.yaxis.get_majorticklines cbar.ax.yaxis.get_majorticklocs cbar.ax.yaxis.get_minor_ticks cbar.ax.yaxis.get_minorticklabels cbar.ax.yaxis.get_minorticklines cbar.ax.yaxis.get_minorticklocs cbar.ax.yaxis.get_ticklabel_extents cbar.ax.yaxis.get_ticklabels cbar.ax.yaxis.get_ticklines cbar.ax.yaxis.get_ticklocs cbar.ax.yaxis.get_ticks_position I tried In [20]: cbar.ax.yaxis.get_majorticklocs() Out[20]: array([ 0. , 0.1010101 , 0.2020202 , 0.3030303 , 0.4040404 , 0.50505051, 0.60606061, 0.70707071, 0.80808081, 0.90909091]) But it doesn't give the tick locs as the normal axes? could you explain a bit further? thanks et cheers, Chao On Tue, Jul 2, 2013 at 4:17 PM, Benjamin Root-2 [via matplotlib] < ml-...@n5...> wrote: > This is a constant source of confusion. The colorbar object should be > thought of as just another subaxes. To get the ticks, you want the ticks > from the colorbar's yaxis or xaxis object accordingly. Of course, I could > have sworn we added a helper function for this at some point, but I could > be wrong. > > I hope that helps! > Ben Root > > > On Tue, Jul 2, 2013 at 5:43 AM, Chao YUE <[hidden email]<http://user/SendEmail.jtp?type=node&node=41365&i=0> > > wrote: > >> Dear all matplotlib users, >> >> I found there is not a get_ticks method available for colorbar instance, >> how could I quick get the ticks of a colorbar? >> >> thanks, >> >> Chao >> -- >> >> *********************************************************************************** >> Chao YUE >> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) >> UMR 1572 CEA-CNRS-UVSQ >> Batiment 712 - Pe 119 >> 91191 GIF Sur YVETTE Cedex >> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 >> >> ************************************************************************************ >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Matplotlib-users mailing list >> [hidden email] <http://user/SendEmail.jtp?type=node&node=41365&i=1> >> 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 > [hidden email] <http://user/SendEmail.jtp?type=node&node=41365&i=2> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://matplotlib.1069221.n5.nabble.com/quickly-return-colorbar-ticks-tp41361p41365.html > To start a new topic under matplotlib - users, email > ml-...@n5... > To unsubscribe from matplotlib, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx> > . > NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************ -- View this message in context: http://matplotlib.1069221.n5.nabble.com/quickly-return-colorbar-ticks-tp41361p41384.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: ChaoYue <cha...@gm...> - 2013-07-03 07:04:41
|
Thanks Ben. extendrect keyword is in mat 1.3, I didn't try this but I tried set_under and extend='min' with mat 1.2 and it works very nice. cheers, Chao On Tue, Jul 2, 2013 at 4:14 PM, Benjamin Root-2 [via matplotlib] < ml-...@n5...> wrote: > There is the "set_over" and "set_under" members of a colormap, and the > plt.colorbar() function takes an "extend='min'" argument to add an extra > color at the beginning of the colorbar. Setting "extendrect=True", the > added color will be rectangular instead of triangular. > > Hopefully that helps. > > Cheers, > Ben Root > > > > On Tue, Jul 2, 2013 at 6:14 AM, Chao YUE <[hidden email]<http://user/SendEmail.jtp?type=node&node=41364&i=0> > > wrote: > >> One way I could think of is to make two contingent mat.axes.Axes, >> with a smaller one setting as white backgroud, and the other bigger on >> holding the colorbar. Is there some better way? >> >> Chao >> >> >> On Tue, Jul 2, 2013 at 12:12 PM, Chao YUE <[hidden email]<http://user/SendEmail.jtp?type=node&node=41364&i=1> >> > wrote: >> >>> Dear all, >>> >>> Does anyone have similar experience that to make a colorbar >>> starting from a different color in the colormap? for example, to >>> denote the region with invalid data. I attahced a figure to show >>> what I would like to have, the withe region in the colorbar in the >>> attahced figure shows no data. >>> >>> thanks a lot for any help, >>> >>> best, >>> >>> Chao >>> >>> -- >>> >>> *********************************************************************************** >>> Chao YUE >>> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) >>> UMR 1572 CEA-CNRS-UVSQ >>> Batiment 712 - Pe 119 >>> 91191 GIF Sur YVETTE Cedex >>> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 >>> >>> ************************************************************************************ >>> >> >> >> >> -- >> >> *********************************************************************************** >> Chao YUE >> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) >> UMR 1572 CEA-CNRS-UVSQ >> Batiment 712 - Pe 119 >> 91191 GIF Sur YVETTE Cedex >> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 >> >> ************************************************************************************ >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Matplotlib-users mailing list >> [hidden email] <http://user/SendEmail.jtp?type=node&node=41364&i=2> >> 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 > [hidden email] <http://user/SendEmail.jtp?type=node&node=41364&i=3> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://matplotlib.1069221.n5.nabble.com/how-to-make-a-colorbar-starting-with-a-different-color-tp41362p41364.html > To start a new topic under matplotlib - users, email > ml-...@n5... > To unsubscribe from matplotlib, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx> > . > NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************ -- View this message in context: http://matplotlib.1069221.n5.nabble.com/how-to-make-a-colorbar-starting-with-a-different-color-tp41362p41383.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Nelle V. <nel...@gm...> - 2013-07-03 04:57:14
|
On 2 July 2013 16:33, Anthony Scopatz <sc...@gm...> wrote: > > On Tue, Jul 2, 2013 at 9:04 AM, Jason Grout <jas...@cr...> > wrote: >> >> On 7/1/13 9:33 AM, Michael Droettboom wrote: >> > SciPy 2013 was a great success. I didn't get good headcount at the >> > matplotlib BOF, but it was a good number, and we had 15 participants at >> > various points during the sprints. It was nice to see the diversity of >> > experience with matplotlib at the sprints, and I hope we oldtimers were >> > helpful to the newtimers getting started so they can continue to >> > contribute in the future. It was also great to put some faces to many >> > of the talented names I've been seeing on github and the mailing list >> > lately. >> > >> >> On a slightly different, but related topic: is there any chance the >> entries (or at least the winning entries) to the plotting contest could >> be posted online? > > > Yes, We'll put try to put these on the conference website at the very least. We also talked about adding this to the matplotlib website, but we need to sort out first the copyright problems and then coding this part of the website. Thanks, Nelle > > Be Well > Anthony > >> >> >> Thanks, >> >> Jason >> >> >> >> ------------------------------------------------------------------------------ >> 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: zetah <ot...@hu...> - 2013-07-02 19:46:43
|
On вторник, 02 јули 2013 at 11:04 AM, Ian Thomas wrote: > >You need to use a matplotlib.tri.Triangulation (your use of triplot does >this for you behind the scenes anyway), something like: > >import matplotlib.tri as mtri >triang = mtri.Triangulation(xpoints, ypoints) > >Now triang.triangles is an array of integers of shape (?, 3) such that >triang.triangles[i,:] are the three indices of the points that comprise >triangle i. You will need to use these to determine the information you >want. The triplot example ( >http://matplotlib.org/examples/pylab_examples/triplot_demo.html) >does something similar, identifying which triangles are within a >particular circle; I guess in your case a simple approach would be to test if >the distance from the centre of each triangle edge to your circle of >interest is below some threshold or not. Ian, thanks for you reply Using threshold like you described is not applicable as there is no guarantee of minimum distance between pattern objects. I wanted to replicate CGAL crust demo in Python, and in the meantime I found the algorithm by Nina Amenta: ======================================== compute Vor(P); let V be the Voronoi vertices of Vor(P); compute Del(P U V); E := 0; for each edge pq in Del(P U V) do if p in P and q in P E := E U pq; endif output E. ======================================== So, Voronoi vertices have property to cluster wanted objects in a manner that we can use edges of Delaunay triangulation from original points and Voronoi vertices of that same points, and simply check if they lay on original points. I used Deleanay and Voronoi functions from scipy.spatial and worth mentioning is that I had hard time finding that edges from triangulation can be found by this command: ======================================== t = Delaunay(PUV) edges = t.points[t.vertices] ======================================== Cheers > >Incidentally, if you have a Triangulation object then subsequent >calls to functions like triplot can be of the form triplot(triang), which >will be faster than repeated calls to triplot(xpoints, ypoints) as in the >latter case a separate Delaunay triangulation needs to be performed for >each triplot call. > >Ian |
From: kmanross <kev...@gm...> - 2013-07-02 18:42:19
|
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. -- 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. |
From: Valentine C. J. <Jo....@na...> - 2013-07-02 17:14:12
|
Šand this afternoon, shortly after I sent this email, my test cases for this approach abruptly stopped functioning. Whoops. So y'all may want to hold off on this. (I thought it looked too easyŠ) Been that kind of day. :) -jo On 7/2/13 11:57 AM, "Valentine Cooper, Jo" <Jo....@na...> wrote: >Ran into a bug this morning with draggable annotations. It would seem that >finalize_offset() forcibly overrides the annotation's textcoords status to >"axes fraction" so it can set the coordinates properly. That's all well >and good, but if you were using some text coordinates system other than >"axes fraction" (say, for example, "data"), this can cause fun side >effects such as annotations that used to pan around with the rest of the >graph suddenly being frozen in place. :( > >Attached is a patch to restore the old textcoords mode in >finalize_offset(). All it does is save the old textcoords mode before >making the change to "axes fraction" and restores it afterwards. > >Hope this helps! >-jo > > |
From: Michael D. <md...@st...> - 2013-07-02 16:48:22
|
[Apologies for cross-posting] The matplotlib developers want to hear from you! We are conducting a user survey to determine how and where matplotlib is being used in order to focus its further development. This should only take a couple of minutes. To fill it out, visit: https://docs.google.com/spreadsheet/viewform?fromEmail=true&formkey=dHpQS25pcTZIRWdqX0pNckNSU01sMHc6MQ <https://docs.google.com/spreadsheet/viewform?fromEmail=true&formkey=dHpQS25pcTZIRWdqX0pNckNSU01sMHc6MQ> Please forward to your colleagues, particularly those who don't read these mailing lists. Cheers, Michael Droettboom, and the matplotlib team |
From: Valentine C. J. <Jo....@na...> - 2013-07-02 16:11:33
|
Ran into a bug this morning with draggable annotations. It would seem that finalize_offset() forcibly overrides the annotation's textcoords status to "axes fraction" so it can set the coordinates properly. That's all well and good, but if you were using some text coordinates system other than "axes fraction" (say, for example, "data"), this can cause fun side effects such as annotations that used to pan around with the rest of the graph suddenly being frozen in place. :( Attached is a patch to restore the old textcoords mode in finalize_offset(). All it does is save the old textcoords mode before making the change to "axes fraction" and restores it afterwards. Hope this helps! -jo |
From: Michael D. <md...@st...> - 2013-07-02 15:08:34
|
On 07/02/2013 10:04 AM, Jason Grout wrote: > On 7/1/13 9:33 AM, Michael Droettboom wrote: >> SciPy 2013 was a great success. I didn't get good headcount at the >> matplotlib BOF, but it was a good number, and we had 15 participants at >> various points during the sprints. It was nice to see the diversity of >> experience with matplotlib at the sprints, and I hope we oldtimers were >> helpful to the newtimers getting started so they can continue to >> contribute in the future. It was also great to put some faces to many >> of the talented names I've been seeing on github and the mailing list >> lately. >> > On a slightly different, but related topic: is there any chance the > entries (or at least the winning entries) to the plotting contest could > be posted online? > My understanding is that they will be posted soon, along with the slides and other materials from the other papers. For the impatient, they are in this git repo: https://github.com/scipy/scipy2013_talks Mike |
From: Anthony S. <sc...@gm...> - 2013-07-02 14:33:46
|
On Tue, Jul 2, 2013 at 9:04 AM, Jason Grout <jas...@cr...>wrote: > On 7/1/13 9:33 AM, Michael Droettboom wrote: > > SciPy 2013 was a great success. I didn't get good headcount at the > > matplotlib BOF, but it was a good number, and we had 15 participants at > > various points during the sprints. It was nice to see the diversity of > > experience with matplotlib at the sprints, and I hope we oldtimers were > > helpful to the newtimers getting started so they can continue to > > contribute in the future. It was also great to put some faces to many > > of the talented names I've been seeing on github and the mailing list > > lately. > > > > On a slightly different, but related topic: is there any chance the > entries (or at least the winning entries) to the plotting contest could > be posted online? > Yes, We'll put try to put these on the conference website at the very least. Be Well Anthony > > Thanks, > > Jason > > > > ------------------------------------------------------------------------------ > 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: Jason G. <jas...@cr...> - 2013-07-02 14:21:39
|
On 7/1/13 9:33 AM, Michael Droettboom wrote: > SciPy 2013 was a great success. I didn't get good headcount at the > matplotlib BOF, but it was a good number, and we had 15 participants at > various points during the sprints. It was nice to see the diversity of > experience with matplotlib at the sprints, and I hope we oldtimers were > helpful to the newtimers getting started so they can continue to > contribute in the future. It was also great to put some faces to many > of the talented names I've been seeing on github and the mailing list > lately. > On a slightly different, but related topic: is there any chance the entries (or at least the winning entries) to the plotting contest could be posted online? Thanks, Jason |
From: Benjamin R. <ben...@ou...> - 2013-07-02 14:17:00
|
This is a constant source of confusion. The colorbar object should be thought of as just another subaxes. To get the ticks, you want the ticks from the colorbar's yaxis or xaxis object accordingly. Of course, I could have sworn we added a helper function for this at some point, but I could be wrong. I hope that helps! Ben Root On Tue, Jul 2, 2013 at 5:43 AM, Chao YUE <cha...@gm...> wrote: > Dear all matplotlib users, > > I found there is not a get_ticks method available for colorbar instance, > how could I quick get the ticks of a colorbar? > > thanks, > > Chao > -- > > *********************************************************************************** > Chao YUE > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) > UMR 1572 CEA-CNRS-UVSQ > Batiment 712 - Pe 119 > 91191 GIF Sur YVETTE Cedex > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 > > ************************************************************************************ > > > ------------------------------------------------------------------------------ > 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-02 14:13:37
|
There is the "set_over" and "set_under" members of a colormap, and the plt.colorbar() function takes an "extend='min'" argument to add an extra color at the beginning of the colorbar. Setting "extendrect=True", the added color will be rectangular instead of triangular. Hopefully that helps. Cheers, Ben Root On Tue, Jul 2, 2013 at 6:14 AM, Chao YUE <cha...@gm...> wrote: > One way I could think of is to make two contingent mat.axes.Axes, > with a smaller one setting as white backgroud, and the other bigger on > holding the colorbar. Is there some better way? > > Chao > > > On Tue, Jul 2, 2013 at 12:12 PM, Chao YUE <cha...@gm...> wrote: > >> Dear all, >> >> Does anyone have similar experience that to make a colorbar >> starting from a different color in the colormap? for example, to >> denote the region with invalid data. I attahced a figure to show >> what I would like to have, the withe region in the colorbar in the >> attahced figure shows no data. >> >> thanks a lot for any help, >> >> best, >> >> Chao >> >> -- >> >> *********************************************************************************** >> Chao YUE >> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) >> UMR 1572 CEA-CNRS-UVSQ >> Batiment 712 - Pe 119 >> 91191 GIF Sur YVETTE Cedex >> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 >> >> ************************************************************************************ >> > > > > -- > > *********************************************************************************** > Chao YUE > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) > UMR 1572 CEA-CNRS-UVSQ > Batiment 712 - Pe 119 > 91191 GIF Sur YVETTE Cedex > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 > > ************************************************************************************ > > > ------------------------------------------------------------------------------ > 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: Chao Y. <cha...@gm...> - 2013-07-02 10:14:46
|
One way I could think of is to make two contingent mat.axes.Axes, with a smaller one setting as white backgroud, and the other bigger on holding the colorbar. Is there some better way? Chao On Tue, Jul 2, 2013 at 12:12 PM, Chao YUE <cha...@gm...> wrote: > Dear all, > > Does anyone have similar experience that to make a colorbar > starting from a different color in the colormap? for example, to > denote the region with invalid data. I attahced a figure to show > what I would like to have, the withe region in the colorbar in the > attahced figure shows no data. > > thanks a lot for any help, > > best, > > Chao > > -- > > *********************************************************************************** > Chao YUE > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) > UMR 1572 CEA-CNRS-UVSQ > Batiment 712 - Pe 119 > 91191 GIF Sur YVETTE Cedex > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 > > ************************************************************************************ > -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************ |