Hallo!
> I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution?
I had the same problem today.
However, in my case gtk was missing and I fixed it with installing
apt-get install python-gtk2
LG
Georg

hi
I am running python 2.5 and installing the matplotlib using synaptic so it is installing the correct version (I assume). After installing matplotlib, In the help(), this is what i get when asking for the modules liist:
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site.py", line 342, in __call__
return pydoc.help(*args, **kwds)
File "/usr/lib/python2.5/pydoc.py", line 1649, in __call__
self.interact()
File "/usr/lib/python2.5/pydoc.py", line 1667, in interact
self.help(request)
File "/usr/lib/python2.5/pydoc.py", line 1683, in help
elif request == 'modules': self.listmodules()
File "/usr/lib/python2.5/pydoc.py", line 1804, in listmodules
ModuleScanner().run(callback)
File "/usr/lib/python2.5/pydoc.py", line 1855, in run
for importer, modname, ispkg in pkgutil.walk_packages():
File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
for item in walk_packages(path, name+'.', onerror):
File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
__import__(name)
File "/usr/lib/python2.5/site-packages/matplotlib/config/__init__.py", line 5, in <module>
from rcparams import rc
File "/usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py", line 117, in <module>
rcParams = rc_params()
File "/usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py", line 49, in rc_params
fname = get_config_file()
File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 181, in get_config_file
path = get_data_path() # guaranteed to exist or raise
File "/usr/lib/python2.5/site-packages/matplotlib/config/verbose.py", line 74, in wrapper
ret = func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 129, in _get_data_path_cached
defaultParams['datapath'][0] = _get_data_path()
File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 125, in _get_data_path
raise RuntimeError('Could not find the matplotlib data files')
RuntimeError: Could not find the matplotlib data files
if I try import pylab, this is what I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 208, in <module>
from matplotlib import mpl # pulls in most modules
File "/usr/lib/python2.5/site-packages/matplotlib/mpl.py", line 4, in <module>
from matplotlib import axes
File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 18, in <module>
from matplotlib import dates as mdates
File "/usr/lib/python2.5/site-packages/matplotlib/dates.py", line 91, in <module>
from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
ImportError: No module named dateutil.rrule
>>> Michael Droettboom <mdroe@...> 05/30/08 2:11 PM >>>
I don't see this myself. Are you running the correct Python (not
accidentally running Python2.4, for example)? Do you have a
/usr/lib/python2.5/site-packages/matplotlib directory? What is the
exact error message when you import pylab?
Cheers,
Mike
Marjolaine Rouault wrote:
> Hi,
>
> I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution?
>
> Thanks.
>
>
>
>
--
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.

Hello, all. I've noticed that the alignment of text strings is usually
based on the bounding box of the composite glyphs--the painted region. In
certain cases, this behavior is producing results that I think are
undesirable. One example involves the common case of fonts with tabular
figures (numerals), for which the advance widths are equal (so that the
digits line up in columnar layouts like spreadsheets), but whose glyphs have
different widths (such as a digit one that's narrower than the other
digits). Using such a font, when a Y axis label ends with a one,
matplotlib's glyph-based right alignment takes that labels' digits out of
vertical alignment with the other labels. Similar effects occur with
old-style figures on the X axis, although that's more rarely seen in
practice, I would imagine.
More details and an example script and image are in the support request
http://sourceforge.net/tracker/index.php?func=detail&aid=1978234&group_id=80
706&atid=560721, although I'm not sure whether this issue constitutes a
support request, a feature request, or something else.
What would be required to align text horizontally using advance widths and
vertically using font-wide metrics for ascent, descent, and so on? Thanks.

I don't see this myself. Are you running the correct Python (not
accidentally running Python2.4, for example)? Do you have a
/usr/lib/python2.5/site-packages/matplotlib directory? What is the
exact error message when you import pylab?
Cheers,
Mike
Marjolaine Rouault wrote:
> Hi,
>
> I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution?
>
> Thanks.
>
>
>
>
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Hi
I'm trying to install the 0.91.2 maintenance from the SVN on a Ubuntu 8.04
system.
But I have an error about Tkinter during the checkin of dependancies :
OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.15beta5
Tkinter: no
* Tkinter present, but header files are not found.
* You may need to install development packages.
For all the other dependancies, there is no problem at all.
When I type python setup.py build, I got this error at the end :
gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier de ce
type
gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier de ce
type
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
CXX/cxx_extensions.cxx -o build/temp.linux-i686-2.5/CXX/cxx_extensions.o"
failed with exit status 1
I'm guessing that the building error is directly related to the fact that I
don't have the developpement package for tkinter.
The main problem is that I can't find this package through Synaptic my
package manager.
If you have any idea of where this problem comes from, please, I'm
listening.
Thanks for the help.
Johan Mazel

On Friday 30 May 2008 6:05:05 am keith.briggs@... wrote:
> I got this message:
> > /usr/lib64/python2.5/site-packages/matplotlib/numerix/__init__.py:65:
> > DeprecationWarning: numarray use as a numerix backed for matplotlib is
> > deprecated
>
> What does "numerix backed" mean?
Its a typo, it should read backend.

I got this message:
> /usr/lib64/python2.5/site-packages/matplotlib/numerix/__init__.py:65: DeprecationWarning: numarray use as a numerix backed for matplotlib is deprecated
What does "numerix backed" mean?
Keith

Hi,
I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution?
Thanks.
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.

Thanks for that,
I already have a button to enable picking mode and the original post shows
that I have already tried the copy background/restore/blit, however I must
have been doing something wrong.
Pehaps you can point out what the issue was ro where I was going wrong
John Hunter-4 wrote:
>
> On Wed, May 28, 2008 at 7:10 AM, New2Python <new2python@...>
> wrote:
>
>> One issue that I find now is that the removed marker is not redrawn as
>> removed, in other words, all the original markers remain drawn whether or
>> not the datapoints exist in the array. How can I remove the marker I
>> don't
>> want anymore withought doing a clf() call because I can have over 300,000
>> datapoints and the redraw will take ages
>
> You will need to do some extra work here. I would have a "picking
> mode" which is enabled by a key-stroke or button press, and when the
> mode is enabled, you can copy the background using the
> copy_background/restore region/blit techniques discussed at
> http://www.scipy.org/Cookbook/Matplotlib/Animations. Then you can
> mark your vertices and just draw the vertex marker line over the
> background. Alternatively, you can use the clipped line approach I
> pointed you to in my prior post to only plot the vertices in the
> viewport. You will have to do a little bookkeeping to translate the
> marked vertices in the viewport to the ones in the original dataset.
>
> Unfortunately, I don't have time to write the complete example right
> now...
>
> JDH
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
View this message in context: http://www.nabble.com/Plotting-single-marker-point-at-zoomed-level-tp17470649p17550943.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

On Thu, 29 May 2008, Gideon Simpson apparently wrote:
> Using apple python, numpy 1.10, I get the following error in
> matplotlib 0.91.2:
I do not see this. I have the
same mpl and np version,
and same Python version,
but I'm on Windows.
fwiw,
Alan Isaac

Torsten Hahn wrote:
> Hello,
>
> i am having some trouble to make the pictures for my thesis look
> good. I could not figure out, how i can change the space between the
> axis and the tick-labels in my plots.
>
> Can anyone help me?
There is an rcParams setting for this. You can set it in the
matplotlibrc file, or directly in the script. For example,
from matplotlib import pyplot as plt
plt.rc(('xtick.major', 'ytick.major'), pad=20)
plt.plot([1,2,3])
plt.show()
(If this fails because you don't have pyplot--you are using an older
version of mpl--change the import line to "import pylab as plt".)
Eric
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

cyclopsvs wrote:
> Hello matplotlib users,
>
> I just recently started using the matplot library for generating simple
> graphs instead of using R. The problem i'm experiencing are the following.
>
> On my work station i had to enable x11 forwarding to be able to run a script
> generating plots on a server . The problem now is that my own computer is a
> mac and normally when i use the x11 app to connect to a server x forwarding
> is suited to run all script that use a x11 window.
If you don't need interactive plots, you might consider doing it the
old-fashioned way: saving the plots as png files in batch mode
and displaying with firefox.
import matplotlib
matplotlib.use('Agg') #non-interacive back-end
import matplotlib.pyplot as plt
....
plt.savefig('/home/me/public_html/plots/thefile.png',dpi=100)
We've automated this so the python script makes the plots,
builds an image gallery with thumbnails and
then copies the plots off our cluster (which doesn't mount
the web server directory) and onto the web server
using rsync. For example
http://clouds.eos.ubc.ca/~phil/savefigs/E/
-- Phil

Eric Firing wrote:
> _backend_gdk.c and nxutils.c both call into the numpy C API; maybe some
> c++ code does also. It is not entirely clear to me whether 1.1 is
> sufficiently binary-compatible that this is safe.
>
The C API did not change (with the possible exception of additions). I'd
be really surprised if this is an issue -- the numpy devs worked to make
sure there would be no breakage at the C API level.
(And even if it did change, as it might one day in the future -- numpy
2? -- there's a check that happens at numpy load time, during
import_array(), that checks whether the version of numpy you compiled
with is the version you're loading now and raises an exception if it's
not. So, the old nightmares of numeric and numarray possibly being run
against binary incompatible versions are a thing of the past. This check
actually saved quite a few headaches during the runup to numpy 1.0, when
there were a number of C API changes happening in quick succession as
Travis worked to get it right. That machinery is still in there.)

On Thu, May 29, 2008 at 9:40 AM, cyclopsvs <mendes150@...> wrote:
> Does anyone had some experience with using apache and matplot lib together,
> if so could you share the experiences you had installing everything.
>
> I'd like to know before i continue developing these features of the
> application.
matplotlib renders to a number of different targets, eg user
interfaces, PNG, or postscript. The user interfaces require an x11
connection, but the image generation backends do not. Thjese are the
ones you will want to use with apache, django, etc. What you need to
do is set your default backend to "Agg" in your matplotlibrc file.
This file resides in site-packages/matplotlib/mpl-data and can be
moved into either HOME/..matplotlib or your working directory (eg
where your image generating code lives). Once this is done mpl will
generate PNGs w/o an X11 connection.
http://www.scipy.org/Cookbook/Matplotlib/Django has some information
on using mpl with django, but it is bit out of date because you no
longer need PIL to save to a file handle. mpl can now save PNG
directly to a file handle