SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(16)
2
(31)
3
(17)
4
(18)
5
(7)
6
(5)
7
(16)
8
(9)
9
(19)
10
(18)
11
(17)
12
(7)
13
(6)
14
(15)
15
(16)
16
(15)
17
(19)
18
(27)
19
(10)
20
(5)
21
(5)
22
(19)
23
(7)
24
(11)
25
(19)
26
(1)
27
(36)
28
(37)
29
(28)
30
(36)



Showing 6 results of 6

From: per f. <per...@gm...> - 2009年09月12日 18:43:09
hi all,
i am trying to plot asymmetric yaxis error bars. i have the following code:
import matplotlib.pyplot as plt
a = array([[ 0.5, 1.5],
 [ 0.7, 2.2],
 [ 2.8, 3.1]])
plt.errorbar([1,2,3],[1,2,3],yerr=a)
where each element in the list represents the -yerror, +yerror, like
the documentation for plt.errorbar asks for. when i try to plot this,
i get the following error:
/Library/Python/2.5/site-packages/matplotlib/axes.pyc in vlines(self,
x, ymin, ymax, colors, linestyles, label, **kwargs)
 3271
 3272 verts = [ ((thisx, thisymin), (thisx, thisymax))
-> 3273 for thisx, (thisymin,
thisymax) in zip(x,Y)]
 3274 #print 'creating line collection'
 3275 coll = mcoll.LineCollection(verts, colors=colors,
ValueError: too many values to unpack
any idea what's causing this?
the only way it lets me plot is if i do:
plt.errorbar([1,2,3],[1,2,3],yerr=[a[:, 0], a[:, 1]])
which is not the intended result, since the first column in a is the
-yerror and the second is +yerror. does anyone know how to fix this?
thank you.
From: Kamran R. K. <kr...@in...> - 2009年09月12日 15:56:00
On 09/11/2009 10:51 PM, Michael Droettboom wrote:
> The log doesn't show any actual plotting. Did you run the same example
> with debug-annoying turned on? Turning debugging on shouldn't change
> any behavior -- only output more debugging information to the console.
There seems to be something really, really wrong here. As running the
_same_ example with debug-annoying turned on just terminates the
execution at:
backend Agg version v2.2
backend_agg.new_figure_manager
-- 
Regards,
Kamran Riaz Khan.
http://inspirated.com/
From: Jouni K. S. <jk...@ik...> - 2009年09月12日 13:13:36
davide lasagna <las...@gm...> writes:
> gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Sounds like you don't have a complete g++ install. Since you mentioned
Ubuntu, I suppose the command you need to run is
 sudo apt-get install build-essential g++
and perhaps also
 sudo apt-get build-dep python-matplotlib
to install all the dependencies.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: davide l. <las...@gm...> - 2009年09月12日 12:41:15
Hi everybody,
I have a problem in building matplotlib from svn sources. Here is the output
of the build process.
#######################################################################################
smif1984@ubuntu [14:11:05] ~/cvs/matplotlib :sudo python setupegg.py develop
============================================================================
BUILDING MATPLOTLIB
 matplotlib: 1.0.svn
 python: 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC
 4.3.3]
 platform: linux2
REQUIRED DEPENDENCIES
 numpy: 1.2.1
 freetype2: 9.20.3
OPTIONAL BACKEND DEPENDENCIES
 libpng: 1.2.27
 Tkinter: no
 * TKAgg requires Tkinter
 wxPython: 2.8.9.1
 * WxAgg extension not required for wxPython >= 2.8
 pkg-config: looking for pygtk-2.0 gtk+-2.0
 * Package pygtk-2.0 was not found in the pkg-config
 * search path. Perhaps you should add the directory
 * containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
 * environment variable No package 'pygtk-2.0' found
 * You may need to install 'dev' package(s) to
 * provide header files.
 Gtk+: no
 * Could not find Gtk+ headers in any of
 * '/usr/local/include', '/usr/include', '.'
 Mac OS X native: no
 Qt: no
 Qt4: no
 Cairo: 1.4.12
OPTIONAL DATE/TIMEZONE DEPENDENCIES
 datetime: present, version unknown
 dateutil: matplotlib will provide
 pytz: 2008c
OPTIONAL USETEX DEPENDENCIES
 dvipng: 1.11
 ghostscript: 8.64
 latex: 3.141592
 pdftops: 0.10.5
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', '
matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay', 'dateutil', 'dateutil/zoneinfo']
running develop
running egg_info
writing lib/matplotlib.egg-info/PKG-INFO
writing namespace_packages to lib/matplotlib.egg-info/namespace_packages.txt
writing top-level names to lib/matplotlib.egg-info/top_level.txt
writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt
writing entry points to lib/matplotlib.egg-info/entry_points.txt
reading manifest template 'MANIFEST.in'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'examples/data/*'
warning: no files found matching 'lib/mpl_toolkits'
writing manifest file 'lib/matplotlib.egg-info/SOURCES.txt'
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API
-I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.6 -c src/ft2font.cpp -o
build/temp.linux-i686-2.6/src/ft2font.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
#############################################################################################
Any help is appreciated.
Cheers
Davide
From: lotrpy <lo...@gm...> - 2009年09月12日 09:15:38
Thanks, work like a charm.
On Sat, Sep 12, 2009 at 4:06 PM, Gary Ruben <gr...@bi...> wrote:
> gray() sets the default colormap for raster-based plot commands like
> imshow(), matshow() and figimage(). For scatter(), you need to set the
> colors of plot elements invidually. Setting the facecolor in the scatter()
> command will work for the example you tried:
>
> scatter(x,y,s=area, marker='^', facecolor=(.7,.7,.7), c='r')
>
> Gary R.
>
>
> lotrpy wrote:
>
>> Hello, Sorry for my broken english. I copy the source code from
>>
>> http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo.html
>> Just Insert one line "gray()" before the last line "show()".
>> But the picture is sitll colorful. not a gray picture.
>> It there somethig I missed. Thanks in advance.
>>
>
From: Gary R. <gr...@bi...> - 2009年09月12日 08:07:10
gray() sets the default colormap for raster-based plot commands like 
imshow(), matshow() and figimage(). For scatter(), you need to set the 
colors of plot elements invidually. Setting the facecolor in the 
scatter() command will work for the example you tried:
scatter(x,y,s=area, marker='^', facecolor=(.7,.7,.7), c='r')
Gary R.
lotrpy wrote:
> Hello, Sorry for my broken english. I copy the source code from
> http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo.html
> 
> Just Insert one line "gray()" before the last line "show()".
> But the picture is sitll colorful. not a gray picture.
> It there somethig I missed. Thanks in advance.
1 message has been excluded from this view by a project administrator.

Showing 6 results of 6

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /