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
(1) |
2
(4) |
3
(12) |
|
4
(5) |
5
(30) |
6
(21) |
7
(20) |
8
(11) |
9
(9) |
10
(12) |
|
11
(11) |
12
(22) |
13
(22) |
14
(38) |
15
(25) |
16
(23) |
17
(20) |
|
18
(7) |
19
(13) |
20
(13) |
21
(18) |
22
(6) |
23
(7) |
24
(4) |
|
25
(9) |
26
(35) |
27
(37) |
28
(22) |
29
(27) |
30
(12) |
31
(4) |
|
From: Mauro C. <mau...@gm...> - 2009-01-21 23:34:29
|
Dear ALL, I received a report of a Mac OS X user who attempted to run my recently released biodiversity mapping software based on MPL/Basemap and wxPython. As I have no access to an Apple Macintosh machine nor have much experience with that OS anyway, I am posting the error report here in the hope some of you nice guys can help. I am also posting the steps the user followed in order to install the software on the Mac OS X. From the error log, it looks that there may be some issue with the version fo MPL he is using (which is the one packaged with Enthought Python). Thanks in advance for any assistance you can provide. With best regards, ======================== Getting the package to work: 1. need networkx download .egg file from here: http://pypi.python.org/pypi/networkx/ install with: easy_install /Users/nick/Desktop/downloads/networkx-0.99-py2.5.egg (get easy_install from here: http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install http://peak.telecommunity.com/DevCenter/EasyInstall#downloading-and-installing-a-package ) 2. need mpl_toolkits.basemap: download source from here: http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=142792/&abmode=1 install instructions: http://matplotlib.sourceforge.net/basemap/doc/html/users/installing.html 2.1 - download & unpack cd /Users/nick/Desktop/downloads/basemap-0.99.3/ cd geos-2.2.3 export GEOS_DIR=/usr/local ./configure --prefix=$GEOS_DIR make sudo make install cd .. python setup.py install in python: mpl_toolkits.basemap import Basemap need matplotlib 0.98 not 0.91 in python: mpl_toolkits.basemap import Basemap need matplotlib 0.98 not 0.91 2.2 - download updated version http://sourceforge.net/project/showfiles.php?group_id=80706 download basemap: http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=142792&release_id=653688 double click: matplotlib-0.98.5.2-py2.5-macosx10.5.mpkg 3. that didn't work, installing WHOLE NEW VERSION of Enthought which has matplotlib 0.98 http://www.enthought.com/products/epddownload.php redo install of basemap: http://matplotlib.sourceforge.net/basemap/doc/html/users/installing.html cd /Users/nick/Desktop/downloads/basemap-0.99.3/ cd geos-2.2.3 export GEOS_DIR=/usr/local ./configure --prefix=$GEOS_DIR make sudo make install cd .. python setup.py install in python: mpl_toolkits.basemap import Basemap invalid syntax from mpl_toolkits.basemap import Basemap this works! test: cd examples python simpletest.py python run_all.py basemap: most things worked, but not all. Neat mapping capability! Probably slow though... ======================== Basically, the most important thing was re-installing the newest version of Enthought, so as to get matplotlib 0.98, and then installing basemap. So I got all of that working, then ran 'python Croizat.py' and got the following error which has me stymied: ========================================== mws2:/bioinformatics/croizat/Croizat nick$ python -V Python 2.5.2 |EPD Py25 4.1.30101| mws2:/bioinformatics/croizat/Croizat nick$ python Croizat.py matplotlib data path /Library/Frameworks/Python.framework/Versions/4.1.30101/lib/python2.5/site-packages/matplotlib-0.98.3.0001-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data loaded rc file /Users/nick/.matplotlib/matplotlibrc matplotlib version 0.98.3 verbose.level helpful interactive is True units is False platform is darwin numerix numpy 1.1.1 $HOME=/Users/nick CONFIGDIR=/Users/nick/.matplotlib Using fontManager instance from /Users/nick/.matplotlib/fontManager.cache backend TkAgg version 8.4 Traceback (most recent call last): File "Croizat.py", line 71, in <module> Croizat = Application(0) File "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/python2.5/site-packages/wxPython-2.8.7.1.0003_s-py2.5-macosx-10.3-fat.egg/wx/_core.py", line 7836, in __init__ self._BootstrapApp() File "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/python2.5/site-packages/wxPython-2.8.7.1.0003_s-py2.5-macosx-10.3-fat.egg/wx/_core.py", line 7433, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "Croizat.py", line 62, in OnInit MainWindow = MainForm(None, -1, "") File "/home/maurobio/Projetos/Croizat/source/MainForm.py", line 201, in __init__ File "/home/maurobio/Projetos/Croizat/source/MainForm.py", line 320, in __do_layout File "/home/maurobio/Projetos/Croizat/source/MainForm.py", line 1187, in DrawMap File "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/python2.5/site-packages/basemap-0.99.1.0001-py2.5-macosx-10.3-fat.egg/mpl_toolkits/basemap/__init__.py", line 1361, in drawcoastlines self.set_axes_limits(ax=ax) File "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/python2.5/site-packages/basemap-0.99.1.0001-py2.5-macosx-10.3-fat.egg/mpl_toolkits/basemap/__init__.py", line 2501, in set_axes_limits figManager.canvas.draw() AttributeError: 'NoneType' object has no attribute 'canvas' ========================================== -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: ramirodsl <ram...@gm...> - 2009-01-21 22:14:29
|
Hi, I'm experiencing a weird problem with the bounding box of my eps files. I have a script that produces my plots and saves them as eps files. For some reason the x coordinate of the bounding box is negative. The bounding box of the files are: %%BoundingBox: -54 36 666 756 Then, when I try to print or show these files with gv they are clipped at the left side. I found the translate command on the EPS file format specification, so I added: 54 0 translate to the eps header. Everything looked ok until I tried to include these files in a tex/ps document. Now they get clipped on the right side! I've tried and googled several things and can't get it to work. Does anyone knows what is going on? Thanks in advance Ramiro -- View this message in context: http://www.nabble.com/negative-bounding-box-in-eps-files-tp21593093p21593093.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: David T. <dl...@ca...> - 2009-01-21 22:09:22
|
Got it working using tkAgg by recompiling matplotlib from source. David On Jan 21 2009, David Trethewey wrote: >I have switched between python2.5 and 2.6, so maybe I've messed up the >installation somehow, and it's not looking for things in the right >directories. > >I fiddled around with the versions of cairo and pycairo, and got them to >match but still got errors: > >>>> import gtk >Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", >line 48, in <module> > from gtk import _gtk >ImportError: /usr/lib64/libcairo.so.2: undefined symbol: >pixman_region32_rectangles > >Also using tk doesn't work either: > >>>> import pylab >Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib64/python2.6/site-packages/pylab.py", line 1, in <module> > from matplotlib.pylab import * > File "/usr/lib64/python2.6/site-packages/matplotlib/pylab.py", line >253, in <module> > from matplotlib.pyplot import * > File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line >75, in <module> > new_figure_manager, draw_if_interactive, show = pylab_setup() > File >"/usr/lib64/python2.6/site-packages/matplotlib/backends/__init__.py", >line 25, in pylab_setup > globals(),locals(),[backend_name]) > File >"/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_tkagg.py", >line 8, in <module> > import tkagg # Paint image to Tk photo blitter extension > File >"/usr/lib64/python2.6/site-packages/matplotlib/backends/tkagg.py", line >1, in <module> > import _tkagg >ImportError: No module named _tkagg > > >John Hunter wrote: >> On Wed, Jan 21, 2009 at 11:56 AM, Michael Droettboom <md...@st...> >> wrote: >>> I haven't seen this before, but it definitely looks like an installation >>> problem with pygtk and/or pycairo, since it fails without matplotlib >>> even entering into it. In particular, it looks like a possible mismatch >>> between the versions of pycairo and cairo. Is everything installed from >>> your distro's packages, or did you build this yourself? >>> >>> Until "import gtk" works, there's little matplotlib can do, >>> unfortunately. You may want to head over to the pygtk list for help if >>> you're still stuck. >>> >> >> Or simply set your backend to tkagg >> >> http://matplotlib.sourceforge.net/users/customizing.html >> http://matplotlib.sourceforge.net/faq/installing_faq.html#id1 >> >> JDH > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: SourcForge Community SourceForge wants > to tell your story. http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ Matplotlib-users mailing > list Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: David T. <dl...@ca...> - 2009-01-21 18:50:09
|
I have switched between python2.5 and 2.6, so maybe I've messed up the
installation somehow, and it's not looking for things in the right
directories.
I fiddled around with the versions of cairo and pycairo, and got them to
match but still got errors:
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py",
line 48, in <module>
from gtk import _gtk
ImportError: /usr/lib64/libcairo.so.2: undefined symbol:
pixman_region32_rectangles
Also using tk doesn't work either:
>>> import pylab
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib64/python2.6/site-packages/matplotlib/pylab.py", line
253, in <module>
from matplotlib.pyplot import *
File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line
75, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File
"/usr/lib64/python2.6/site-packages/matplotlib/backends/__init__.py",
line 25, in pylab_setup
globals(),locals(),[backend_name])
File
"/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
line 8, in <module>
import tkagg # Paint image to Tk photo blitter extension
File
"/usr/lib64/python2.6/site-packages/matplotlib/backends/tkagg.py", line
1, in <module>
import _tkagg
ImportError: No module named _tkagg
John Hunter wrote:
> On Wed, Jan 21, 2009 at 11:56 AM, Michael Droettboom <md...@st...> wrote:
>> I haven't seen this before, but it definitely looks like an installation
>> problem with pygtk and/or pycairo, since it fails without matplotlib
>> even entering into it. In particular, it looks like a possible mismatch
>> between the versions of pycairo and cairo. Is everything installed from
>> your distro's packages, or did you build this yourself?
>>
>> Until "import gtk" works, there's little matplotlib can do,
>> unfortunately. You may want to head over to the pygtk list for help if
>> you're still stuck.
>>
>
> Or simply set your backend to tkagg
>
> http://matplotlib.sourceforge.net/users/customizing.html
> http://matplotlib.sourceforge.net/faq/installing_faq.html#id1
>
> JDH
|
|
From: John H. <jd...@gm...> - 2009-01-21 18:01:03
|
On Wed, Jan 21, 2009 at 11:56 AM, Michael Droettboom <md...@st...> wrote: > I haven't seen this before, but it definitely looks like an installation > problem with pygtk and/or pycairo, since it fails without matplotlib > even entering into it. In particular, it looks like a possible mismatch > between the versions of pycairo and cairo. Is everything installed from > your distro's packages, or did you build this yourself? > > Until "import gtk" works, there's little matplotlib can do, > unfortunately. You may want to head over to the pygtk list for help if > you're still stuck. > Or simply set your backend to tkagg http://matplotlib.sourceforge.net/users/customizing.html http://matplotlib.sourceforge.net/faq/installing_faq.html#id1 JDH |
|
From: Michael D. <md...@st...> - 2009-01-21 17:56:42
|
I haven't seen this before, but it definitely looks like an installation
problem with pygtk and/or pycairo, since it fails without matplotlib
even entering into it. In particular, it looks like a possible mismatch
between the versions of pycairo and cairo. Is everything installed from
your distro's packages, or did you build this yourself?
Until "import gtk" works, there's little matplotlib can do,
unfortunately. You may want to head over to the pygtk list for help if
you're still stuck.
Mike
David Trethewey wrote:
> Michael Droettboom wrote:
>
>> What does
>>
>> python -c "import gtk"
>>
>> say?
>>
> python2.6 -c "import gtk"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py",
> line 48, in <module>
> from gtk import _gtk
> File "/usr/lib64/python2.6/site-packages/cairo/__init__.py", line 1,
> in <module>
> from _cairo import *
> ImportError: /usr/lib64/python2.6/site-packages/cairo/_cairo.so:
> undefined symbol: cairo_ps_surface_set_eps
>
>
>> Mike
>>
>> David Trethewey wrote:
>>
>>> Although I have python-gtk installed I still get this error message when
>>> importing pylab. I'm not sure why. Can anyone enlighten me?
>>>
>>>
>>>
>>>>>> from pylab import *
>>>>>>
>>>>>>
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> File "/usr/lib64/python2.6/site-packages/pylab.py", line 1, in <module>
>>> from matplotlib.pylab import *
>>> File "/usr/lib64/python2.6/site-packages/matplotlib/pylab.py", line
>>> 253, in <module>
>>> from matplotlib.pyplot import *
>>> File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line
>>> 75, in <module>
>>> new_figure_manager, draw_if_interactive, show = pylab_setup()
>>> File
>>> "/usr/lib64/python2.6/site-packages/matplotlib/backends/__init__.py",
>>> line 25, in pylab_setup
>>> globals(),locals(),[backend_name])
>>> File
>>> "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py",
>>>
>>> line 10, in <module>
>>> from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
>>> FigureCanvasGTK,\
>>> File
>>> "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py",
>>> line 11, in <module>
>>> raise ImportError("Gtk* backend requires pygtk to be installed.")
>>> ImportError: Gtk* backend requires pygtk to be installed.
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> This SF.net email is sponsored by:
>>> SourcForge Community
>>> SourceForge wants to tell your story.
>>> http://p.sf.net/sfu/sf-spreadtheword
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>
>
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
|
|
From: David T. <dl...@ca...> - 2009-01-21 17:45:12
|
Michael Droettboom wrote:
> What does
>
> python -c "import gtk"
>
> say?
python2.6 -c "import gtk"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py",
line 48, in <module>
from gtk import _gtk
File "/usr/lib64/python2.6/site-packages/cairo/__init__.py", line 1,
in <module>
from _cairo import *
ImportError: /usr/lib64/python2.6/site-packages/cairo/_cairo.so:
undefined symbol: cairo_ps_surface_set_eps
>
> Mike
>
> David Trethewey wrote:
>> Although I have python-gtk installed I still get this error message when
>> importing pylab. I'm not sure why. Can anyone enlighten me?
>>
>>
>>>>> from pylab import *
>>>>>
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "/usr/lib64/python2.6/site-packages/pylab.py", line 1, in <module>
>> from matplotlib.pylab import *
>> File "/usr/lib64/python2.6/site-packages/matplotlib/pylab.py", line
>> 253, in <module>
>> from matplotlib.pyplot import *
>> File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line
>> 75, in <module>
>> new_figure_manager, draw_if_interactive, show = pylab_setup()
>> File
>> "/usr/lib64/python2.6/site-packages/matplotlib/backends/__init__.py",
>> line 25, in pylab_setup
>> globals(),locals(),[backend_name])
>> File
>> "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py",
>>
>> line 10, in <module>
>> from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
>> FigureCanvasGTK,\
>> File
>> "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py",
>> line 11, in <module>
>> raise ImportError("Gtk* backend requires pygtk to be installed.")
>> ImportError: Gtk* backend requires pygtk to be installed.
>>
>> ------------------------------------------------------------------------------
>>
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
|
|
From: David T. <dl...@ca...> - 2009-01-21 17:26:50
|
Although I have python-gtk installed I still get this error message when
importing pylab. I'm not sure why. Can anyone enlighten me?
>>> from pylab import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib64/python2.6/site-packages/matplotlib/pylab.py", line
253, in <module>
from matplotlib.pyplot import *
File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line
75, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File
"/usr/lib64/python2.6/site-packages/matplotlib/backends/__init__.py",
line 25, in pylab_setup
globals(),locals(),[backend_name])
File
"/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py",
line 10, in <module>
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
FigureCanvasGTK,\
File
"/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py",
line 11, in <module>
raise ImportError("Gtk* backend requires pygtk to be installed.")
ImportError: Gtk* backend requires pygtk to be installed.
|
|
From: Sandro T. <mo...@de...> - 2009-01-21 16:32:07
|
On Wed, Jan 21, 2009 at 15:01, mzs <ms...@th...> wrote: > > Thank you for the information. I figured out that using pylab works. I > would rather use a current version. I tried to find the version you > mentioned in a deb package for Ubuntu but it doesn't seem to exist. Do you > know why or where can I get it? Probably there are none for the version of Ubuntu you're using but there are newer packages in Ubuntu[1]. I'm not a Ubuntu guru, but you seem to be rather old in version, I suggest, given the short release period, to keep your system up-to-date to the current version (not 8.10 I think) and there there are newer binary packages too[2]. [1] https://launchpad.net/ubuntu/+source/matplotlib [2] http://packages.ubuntu.com/search?keywords=python-matplotlib Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
|
From: John H. <jd...@gm...> - 2009-01-21 15:01:03
|
On Wed, Jan 21, 2009 at 8:25 AM, Michael Droettboom <md...@st...> wrote: > I've removed the "%%EOF" comment from the embedded font in SVN (your > suggested change). I'm still stumped as to why this matters, but it > should be benign. Since this was a windows platform, I am curious if this has something to do with the differences in newline '\r\n' handling and python binary file handling between windows and unix platforms (there is no difference between file(somefile, 'wb') and file(somefile, 'w') on linux but they are different on windows) JDH |
|
From: Michael D. <md...@st...> - 2009-01-21 14:25:22
|
I've removed the "%%EOF" comment from the embedded font in SVN (your
suggested change). I'm still stumped as to why this matters, but it
should be benign.
Mike
Paul Novak wrote:
> I am using matplotlib SVN revision 6810, and GSview 4.9 for Windows.
>
> Paul
>
> Michael Droettboom wrote:
>> Which version of matplotlib and ghostscript are you using? With
>> matplotlib SVN trunk and gs 7.07, I can't reproduce this here, either
>> with your provided ps file or generating it myself.
>>
>> Paul Novak wrote:
>>> Hello,
>>>
>>> I am having some problems with the PS backend. I used the following
>>> script to create a PostScript file
>>>
>>> #!/usr/bin/env python
>>> import matplotlib
>>> matplotlib.use('PS')
>>> import matplotlib.pyplot as plt
>>> import numpy
>>>
>>> x1 = numpy.arange(0,5)
>>> y1 = x1
>>> plt.plot(x1, y1)
>>> plt.savefig('ps_backend.ps')
>>> plt.show()
>>>
>>>
>>> When I tried to open the PostScript file in GSview, there is the
>>> following warning, and the file does not render properly. I have
>>> attached the PostScript file and a screenshot of the incorrect
>>> rendering.
>>>
>>> DSC Error
>>> At line 233:
>>> %%Page: 1 1
>>> This %%Page: line occurred in the trailer, which is not legal.
>>> EPS files should be encapsulated in %%BeginDocument / %%EndDocument.
>>> If is possible that an EPS file was incorrectly encapsulated,
>>> and that we have been confused by the %%Trailer in an EPS file.
>> Something is leading Ghostscript to believe this is an encapsulated
>> postscript file when it isn't. That's odd. Did you change the
>> extension of the file or something?
>>>
>>>
>>> The error can be eliminated by removing the line with %%EOF at line
>>> 230, but I don't know anything about PostScript or if that change
>>> would have any other effects. I only found this solution after
>>> comparing with the output from the Cairo backend. The same change to
>>> PostScript output can be achieved with the following diff (from svn
>>> diff), but again, I don't know if it is appropriate.
>>>
>>> Index: ttconv/pprdrv_tt.cpp
>>> ===================================================================
>>> --- ttconv/pprdrv_tt.cpp (revision 6810)
>>> +++ ttconv/pprdrv_tt.cpp (working copy)
>>> @@ -1070,7 +1070,6 @@
>>> } /* end of if Type 42 not understood. */
>>>
>>> stream.putline("FontName currentdict end definefont pop");
>>> - stream.putline("%%EOF");
>>> } /* end of ttfont_trailer() */
>>>
>>> /*------------------------------------------------------------------
>> I'm surprised that this works, as the %%EOF comments are generally
>> just considered informational. But it doesn't hurt to remove this
>> line (and save 6 bytes per file!) so I'm fine with removing this line
>> if we can confirm this is the source of the error.
>>
>> Mike
>>>
>>>
>>> Paul Novak
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> This SF.net email is sponsored by:
>>> SourcForge Community
>>> SourceForge wants to tell your story.
>>> http://p.sf.net/sfu/sf-spreadtheword
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
|
|
From: mzs <ms...@Th...> - 2009-01-21 14:01:54
|
Thank you for the information. I figured out that using pylab works. I would rather use a current version. I tried to find the version you mentioned in a deb package for Ubuntu but it doesn't seem to exist. Do you know why or where can I get it? Thank you again. Marc John Hunter-4 wrote: > > On Wed, Jan 21, 2009 at 6:38 AM, mzs <ms...@th...> wrote: >> >> Yes, I did have an typo in when reporting the problem, it should be >> pyplot >> not plot. However, the problem is with pyplot anyway. The version of >> matplotlib is 0.90.1 as shown here: >> >> >>> import matplotlib.pyplot as plt >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> ImportError: No module named pyplot >> >>> import matplotlib >> >>> print matplotlib.__version__ >> 0.90.1 >> >>> > > In the early releases of matplotlib, the procedural plotting interface > of matplotlib resided in "pylab", which also mixed in a lot of > numerical routines from numpy and other places. *After* the release > of 0.90.1, Eric Firing reorganized the plotting functions into a > separate module "matplotlib.pyplot" so people could access them w/o > having to get all of the numpy functions in the same namespace. See > > > http://matplotlib.sourceforge.net/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related > > The version you are using is 2 years old, so you may want to consider > upgrading. But you can get the same functionality with 0.90.1 by > simply > > >>> import pylab as plt > > instead of > > >>> import matplotlib.pyplot as plt > > JDH > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/ImportError%3A-No-module-named-pyplot-tp21576482p21583697.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: John H. <jd...@gm...> - 2009-01-21 12:49:22
|
On Wed, Jan 21, 2009 at 6:38 AM, mzs <ms...@th...> wrote: > > Yes, I did have an typo in when reporting the problem, it should be pyplot > not plot. However, the problem is with pyplot anyway. The version of > matplotlib is 0.90.1 as shown here: > > >>> import matplotlib.pyplot as plt > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named pyplot > >>> import matplotlib > >>> print matplotlib.__version__ > 0.90.1 > >>> In the early releases of matplotlib, the procedural plotting interface of matplotlib resided in "pylab", which also mixed in a lot of numerical routines from numpy and other places. *After* the release of 0.90.1, Eric Firing reorganized the plotting functions into a separate module "matplotlib.pyplot" so people could access them w/o having to get all of the numpy functions in the same namespace. See http://matplotlib.sourceforge.net/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related The version you are using is 2 years old, so you may want to consider upgrading. But you can get the same functionality with 0.90.1 by simply >>> import pylab as plt instead of >>> import matplotlib.pyplot as plt JDH |
|
From: mzs <ms...@Th...> - 2009-01-21 12:39:07
|
Yes, I did have an typo in when reporting the problem, it should be pyplot
not plot. However, the problem is with pyplot anyway. The version of
matplotlib is 0.90.1 as shown here:
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pyplot
>>> import matplotlib
>>> print matplotlib.__version__
0.90.1
>>>
If this version is to young then how can I get Ubuntu to load a later
version?
Thank you for your response. Again, I appreciate any help anyone could
provide.
Ryan May-3 wrote:
>
> mzs wrote:
>> Hi,
>>
>> I am using Ubuntu Gutsy 7.10 and want to use matplotlib.pyplot but when I
>> execute:
>>
>>> import matplotlib.pyplot as plt
>>
>> I get:
>>
>>>>> import matplotlib.plot as plt
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> ImportError: No module named plot
>>
>> I installed matplotlib using synaptic.
>>
>> I found another reference to this problem on Google but no solution.
>>
>> I cannot find pyplot.py anywhere on my disk. I can import matplotlib by
>> itself.
>>
>> Is there another Ubuntu package I should install? Is anyone working on a
>> fix to the matplotlib ubuntu packages? If so, then does anyone know when
>> this may be resolved?
>>
>> Any advice would be appreciated.
>
> What version of matplotlib do you have?
>
> import matplotlib
> print matplotlib.__version__
>
> Ryan
>
> --
> Ryan May
> Graduate Research Assistant
> School of Meteorology
> University of Oklahoma
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
View this message in context: http://www.nabble.com/ImportError%3A-No-module-named-pyplot-tp21576482p21582333.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|
|
From: Jeff W. <js...@fa...> - 2009-01-21 12:27:31
|
wor...@ho... wrote: > Dear Jeff. > > I'd like to modify or create gshhs_f.dat, gshhsmeta_f.dat using gshhs_f.b > > It takes long time to show full resolution basemap, and I want just a small_specific area. > > How can I modify basemap map data file? > > Any help would be appreciated. > > You can't modify that file - but if you can find an ESRI shapefile that has the coastlines for just the area you're interested in you can use that. -Jeff |
|
From: Sandro T. <mo...@de...> - 2009-01-21 10:34:04
|
On Wed, Jan 21, 2009 at 04:23, mzs <ms...@th...> wrote: > > Hi, > > I am using Ubuntu Gutsy 7.10 and want to use matplotlib.pyplot but when I > execute: > >> import matplotlib.pyplot as plt > > I get: > >>>> import matplotlib.plot as plt > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named plot here you wrote "plot" not "pyplot": might this be the problem? Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
|
From: Ryan M. <rm...@gm...> - 2009-01-21 04:02:58
|
mzs wrote: > Hi, > > I am using Ubuntu Gutsy 7.10 and want to use matplotlib.pyplot but when I > execute: > >> import matplotlib.pyplot as plt > > I get: > >>>> import matplotlib.plot as plt > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named plot > > I installed matplotlib using synaptic. > > I found another reference to this problem on Google but no solution. > > I cannot find pyplot.py anywhere on my disk. I can import matplotlib by > itself. > > Is there another Ubuntu package I should install? Is anyone working on a > fix to the matplotlib ubuntu packages? If so, then does anyone know when > this may be resolved? > > Any advice would be appreciated. What version of matplotlib do you have? import matplotlib print matplotlib.__version__ Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
|
From: mzs <ms...@Th...> - 2009-01-21 03:23:22
|
Hi, I am using Ubuntu Gutsy 7.10 and want to use matplotlib.pyplot but when I execute: > import matplotlib.pyplot as plt I get: >>> import matplotlib.plot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named plot I installed matplotlib using synaptic. I found another reference to this problem on Google but no solution. I cannot find pyplot.py anywhere on my disk. I can import matplotlib by itself. Is there another Ubuntu package I should install? Is anyone working on a fix to the matplotlib ubuntu packages? If so, then does anyone know when this may be resolved? Any advice would be appreciated. Thank you, Marc -- View this message in context: http://www.nabble.com/ImportError%3A-No-module-named-pyplot-tp21576482p21576482.html Sent from the matplotlib - users mailing list archive at Nabble.com. |