Re: [Matplotlib-users] latex problem

2007-05-15 Thread Darren Dale
On Friday 11 May 2007 6:32:14 pm Michele Mazzucco wrote:
  On Friday 11 May 2007 05:16:04 pm Michele Mazzucco wrote:
   I'm running matplotlib on Mac OS X and I've set text.usetex to True in
   matplotlibrc, but if I try to run the tex_demo I get the error shown
   below. If I'm right it's a problem with dvipng:
  
   dvipng -version
   This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
   dvipng 1.6
   kpathsea version 3.5.5
   Copyright (C) 2002-2005 Jan-Ake Larsson.
   There is NO warranty.  You may redistribute this software
   under the terms of the GNU General Public License.
   For more information about these matters, see the files
   named COPYING and dvipng.c.
[...]
   /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-p
  acka ges/matplotlib/texmanager.py, line 58, in get_dvipng_version
   raise RuntimeError('Could not obtain dvipng version')
   RuntimeError: Could not obtain dvipng version

 On 5/11/07, Darren Dale [EMAIL PROTECTED] wrote:
  Is dvipng on your path?

 Yes, because dvipng - version works fine.

what about dvipng --version, does that fail?

-
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] newline in mathtex

2007-05-15 Thread Bernhard Voigt

Dear all,

is it possible to insert newlines in mathtex text?

neither \newline, nor \\ seem to be understood:

In [20]: text(.5,.5, r'$This is the first line \\ this is the second line$')

Results in a single line.

By the way, when there is an error in the tex string, the caching behind the
scenes seems to be broken:

In [21]: text(.5,.5, r'$This is the first line \newline this is the second
line$')
.
ValueError: unrecognized symbol \newline

# removing the \newline command still yields the same ValueError
In [23]: text(.5,.5, r'$This is the first line, this is the second line$')
.
ValueError: unrecognized symbol \newline


Thanks! Bernhard


PS: matplotlib version is 0.87.7
-
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] simple question: how to set the gap between label and axis

2007-05-15 Thread Mark Bakker

Sorry to bother you guys, but I cannot figure out how to set the gap between
the axis label and the axis.
I know it can be done.
Thanks,
Mark
-
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] SVG vs PNG

2007-05-15 Thread kc106_2005-matplotlib
This SVG format gets better everyday.

For those of you unfortunate enough not to have the
choice of freedom from the M$ Monopoly, I discovered
that Visio supports SVG file directly.  In fact, the
rendering is better then Inscape and get this: you can
copy and paste *directly* over to PowerPoint and Word
and you can even embed it as a Visio object.  The
quality is superb!

Even the browser can read SVG file (somewhat - the
quality isn't very good).

 -Original Message-
 From: Derek Hohls 
 Sent: Tuesday, May 15, 2007 12:19 AM
 Subject: Re: [Matplotlib-users] SVG vs PNG
 
 
 For those of you fortunate enough to have the 
 choice be free from the M$ Monopoly, you can 
 use the Open Office Impress package to do 
 something similar to the steps below.
  
 However, if you want to work directly with SVG 
 files, then you should install the SVG import 
 filter, available from:
http://www.ipd.uka.de/~hauma/svg-import/ 
 (Installation and use are described very clearly).
  
 If you have saved an SVG file from MPL, you 
 can now open it in Open Office Draw, ungroup 
 it (you will need to repeat this command a 
 number of times) and edit the elements.  
 Save the file as an Open Office drawing 
 (.odg) for use in other Open Office applications.
  
 One strange thing I encountered was that the 
 default background for fonts was blue?  
 This seems to be a problem with the 
 import filter, and has been reported on the 
 wiki support page: 

http://wiki.services.openoffice.org/wiki/SVG_User_Experiences#
 Blue_background_for_all_text_elements
 
 but not fixed.  To change this manually: 
 left-click to select a text element, then 
 right-click and choosing Edit Style... and 
 then select White or None from the Area menu.
  
 
 *** As a footnote, I see that an integrated 
 SVG filter, designed to be shipped as part of 
 Open Office, is scheduled to be developed as 
 part of the Google 2007 Summer of Code - see: 

http://wiki.services.openoffice.org/wiki/Summer_of_Code_2007/p
 roposals#Draw.2FImpress:_SVG_Import_Filter
 
 
  [EMAIL PROTECTED] 2007/05/15
01:08 AM 
 
 Not exactly OT.
 
 I would not recommend using .eps format in order to
 export MPL graphs for Inkscape.  I've been playing
 around with Inkscape for a few days now and I've
been
 using .svg exclusively and don't have any problem.  
 
 As I said before, I like the fact that once I am
 inside Inscape, I can do an ungroup of the graph,
and
 work with all of the plotting elements individually.

 In fact, I just discover a nice way to cut and
paste
 a particular subplot over to PowerPoint.  This gives
 me very high quality graphs in Power Point (I can
 scale all I want).  No more fuzzy, ugly-looking
Power
 Point charts.  
 
 Here's how:
 
 a) Create MPL plots in .svg format
 b) From Inscape, read in .svg
 c) Select subplot and ungroup
 d) Copy and paste to a new page 
 e) Shrink the page down to the size of the object
 f) Save as emf file
 g) Import into PowerPoint  
 
 In addition, I am also using Inscape to get around
the
 problem with the PDF backend in MPL.  I reported
 previously that I am unable to save more then 8 PDF
 files per execuation.  Now, I save the files in .svg
 format, then invoke Inscape in command line mode and
 export the file in pdf format.   Works great.
 
 Regards,
 
 
 
 
  -Original Message-
  From:
[EMAIL PROTECTED]
 
 

[mailto:[EMAIL PROTECTED]

 On 
  Behalf Of Fernando Perez
  Sent: Saturday, May 12, 2007 9:57 AM
  To: Steve Schmerler
  Cc: matplotlib-users@lists.sourceforge.net
  Subject: Re: [Matplotlib-users] SVG vs PNG
  
  
  On 5/12/07, Steve Schmerler wrote:
   Fernando Perez wrote:
   
Did you install pstoedit?  If you do, you'll
see
 that 
  inkscape will
then be able to load .eps/.ps files in a fully
 editable format.  
I've used it to fix decade-old plots for which
 the only 
  thing around
was the eps file.
   
  
   I tried to export an .svg from MPL
(0.90.0rev3131)
 with 
   rcParams['text.usetex']=True and got a
 NotImplementedError 
  (same for
   the pdf backend with usetex, see attached log).
I
 was 
  wondering: Is it
   (technically) possible to have .svg export
 capabilities with 
   usetex-support and if so, has there been no need
 for this 
  feature so
   far (not that I need it urgently, just
curious..)?
  
  There's actually a real MPL bug in there (not just
 the
  NotImplementedError) but I'll report it separately
 in a minute.
  
   Anyway, to work with MPL-images (.ps/.eps) in
 Inkscape, I installed 
   pstoedit but loading these files doesn't work
 (seems not to 
  recognize
   them as images). Sorry if I'm driving the
 Inkscape-stuff a bit OT 
   here, but: What version of Inkscape  friends
are
 you 
  using? I'm using
   pstoedit 3.44, Inkscape 0.44.1. The
 Latex-formula-feature 
  of Inkscape
   is also not working and the error seems related
to
 pstoedit. Maybe 
   someone had similar experiences ...
  
   Thanks for any hint!
  
  Well, unfortunately it seems that 

[Matplotlib-users] call for chapeters in a book about freeware/opensource in chemometrics

2007-05-15 Thread Giorgio Luciano
Dear All,
me and other two colleagues will be interested in writing a tutorial 
book about the use of opensource/freeware software in chemometrics 
(mainly python oriented).
I've contacted the editor at Blackwell publishing that has told me that 
can be interested in it and sent me the module for submitting the 
official proposal.
I will be very glad to hear from everyone that would like to write a 
chapter on it.
In my opinion it will be the best to have a book with lots of examples 
that covers simple task, but i will be also glad if anyone would like 
to write tutorial chapter of less commons subjects.
for any feedback just write to me
I guess this can be both a change for spread the word of 
opensouce/freeware togheter with chemometrics also to let know the 
audience that it's not necessary to invest a lot of money in software 
for working in chemometrics.
Of course, since there are not too much freeware/opensource software in 
the field, it can be a chance to advertise personal built-in software 
and to start something new.
I hope to receive help and I will be glad to talk with enthusiast all around

Giorgio

P.S.: (sorry for cross posting)


-- 
-==-
Dr Giorgio Luciano Ph.D.
Di.C.T.F.A. Dipartimento di Chimica e Tecnologie Farmaceutiche e Alimentari
Via Brigata Salerno (ponte) - 16147 Genova (GE) - Italy
email [EMAIL PROTECTED]
www.chemometrics.it
-==-


-
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users