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


Showing 20 results of 20

Hi Richard, what exactly wrong here?
I didn't found anything...
On 4 May 2007, Richard Vernhes wrote:
> Here is attached the eps file with misaligned labels and grid.
> Richard
-- 
Zack
From: Gustavo B. <gus...@gm...> - 2007年05月04日 21:46:26
Im developing a financial python/wx/sqlite and the client requested me a
chart. I first thought about using win32com to call excel but didnt sound so
clean to me. I googled a little and found matplot. Seems really great even
becouse it could be embedded on WX applications. But since im out of time i
just used the simplest example without embedding anything:
from pylab import *
class VButler(wx.Frame):
 (...)
 def first_chart (self,ticks):
 display = self.load_indicatorVol(ticks)
 colors=['ro','bo','go','yo','rs','bs','gs','ys']
 for row in display:
 try:
 cor=colors.pop(0)
 except:
 colors=['rx','bx','gx','yx','rv','bv','gv','yv']
 cor=colors.pop(0)
 plot([float(row[2])],[float(row[3])],cor)
 text(float(row[2]),float(row[3]),row[0])
 axis([0,10,0,25])
 show()
When i tryed to print using printing_in_wx.py i couldnt. It would only print
a part of the graphic, if i tryed to preview the print it would show me a
blank page. Ctrl+c had a problem since event.KeyCode is not a function and
was called like one, but fixed that it would copy the image to clipboard OK.
My boss is requesting me this software as soon as yesterday so i gave him
the option of first saving it as a PNG and then print... When i tryed to
build a py2exe i got some problems...
# My Setup Code
VolatilityButler = Target(
 # used for the versioninfo resource
 description = "VolatilityButler",
 version = "1.2.1",
 company_name = "Sala 1 / La Colina",
 name = "VolatilityButler",
 # what to build
 script = "vol_butler.py",
 other_resources = [(RT_MANIFEST, 1, manifest_template %
dict(prog="VolatilityButler")),],
 icon_resources = [(1, "butler.ico")],
 dest_base = "VolatilityButler")
setup(
 options = {"py2exe": {"compressed": 1,
 "optimize": 2,
 "ascii": 1,
 "bundle_files": 1}},
 zipfile = None,
 windows = [VolatilityButler],
 )
#Error after running it
The following modules appear to be missing
['FFT', 'LinearAlgebra', 'MA', 'MLab', 'Matrix', 'Numeric', 'Pyrex', '
Pyrex.Compiler', '_curses', 'backends.draw_if_interactive','
backends.new_figure_manager',................]
it was alot of modules not found and when i tryed to run the exe
Traceback (most recent call last):
 File "vol_butler.py", line 14, in <module>
 from pylab import *
 File "zipextimporter.pyo", line 82, in load_module
 File "pylab.pyo", line 1, in <module>
 File "zipextimporter.pyo", line 82, in load_module
 File "matplotlib\pylab.pyo", line 199, in <module>
 File "zipextimporter.pyo", line 82, in load_module
 File "matplotlib\cm.pyo", line 5, in <module>
 File "zipextimporter.pyo", line 82, in load_module
 File "matplotlib\colors.pyo", line 33, in <module>
 File "zipextimporter.pyo", line 82, in load_module
 File "matplotlib\numerix\__init__.pyo", line 147, in <module>
ImportError: No module named random_array
i looked at some setup.py examples, but they are from python 2.3 and using a
'share' folder that i dont have in my Python2.5 folder. But i tryed to make
it like the example.
data = glob.glob('C:\Python25\Lib\site-packages\matplotlib\*')
setup(
 options = {"py2exe": {"compressed": 1,
 "optimize": 2,
 "ascii": 1,
 "bundle_files": 1}},
 zipfile = None,
 windows = [VolatilityButler],
 data_files=[("matplotlibdata",data)],
 )
and the error while running the setup:
*** copy data files ***
error: can't copy 'C:\Python25\Lib\site-packages\matplotlib\backends':
doesn't exist or not a regular file
On 5/4/07, Alan Jackson <al...@aj...> wrote:
> On Fri, 4 May 2007 12:15:13 -0700 (PDT)
> kc1...@ya... wrote:
>
> > Saw this:
> >
> > http://www.originlab.com/www/products/GraphGallery.aspx?GID=26&s=8&lm=215
> >
> > Since I am not interested in wind direction, may be I can use stacked bar-chart. Still, how would I tie plot_data with it though?
grab "windrose.py" at the end of this thread
http://www.nabble.com/windrose-t1392107.html
I've not used it but I think it is what you are looking for: a
windrose module for python.
JDH
On Fri, 4 May 2007 12:15:13 -0700 (PDT)
kc1...@ya... wrote:
> Saw this:
> 
> http://www.originlab.com/www/products/GraphGallery.aspx?GID=26&s=8&lm=215
> 
> Since I am not interested in wind direction, may be I can use stacked bar-chart. Still, how would I tie plot_data with it though?
I don't do what you are trying to do, but I do some other weather plots,
http://www.oplnk.net/~ajackson/weather/
-- 
-----------------------------------------------------------------------
| Alan K. Jackson | To see a World in a Grain of Sand |
| al...@aj... | And a Heaven in a Wild Flower, |
| www.ajackson.org | Hold Infinity in the palm of your hand |
| Houston, Texas | And Eternity in an hour. - Blake |
-----------------------------------------------------------------------
Saw this:
http://www.originlab.com/www/products/GraphGallery.aspx?GID=26&s=8&lm=215
Since I am not interested in wind direction, may be I can use stacked bar-chart. Still, how would I tie plot_data with it though?
Regards,
> -----Original Message-----
> From: mat...@li... 
> [mailto:mat...@li...] On 
> Behalf Of kc1...@ya...
> Sent: Friday, May 04, 2007 9:41 AM
> To: mat...@li...
> Subject: [Matplotlib-users] What kind of chart should I use?
> 
> 
> Hi list,
> 
> I have a set of time series data which is year's worth of 
> wind speed at a particular place (one data point per minute). 
> I want to see how wind speed spreads throughout the day. I 
> can do a scatter char with 24 hours of the day vs wind speed 
> but then I end up with something that's not too useful (too 
> many data points). What's more interesting is to present the 
> data as a time / wind speed / frequency plot. 
> 
> The kind of plot shown in image_interp.py looks interesting. 
> Is there a way to combine the capability of plot_date and 
> imshow? If so, may be I can have hour of the day vs 
> wind-speed with the color be a function of the data frequency. 
> 
> Thanks,
> 
> --
> John Henry
> 
 
--
John Henry
From: Robert K. <rob...@gm...> - 2007年05月04日 18:30:11
Robert Kern wrote:
> Christopher Barker wrote:
>> Samuel M. Smith wrote:
>>> I did not have this problem with the matplotlib on
>>> http://pythonmac.org/packages/py25-fat/dmg/matplotlib-0.90.0-py2.5-macosx10.4-2007年02月20日.dmg
>> That one was probably built with a statically linked freetype, as the 
>> one Apple provides doesn't work with MPL.
> 
> No, it was built against a dynamic freetype library which was not included with
> the package. If it had been statically linked, there wouldn't be a problem.
My deepest apologies. I misread your post as referring to the Scipy Superpack
package. You are correct.
-- 
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
 -- Umberto Eco
From: Robert K. <rob...@gm...> - 2007年05月04日 18:26:37
Samuel M. Smith wrote:
> So the conclusion is pythonmac matplotlib uses a statically linked 
> freetype so it doesn't look into /usr/local/lib
> and Fonnesbeck's scipy superpack matplotlib is using a dynamically 
> linked freetype which is looking into /usr/local/lib
Yes.
-- 
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
 -- Umberto Eco
From: Samuel M. S. <sm...@sa...> - 2007年05月04日 18:21:28
So the conclusion is pythonmac matplotlib uses a statically linked 
freetype so it doesn't look into /usr/local/lib
and Fonnesbeck's scipy superpack matplotlib is using a dynamically 
linked freetype which is looking into /usr/local/lib
On 4 May 2007, at 12:09 , Robert Kern wrote:
> Christopher Barker wrote:
>> Samuel M. Smith wrote:
>>> I did not have this problem with the matplotlib on
>>> http://pythonmac.org/packages/py25-fat/dmg/matplotlib-0.90.0- 
>>> py2.5-macosx10.4-2007年02月20日.dmg
>>
>> That one was probably built with a statically linked freetype, as the
>> one Apple provides doesn't work with MPL.
>
> No, it was built against a dynamic freetype library which was not 
> included with
> the package. If it had been statically linked, there wouldn't be a 
> problem.
>
> -- 
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a 
> harmless enigma
> that is made terrible by our own mad attempt to interpret it as 
> though it had
> an underlying truth."
> -- Umberto Eco
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
From: Richard V. <ric...@po...> - 2007年05月04日 18:15:09
Attachments: test.eps
Here is attached the eps file with misaligned labels and grid.
Richard
From: Robert K. <rob...@gm...> - 2007年05月04日 18:10:30
Christopher Barker wrote:
> Samuel M. Smith wrote:
>> I did not have this problem with the matplotlib on
>> http://pythonmac.org/packages/py25-fat/dmg/matplotlib-0.90.0-py2.5-macosx10.4-2007年02月20日.dmg
> 
> That one was probably built with a statically linked freetype, as the 
> one Apple provides doesn't work with MPL.
No, it was built against a dynamic freetype library which was not included with
the package. If it had been statically linked, there wouldn't be a problem.
-- 
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
 -- Umberto Eco
From: Christopher B. <Chr...@no...> - 2007年05月04日 17:51:03
Samuel M. Smith wrote:
> I did not have this problem with the matplotlib on
> http://pythonmac.org/packages/py25-fat/dmg/matplotlib-0.90.0-py2.5-macosx10.4-2007年02月20日.dmg
That one was probably built with a statically linked freetype, as the 
one Apple provides doesn't work with MPL.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Christopher B. <Chr...@no...> - 2007年05月04日 17:49:14
It sounds like you want a 2-d histogram: i.e. bins for each time and
speed-range combination.
I'm not sure how to plot that as a 3-d plot, but contouring it might
work OK.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Christopher B. <Chr...@no...> - 2007年05月04日 17:46:32
Darren Dale wrote:
> Maybe you could post your file? Mine looks ok, see attached.
A close look at that attached file shows that the grid lines are not 
quite lined up with the tics -- by about a line width.
I suspect that the grid code and tic code are rounding differently or 
something.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Samuel M. S. <sm...@sa...> - 2007年05月04日 17:01:19
I needed to use some function from scipy. It appeared that the 
easiest way to install it was to use the scipy superpack
http://idisk.mac.com/fonnesbeck-Public/ScipySuperpack-PPC-10.4-py2.5.zip
After installing ipython --pylab exits with error on startup see below:
It appears to be a freetype problem. I have the macports freetype in
/opt/local/lib/libfreetype.6.dylib
I added a symbolic link in /usr/local/lib to the /opt/local/lib and 
that fixed the problem
sudo ln -s /opt/local/lib/libfreetype.6.dylib /usr/local/lib/ 
libfreetype.6.dylib
Since I did not have this problem with the matplotlib on
http://pythonmac.org/packages/py25-fat/dmg/matplotlib-0.90.0-py2.5- 
macosx10.4-2007年02月20日.dmg
I wonder why this occurred with scypy super pack? I assume there is a 
difference in how the two were built
where one could find the free typelib and the other couldn't
ipython --pylab
loaded rc file /Users/samuel/.matplotlib/matplotlibrc
matplotlib version 0.90.0
verbose.level helpful
interactive is False
units is False
platform is darwin
numerix numpy 1.0.3.dev3728
Traceback (most recent call last):
 File "/Library/Frameworks/Python.framework/Versions/Current/bin/ 
ipython", line 27, in <module>
 IPython.Shell.start().mainloop()
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/IPython/Shell.py", line 1111, in start
 return shell(user_ns = user_ns)
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/IPython/Shell.py", line 1028, in __init__
 shell_class=MatplotlibMTShell)
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/IPython/Shell.py", line 767, in __init__
 on_kill=[self.wxexit])
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/IPython/ipmaker.py", line 95, in make_IPython
 embedded=embedded,**kw)
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/IPython/Shell.py", line 571, in __init__
 user_ns,b2 = self._matplotlib_config(name,user_ns)
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/IPython/Shell.py", line 463, in 
_matplotlib_config
 from matplotlib import backends
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/backends/__init__.py", line 55, in 
<module>
 new_figure_manager, draw_if_interactive, show = pylab_setup()
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/backends/__init__.py", line 24, in 
pylab_setup
 globals(),locals(),[backend_name])
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/backends/backend_wxagg.py", line 
21, in <module>
 from matplotlib.figure import Figure
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/figure.py", line 7, in <module>
 from axes import Axes, Subplot, PolarSubplot, PolarAxes
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/axes.py", line 17, in <module>
 from axis import XAxis, YAxis
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/axis.py", line 25, in <module>
 from font_manager import FontProperties
 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/font_manager.py", line 39, in 
<module>
 from matplotlib import ft2font
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/matplotlib/ft2font.so, 2): Library not 
loaded: /usr/local/lib/libfreetype.6.dylib
 Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/matplotlib/ft2font.so
 Reason: image not found
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
From: <kc1...@ya...> - 2007年05月04日 16:41:18
Hi list,
I have a set of time series data which is year's worth of wind speed at a particular place (one data point per minute). I want to see how wind speed spreads throughout the day. I can do a scatter char with 24 hours of the day vs wind speed but then I end up with something that's not too useful (too many data points). What's more interesting is to present the data as a time / wind speed / frequency plot. 
The kind of plot shown in image_interp.py looks interesting. Is there a way to combine the capability of plot_date and imshow? If so, may be I can have hour of the day vs wind-speed with the color be a function of the data frequency. 
Thanks,
 
--
John Henry
From: Darren D. <dd...@co...> - 2007年05月04日 15:59:48
Attachments: test.eps
On Friday 04 May 2007 11:10:32 am Richard Vernhes wrote:
> Hi to all,
> I'm new to Matplotlib and I noticed a problem concerning the placement of
> tick labels when saving a figure to a postscript file. I'm using windows XP
> with Matplotlib 0.90.0 and the default setup and backend. I also use
> ipython with the -pylab option.
> So, I type plot((1,2,3)) in the shell and I get a figure similar to that
> presented in the user guide. Then I save it as an eps file and when I open
> the resulting file (using GSVIEW) I notice that the labels on the y axis
> are not properly aligned. That is, the 1.5 and 2.5 labels are almost stuck
> to the y axis, while the 1.0, 2.0 and 3.0 labels are farther. Furthermore,
> when I add a grid to my plot and save it to eps, I notice that the grid
> lines are not well aligned with the ticks. This problem seems to occur both
> with ps, eps and pdf files. Does anybody know what's the problem here?
Maybe you could post your file? Mine looks ok, see attached.
From: Tommy G. <tg...@ma...> - 2007年05月04日 15:55:01
I have some code that simplified looks like this:
class cKBO(object):
	def __init__(cls):
		cls.a = 0.
		cls.e = 0.
lines = open("test.file","r").readlines()
nlist = []
for line in lines:
	obj = cKBO()
	(a,e) = line.split
	obj.a = float(a)
	obj.e = float(e)
	nlist.append(obj)
I would now like to plot a vs e for all the obj objects in nlist.
how do I do that? I tried
plot(nlist[:].a,nlist[:].e,'ko')
show()
but that resulted in
raceback (most recent call last):
 File "/Users/tgrav/Work/MyCode/Python/MOPS/ckbos.py", line 108, in ?
 plot(nlist[:].a,nlist[:].e,'ko')
AttributeError: 'list' object has no attribute 'a'
Which is understandable. But how do I most easily convert a list of 
class
objects into two lists of object variables?
Cheers
 Tommy
From: Daniel F. <dan...@ya...> - 2007年05月04日 15:48:56
Hi Nadia,
Actually, I have successfully install matplotlib by
being patient.
I used
CC=CC python setup.py build
first and when it stops for the compilation of a .c
file, I switch to
CC=cc python setup.py build
and let it run and switches again when it stops.
Probably changing the
Makefile as you say is a better way.
Now I have an import error though. I definitely have
numpy installed and
numpy.test() show all tests passed.
>>> import matplotlib
>>> import pylab
The import of the numpy version of the _transforms
module,
_ns_transforms, failed. This is is either because
numpy was
unavailable when matplotlib was compiled, because a
dependency of
_ns_transforms could not be satisfied, or because the
build flag for
this module was turned off in setup.py. If it appears
that
_ns_transforms was not built, make sure you have a
working copy of
numpy and then re-install matplotlib. Otherwise, the
following
traceback gives more details:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/yfan/usr/local/share/ASpy25/lib/python2.5/site-packages/matplotlib/pylab.py",
line 203, in <module>
from axes import Axes, PolarAxes
File
"/home/yfan/usr/local/share/ASpy25/lib/python2.5/site-packages/matplotlib/axes.py",
line 14, in <module>
import artist
File
"/home/yfan/usr/local/share/ASpy25/lib/python2.5/site-packages/matplotlib/artist.py",
line 4, in <module>
from transforms import identity_transform
File
"/home/yfan/usr/local/share/ASpy25/lib/python2.5/site-packages/matplotlib/transforms.py",
line 223, in <module>
from _transforms import Value, Point, Interval, Bbox,
Affine
File
"/home/yfan/usr/local/share/ASpy25/lib/python2.5/site-packages/matplotlib/_transforms.py",
line 17, in <module>
from matplotlib._ns_transforms import *
ImportError: ld.so.1: python: fatal: relocation error:
file
/home/yfan/usr/local/share/ASpy25/lib/python2.5/site-packages/matplotlib/_ns_transforms.so:
symbol __1cDstdMdomain_error2T6M_v_: referenced symbol
not found
Nadia Dencheva wrote:
> Hi Daniel,
>
> I've seen that and the only way I can make Python
pick up the right
> compiler/linker is to modify
python<version#>/config/Makefile,
> specifically
> the fields for CC and CXX
>
> CC = gcc
> CXX = g 
>
> but also on some occasions comment out pic32
>
> CCSHARED= #-xcode=pic32
>
> It is possible that the compilation of ctraits.c
will fail because it
> doesn't compile with g and needs gcc in which case
you can run the
> command
> manually with gcc and continue building the rest of
the package.
>
> These are all the gory details of compiling
matplotlib on Solaris.
> It's possible but it's a pain, I wish someone has a
better solution
> for this. (May be Sun/Solaris will disappear before
that.)
>
> Nadia
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
From: Richard V. <ric...@po...> - 2007年05月04日 15:10:35
Hi to all,
I'm new to Matplotlib and I noticed a problem concerning the placement of tick
labels when saving a figure to a postscript file. I'm using windows XP with
Matplotlib 0.90.0 and the default setup and backend. I also use ipython with
the -pylab option.
So, I type plot((1,2,3)) in the shell and I get a figure similar to that
presented in the user guide. Then I save it as an eps file and when I open the
resulting file (using GSVIEW) I notice that the labels on the y axis are not
properly aligned. That is, the 1.5 and 2.5 labels are almost stuck to the y
axis, while the 1.0, 2.0 and 3.0 labels are farther. Furthermore, when I add a
grid to my plot and save it to eps, I notice that the grid lines are not well
aligned with the ticks. This problem seems to occur both with ps, eps and pdf
files. Does anybody know what's the problem here?
Thank you
From: Nadia D. <den...@st...> - 2007年05月04日 13:05:17
Hi Daniel,
I've seen that and the only way I can make Python pick up the right
compiler/linker is to modify python<version#>/config/Makefile, specifically
the fields for CC and CXX
CC = gcc
CXX = g++
but also on some occasions comment out pic32
CCSHARED= #-xcode=pic32
It is possible that the compilation of ctraits.c will fail because it
doesn't compile with g++ and needs gcc in which case you can run the command
manually with gcc and continue building the rest of the package.
These are all the gory details of compiling matplotlib on Solaris.
It's possible but it's a pain, I wish someone has a better solution
for this. (May be Sun/Solaris will disappear before that.)
Nadia
Daniel Fan wrote:
> I think the problem is the building use the same
> command for compiling
> .c file and .cpp/.cxx file. It uses whatever I set to
> $CC to compile the
> file and ignore $CXX.
> I am using the latest ActivePython for solaris.
> I've tried to set $CC=g , then I got the following
> error message:
> compute:/home/yfan/usr/local/src/matplotlib-0.87.7>
> CC=g python
> setup.py build
> GTK requires pygtk
> GTKAgg requires pygtk
> running build
> running build_py
> running build_ext
> building 'matplotlib._agg' extension
> g -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
> -Iswig
> -I/home/yfan/usr/local/share/ASpy25/include/python2.5
> -c src/agg.cxx -o
> build/temp.solaris-2.10-sun4u-2.5/src/agg.o
> g : language code=pic32 not recognized
> g : src/agg.cxx: linker input file unused since
> linking not done
> g -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
> -Iswig
> -I/home/yfan/usr/local/share/ASpy25/include/python2.5
> -c
> agg23/src/agg_trans_affine.cpp -o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_trans_affine.o
> g : language code=pic32 not recognized
> g : agg23/src/agg_trans_affine.cpp: linker input file
> unused since
> linking not done
> g -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
> -Iswig
> -I/home/yfan/usr/local/share/ASpy25/include/python2.5
> -c
> agg23/src/agg_path_storage.cpp -o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_path_storage.o
> g : language code=pic32 not recognized
> g : agg23/src/agg_path_storage.cpp: linker input file
> unused since
> linking not done
> g -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
> -Iswig
> -I/home/yfan/usr/local/share/ASpy25/include/python2.5
> -c
> agg23/src/agg_bezier_arc.cpp -o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_bezier_arc.o
> g : language code=pic32 not recognized
> g : agg23/src/agg_bezier_arc.cpp: linker input file
> unused since
> linking not done
> g -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
> -Iswig
> -I/home/yfan/usr/local/share/ASpy25/include/python2.5
> -c
> agg23/src/agg_vcgen_dash.cpp -o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_dash.o
> g : language code=pic32 not recognized
> g : agg23/src/agg_vcgen_dash.cpp: linker input file
> unused since
> linking not done
> g -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
> -Iswig
> -I/home/yfan/usr/local/share/ASpy25/include/python2.5
> -c
> agg23/src/agg_vcgen_stroke.cpp -o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_stroke.o
> g : language code=pic32 not recognized
> g : agg23/src/agg_vcgen_stroke.cpp: linker input file
> unused since
> linking not done
> g -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
> -Iswig
> -I/home/yfan/usr/local/share/ASpy25/include/python2.5
> -c
> agg23/src/agg_rasterizer_scanline_aa.cpp -o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_rasterizer_scanline_aa.o
> g : language code=pic32 not recognized
> g : agg23/src/agg_rasterizer_scanline_aa.cpp: linker
> input file unused
> since linking not done
> g -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
> -Iswig
> -I/home/yfan/usr/local/share/ASpy25/include/python2.5
> -c
> agg23/src/agg_curves.cpp -o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_curves.o
> g : language code=pic32 not recognized
> g : agg23/src/agg_curves.cpp: linker input file
> unused since linking
> not done
> CC -G build/temp.solaris-2.10-sun4u-2.5/src/agg.o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_trans_affine.o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_path_storage.o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_bezier_arc.o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_dash.o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_stroke.o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_rasterizer_scanline_aa.o
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_curves.o
> -lstdc -lm -o
> build/lib.solaris-2.10-sun4u-2.5/matplotlib/_agg.so
> ld: fatal: file
> build/temp.solaris-2.10-sun4u-2.5/src/agg.o: open
> failed: No such file or directory
> ld: fatal: file
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_trans_affine.o:
> open
> failed: No such file or directory
> ld: fatal: file
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_path_storage.o:
> open
> failed: No such file or directory
> ld: fatal: file
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_bezier_arc.o:
> open
> failed: No such file or directory
> ld: fatal: file
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_dash.o:
> open
> failed: No such file or directory
> ld: fatal: file
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_stroke.o:
> open
> failed: No such file or directory
> ld: fatal: file
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_rasterizer_scanline_aa.o:
> open failed: No such file or directory
> ld: fatal: file
> build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_curves.o:
> open failed:
> No such file or directory
> ld: warning: symbol `clog' has differing types:
> (file /usr/local/lib/libstdc .so type=OBJT; file
> /usr/lib/libm.so
> type=FUNC);
> /usr/local/lib/libstdc .so definition taken
> ld: fatal: File processing errors. No output written
> to
> build/lib.solaris-2.10-sun4u-2.5/matplotlib/_agg.so
> error: command 'CC' failed with exit status 1
> 
> 
> Nadia Dencheva wrote:
>> Try building it with g . Generally you should be
> able to set
>> the env variable CC to g but I think distutils in
> python 2.3
>> does not look at the environment variables and you
> may need to tweak
>> python2.3/config/Makefile to use g instead of
> Sun's cc.
>> I may be wrong.
>> Later versions of python respect $CC.
>>
>> Nadia Dencheva
>>
>> Daniel Fan wrote:
>>> Hi, I am trying install matplotlib on a solaris
>>> machine. When I run python setup.py build, I get
> the following error:
>>> GTK requires pygtk
>>> GTKAgg requires pygtk
>>> TKAgg requires TkInter
>>> running build
>>> running build_py
>>> running build_ext
>>> building 'matplotlib._agg' extension
>>> cc -DNDEBUG -O -Iagg23/include -Isrc -Iswig
>>> -I/usr/local/lang/python/2.3.2/include/python2.3 -c
>>> src/agg.cxx -o
> build/temp.solaris-2.10-sun4u-2.3/src/agg.o
>>> cc: No input file specified, no output generated
>>> error: command 'cc' failed with exit status 1
>>>
>>> How can there be no input file?
>>>
>>>
>>>
>>>
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam? Yahoo! Mail has the best spam
> protection around
>>> http://mail.yahoo.com
>>>
> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2
> express and take
>>> control of your XML. No limits. Just data. Click to
> get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Showing 20 results of 20

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 によって変換されたページ (->オリジナル) /