Re: [Matplotlib-users] Setting the axis of an imshow plot

2008-11-03 Thread Edin Salkovic
On Mon, Nov 3, 2008 at 9:08 PM, Edin Salkovic [EMAIL PROTECTED] wrote:
 On Mon, Nov 3, 2008 at 8:23 PM, Edin Salkovic [EMAIL PROTECTED] wrote:
 Am I missing something obvious?

 xticklabels/yticklabels did the job.

 Sorry for the noise.

Actually, with xticklabels/yticklabels the zoom functionality for the
image is broken, so I still need a better solution.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Setting the axis of an imshow plot

2008-11-03 Thread Edin Salkovic
On Mon, Nov 3, 2008 at 10:47 PM, Ryan May [EMAIL PROTECTED] wrote:
 Try the extent kwarg for imshow:

  *extent*: [ None | scalars (left, right, bottom, top) ]
Eata values of the axes.  The default assigns zero-based row,
column indices to the *x*, *y* centers of the pixels.

 So you would do:

 imshow(data, extent=(l, r, b, t))

Yes, this works, thanks!  The weird thing is that the first time I
tried extent it didn't work (i.e. I messed up something :) ).

Edin

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Latex equations and SVG export

2007-07-11 Thread Edin Salkovic
On 7/10/07, Edin Salkovic [EMAIL PROTECTED] wrote:
 On 7/10/07, John Hunter [EMAIL PROTECTED] wrote:
  Hey Edin, if you get a minute, could you contribute a patch against
  the faq in htdocs/faq.html.template explaining how to install the
  bakoma fonts for svg viewers?  Is this sufficiently difficult that it
  merits a FAQ?

 It sure is easy to forget :)

 Attached is the patch to the FAQ.  I don't have the htdocs dir checked
 out.  John, can you apply the patch?

Thanks to Michael Droettboom fonts can now be embedded in the SVG file.

See:
http://www.nabble.com/Embedded-fonts-in-SVG-t4057222.html
http://comments.gmane.org/gmane.comp.python.matplotlib.devel/2944

I also updated the FAQ.

Index: faq.html.template
===
--- faq.html.template   (revision 3500)
+++ faq.html.template   (working copy)
@@ -977,6 +977,23 @@
 docs/a for details.
  ),

+ ('SVG-BAKOMA-FONTS-MATHTEXT',
+  My SVG viewer doesn't properly display special (TeX) characters
+  ('\sum', '\infty',etc.) generated by mathtext.  Is this a bug?,
+
+You need to install the BaKoMa fonts (TrueType version of the Computer
+Modern fonts) on your system. The BaKoMa fonts come packaged with
+matplotlib.  They are located in the
+site-packages/matplotlib/mpl-data/fonts/ttf dir (the cm*.ttf files).
+Installation of the fonts varies from OS to OS.
+
+Alternatively, as of r3498 (matplotlib  0.90.1) you can set
+svg.embed_char_paths to True in your matplotlibrc file.  This
+setting makes matplotlib embed all fonts as paths in the SVG file,
+which results in a portable SVG file, at the cost of bigger file
+size and uneditable text.
+ ),
+
   ('LEAKS',
'matplotlib appears to be leaking memory, what should I do?',
 \

-
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] Latex equations and SVG export

2007-07-10 Thread Edin Salkovic
On 7/7/07, Edin Salkovic [EMAIL PROTECTED] wrote:
 On 7/6/07, Kaushik Ghose [EMAIL PROTECTED] wrote:
  Hi Edin,
(...)
  Actually the original string renders as desired. Its the svg save that
  causes the problem.
 
  I gather this is due to incomplete implementation of svg export.
 
  thanks!
  -Kaushik

 Sorry, I see the problem now.  Unfortunately I wont have the resources
 to investigate into this this weekend.  It's past midnight here, and
 tomorrow early I have to travel.

 Best,
 Edin


I looked into this.  You just have to install (copy) the BaKoMa fonts
(TrueType version of the Computer Modern fonts) into your system's
font dir, so the svg viewer can see them.  These fonts are located in
the matplotlib/mpl-data/fonts/ttf dir (the cm*.ttf files).

HTH,
Edin

-
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] Latex equations and SVG export

2007-07-10 Thread Edin Salkovic
On 7/10/07, Kaushik Ghose [EMAIL PROTECTED] wrote:
 Hi Edin,
 Good point. I tried just now on Firefox and got the same error.
 For an image of what I mean see this
 http://python-pieces.blogspot.com/2007/07/latex-and-svg-export.html


 I'm attaching the svg output here in case someone wants to try it out:
(...)

This should be fixed in SVN (r3346 or r3353) --- Norbert Nemec
recently fixed the mathtext support in the SVG backend.

Best,
Edin

-
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] Latex equations and SVG export

2007-07-06 Thread Edin Salkovic
Hi kaushik,

On 7/6/07, kaushik.ghose [EMAIL PROTECTED] wrote:
 Hi,

 When I do

 m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg')

Shouldn't that be:
r'$\sum_{n=1}^{100}$'   # i.e. a raw string.

or:

'$\\sum_{n=1}^{100}$'  # Escaped backslash

Does this help?

Cheers,
Edin

-
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] Trouble with recent mpl

2007-07-05 Thread Edin Salkovic
Hi Nils,

It seems there's a problem with some of the text instances (label,
title etc.) that have TeX expressions  in them.

You can also attach the problematic script (or part of it) here.

Best,
Edin

On 7/5/07, Nils Wagner [EMAIL PROTECTED] wrote:
 Hi all,

 I rerun a program which I have written one year ago.
 Now It doesn't work for me with the latest svn version.
 Here is the output
 python  lshape.py --verbose-helpful
 $HOME=/home/nwagner
 CONFIGDIR=/home/nwagner/.matplotlib
 matplotlib data path /usr/lib64/python2.4/site-packages/matplotlib/mpl-data
 loaded rc file /home/nwagner/.matplotlib/matplotlibrc
 matplotlib version 0.90.1
 verbose.level helpful
 interactive is False
 units is False
 platform is linux2
 numerix numpy 1.0.4.dev3880
 font search path
 ['/usr/lib64/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf',
 '/usr/lib64/python2.4/site-packages/matplotlib/mpl-data/fonts/afm']
 loaded ttfcache file /home/nwagner/.matplotlib/ttffont.cache
 backend WXAgg version 2.6.1.0
 Traceback (most recent call last):
   File lshape.py, line 136, in ?
 show()
   File
 /usr/lib64/python2.4/site-packages/matplotlib/backends/backend_wx.py,
 line 1246, in show
 figwin.canvas.draw()
   File
 /usr/lib64/python2.4/site-packages/matplotlib/backends/backend_wxagg.py,
 line 61, in draw
 FigureCanvasAgg.draw(self)
   File
 /usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py,
 line 392, in draw
 self.figure.draw(renderer)
   File /usr/lib64/python2.4/site-packages/matplotlib/figure.py, line
 601, in draw
 for a in self.axes: a.draw(renderer)
   File /usr/lib64/python2.4/site-packages/matplotlib/axes.py, line
 1356, in draw
 a.draw(renderer)
   File /usr/lib64/python2.4/site-packages/matplotlib/axis.py, line
 635, in draw
 self.label.draw(renderer)
   File /usr/lib64/python2.4/site-packages/matplotlib/text.py, line
 410, in draw
 bbox, info = self._get_layout(renderer)
   File /usr/lib64/python2.4/site-packages/matplotlib/text.py, line
 254, in _get_layout
 w,h = renderer.get_text_width_height(
   File
 /usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py,
 line 245, in get_text_width_height
 width, height, fonts = math_parse_s_ft2font(
   File /usr/lib64/python2.4/site-packages/matplotlib/mathtext.py, line
 1585, in __call__
 expression.parseString( s )
   File /usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py,
 line 622, in parseString
 loc, tokens = self.parse( instring.expandtabs(), 0 )
   File /usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py,
 line 564, in parse
 loc,tokens = self.parseImpl( instring, loc, doActions )
   File /usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py,
 line 1863, in parseImpl
 loc, tokens = self.expr.parse( instring, loc, doActions )
   File /usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py,
 line 564, in parse
 loc,tokens = self.parseImpl( instring, loc, doActions )
   File /usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py,
 line 1548, in parseImpl
 raise maxException
 matplotlib.pyparsing.ParseException: Expected \ (at char 0), (line:1,
 col:1)

 Any pointer would be appreciated.

 Nils



 -
 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


-
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] Problems installing matplotlib

2007-06-28 Thread Edin Salkovic
Hi Alexander,

On 6/28/07, Alexander Dietz [EMAIL PROTECTED] wrote:
 Hi,

 I have problems installing matplotlib 0.90.1. An error occurs when doing
 python setup.py build:

 /usr/include/features.h:150:1: warning: this is the location of the previous
 definition
 src/_ns_backend_agg.cpp: In member function `Py::Object
 RendererAgg::write_png(const Py::Tuple)':
 src/_ns_backend_agg.cpp:2040: error: `png_structp' undeclared (first use
 this function)
 src/_ns_backend_agg.cpp:2040: error: (Each undeclared identifier is reported
 only once for each function it appears in.)
  src/_ns_backend_agg.cpp:2040: error: expected `;' before png_ptr
 src/_ns_backend_agg.cpp:2041: error: `png_infop' undeclared (first use this
 function)
 src/_ns_backend_agg.cpp:2041: error: expected `;' before info_ptr
 src/_ns_backend_agg.cpp:2042: error: aggregate `png_color_8_struct sig_bit'
 has incomplete type and cannot be defined
 src/_ns_backend_agg.cpp:2043: error: `png_uint_32' undeclared (first use
 this function)
  src/_ns_backend_agg.cpp:2043: error: expected `;' before row
 src/_ns_backend_agg.cpp:2045: error: `png_bytep' undeclared (first use this
 function)
 src/_ns_backend_agg.cpp:2045: error: `row_pointers' undeclared (first use
 this function)
 src/_ns_backend_agg.cpp:2045: error: `png_bytep' has not been declared
 src/_ns_backend_agg.cpp:2046: error: `row' undeclared (first use this
 function)
 src/_ns_backend_agg.cpp:2057: error: `png_ptr' undeclared (first use this
 function)
 src/_ns_backend_agg.cpp:2057: error: `PNG_LIBPNG_VER_STRING' undeclared
 (first use this function)
 src/_ns_backend_agg.cpp:2057: error: `png_create_write_struct' undeclared
 (first use this function)
 src/_ns_backend_agg.cpp:2064: error: `info_ptr' undeclared (first use this
 function)
 src/_ns_backend_agg.cpp:2064: error: `png_create_info_struct' undeclared
 (first use this function)
 src/_ns_backend_agg.cpp:2067: error: `png_destroy_write_struct' undeclared
 (first use this function)
 src/_ns_backend_agg.cpp:2079: error: `png_init_io' undeclared (first use
 this function)
 src/_ns_backend_agg.cpp:2082: error: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared
 (first use this function)
 src/_ns_backend_agg.cpp:2082: error: `PNG_INTERLACE_NONE' undeclared (first
 use this function)
 src/_ns_backend_agg.cpp:2083: error: `PNG_COMPRESSION_TYPE_BASE' undeclared
 (first use this function)
 src/_ns_backend_agg.cpp:2083: error: `PNG_FILTER_TYPE_BASE' undeclared
 (first use this function)
 src/_ns_backend_agg.cpp:2083: error: `png_set_IHDR' undeclared (first use
 this function)
 src/_ns_backend_agg.cpp:2092: error: `png_set_sBIT' undeclared (first use
 this function)
 src/_ns_backend_agg.cpp:2094: error: `png_write_info' undeclared (first use
 this function)
 src/_ns_backend_agg.cpp:2095: error: `png_write_image' undeclared (first use
 this function)
 src/_ns_backend_agg.cpp:2096: error: `png_write_end' undeclared (first use
 this function)
 error: command 'gcc' failed with exit status 1

You probably need to install the header files for libpng.  On my
Ubuntu system the package name is libpng12-dev

 Any ideas what I can do?
 Also, how to install matplotlib in an other directory? I tried:
  python setup.py  --prefix=/home/Install install
  and
 python setup.py  install --prefix=/home/Install

 but both commands did not work, although it is written I shall use the
 '--prefix' argument to specify a different directory !?!

 Any ideas?

Is /home/Install on your Python search path (
http://docs.python.org/inst/search-path.html )?

HTH,
Edin

-
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] mathtext.mathtext2 KeyError

2007-06-27 Thread Edin Salkovic
Hi Steve,

On 6/27/07, Steve Sweet [EMAIL PROTECTED] wrote:
 Hi,

 I've installed matplotlib-0.90.1 on a Centos 5.0 box (Centos is
 identical to RedHat Enterprise).  One of my users is running a script
 that previously worked with matplotlib on another system.  I'm seeing
 the following errors
 [Wed Jun 27 12:25:17 2007] [error] [client 10.0.0.92] PythonHandler
 cv_wms: KeyError: 'mathtext.mathtext2'

 I've done a bit of snooping through the code and I searched the mailing
 list archive.  I saw a message relating to matplotlib-0.87 indicating
 that the missing key needed to be added to the matplotlibrc file.
 However when I do so I get this message:
 [Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x] Bad key
 mathtext.mathtext2 on line 260 in
 [Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x]
 /var/www/.matplotlib/matplotlibrc.

 When I remove the offending key I am back to the first error.  I am
 using the matplotlibrc file that came with the 0.90.1 tarball.  Does
 anyone have any suggestions?

 Thanks.

It seems like you have another (older) installation of matplotlib
somewhere on that system.

Note that newer matplotlibs don't even require a matplotlibrc file in
the $HOME/.matplotlib dir.  Have you tried removing it completely?

If you still have problems, please post some more info.

Edin

-
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] problems building/installing

2007-04-04 Thread Edin Salkovic
On 4/4/07, Simson Garfinkel [EMAIL PROTECTED] wrote:
 2. How do I install an EGG file?

For detailed instructions about eggs see:
http://peak.telecommunity.com/DevCenter/EasyInstall

Quick instructions:
Download:
http://peak.telecommunity.com/dist/ez_setup.py
and run it.

then run
easy_install matplotlib
or
easy_install /path/to/matplotlib-xxx.egg


HTH,
Edin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Default Reply-to-sender

2007-03-26 Thread Edin Salkovic
On 3/24/07, Bill Baxter [EMAIL PROTECTED] wrote:
 Did you guys make a conscious decision to have the matplotlib list
 send replies only to the sender of the message rather than the list?

 This seems to be the default at SourceForge, so it's conceivable you
 just haven't bothered to change it.  I've been on at least 10
 different mailing lists in the past 2 years or so,  and of those
 matplotlib's is the only one I can recall being set up with default
 reply-to-sender rather than reply-to-list.

 I keep accidentally replying to senders only, so I thought I'd mention
 it.   In the admin section on sourceforge there's a checkbox you can
 set to change the list from reply-to-sender to reply-to-list as the
 default.

 --bb

Hmm...
I had similar problems in the past, and was pointed at:
http://www.unicom.com/pw/reply-to-harmful.html

The above doc makes sense IMO.  It's just after reading it that I
noticed the reply-to-all button in GMail.

Edin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] A site using matplotlib

2007-03-26 Thread Edin Salkovic
I don't now if it's appropriate to post this here, but there's a new
Python/Pylons powered website that uses matplotlib.  Think of it as a
success story for mpl:

http://www.marketshares.com.au

I'm not affiliated in any way with the site owner/creator.

Best,
Edin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib, math greek letters and latex

2007-03-13 Thread Edin Salkovic
Hi Antonino,

If your using the version 0.90 (or SVN) of matplotlib you can also use
mathtext2.

To enable it, put these lines in your matplotlibrc file:
mathtext.mathtext2 : True
mathtext.nonascii  : FreeSerif.ttf # Or any unicode font

or, you can set it for your particular script:
rcParams['mathtext.mathtext2'] = True
rcParams['mathtext.nonascii'] = 'FreeSerif.ttf'

You can also set:
mathtext.rm :   FreeSerif.ttf # Roman font
mathtext.it :   FreeSerifItalic.ttf # Text italic
mathtext.tt :   FreeMono.ttf# Typewriter (monospaced)
mathtext.mit:   FreeSerifItalic.ttf # Math italic
mathtext.cal:   FreeSansOblique.ttf # Caligraphic

Beware that you have to have the freefonts installed on your system,
or in the mpl data-dir.

Best,
Edin

On 3/13/07, Antonino Ingargiola [EMAIL PROTECTED] wrote:
 Sorry for the previous mail I've hit Send for error before the mail
 was complete.

 Here it is the complete mail:

 Hi to the list,

 I'm using matplotlib to generate graphs during my master thesis. I
 want to thank all the developer for providing such flexible tool.

 In some plots I have to put greek letters (or sometimes small formulas)
 as axis label. I've found three way to accomplish this:

 1. Use the unicode string: xlabel(u'Wavelength [μm]')
 2. Use mathtext: xlabel(r'$\rm{Wavelength [\mu m]}$')
 3. Use usetex: rc(text, usetex=True), xlabel(r'Wavelength [$\rm{\mu m}$]')

 I have some problem with each method, any hint is appreciated.

 1. This method works ok as far as I choose a unicode font with the
 greek letters, for example:

   rcParams['font.serif'] = 'DejaVu Serif'

 However with unicode strings I'm not able to do exponent and deponent
 text (i.e cm^-1)

 Methods 1. and 2. are more flexible, however I'm no able to to put the
 \mu character in roman fonts. I don't know if this is the intended
 behavior or if it's a bug...

 Furthermore, is there a simple way to set fontsize for all text
 elements (labels, title, ticklabels). Currently I'm doing:

 rcParams['font.size'] = 12
 rcParams['xtick.labelsize'] = 14
 rcParams['axes.titlesize'] = 16
 rcParams['axes.labelsize'] = 14

 The relative setting (large, small,...) seems to refer always to the
 default font size (set in matplotlibrc). Is there a way to set the
 font.size property and then update all the other relative values to
 reflect the change?

 Many thanks for any help.

   ~ Antonio
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] newbie: easy question (I hope)

2007-02-16 Thread Edin Salkovic
On 2/16/07, Chiara Caronna [EMAIL PROTECTED] wrote:
 Hello,
 I would like to plot some data while the interpreter continues
 calculating...
 if I just write
 plot(x,y)
 show()

 Then the code stops until I close the window... how should I do?
 Thanks in advance
 Chiara

Hi Chiara,

Try setting
interactive : True

in your matplotlibrc file

See:
http://matplotlib.sourceforge.net/matplotlibrc
http://matplotlib.sourceforge.net/interactive.html

HTH,
Edin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problems with building from source on windows with MinGW

2006-12-26 Thread Edin Salkovic
On 12/26/06, John Hunter [EMAIL PROTECTED] wrote:
 Did you rm -rf your build dir (and sometimes site-packages/matplotlib)
 before rebuilding.  This is usually the cause of such crashes.

Yes I have.  I even reinstalled windows (not related to matplotlib :),
and I had the same problems.

I'll experiment a bit more, but maybe the problem is not my system... ;)

Cheers,
Edin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problems with building from source on windows with MinGW

2006-12-23 Thread Edin Salkovic
Hi,

I'm having problems with building mpl from SVN on WinXP, Python 2.5,
latest numpy.  I'm using MinGW from the enthought edition.  I remember
building it without problems just few weeks ago.  The build process
finishes without error.  Then, when I try:

from pylab import *

it crashes

import matplotlib

doesn't crash

I also had problems with Python 2.4

Best,
Edin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to write a 2D list into a file?

2006-10-10 Thread Edin Salkovic
On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I mean in the original data format, without any characters like [],
 Thanks



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Does this help:

a = [[1, 2, 3], [4, 5, 6]]
f = open(output.txt, w)
for row in a:
f.write( .join(row))
f.write(\n)
f.close()

Check this also:
http://effbot.org/librarybook/csv.htm

HTH,
Edin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problem with SVN checkout

2006-10-02 Thread Edin Salkovic
I don't know if this is really a problem.

I sometimes do a matplotlib SVN co from the Windows half :) of my
laptop (I have a dial-up connection and a winmodem without linux
drivers) and then reboot to linux in order to build the source. Then I
get an error due to __init__.py having windows line endings (CR). I
don't get this error allways. I was wondering, how come that the svn
trunk has CR line endings of some files? Is this normal for a svn
checkout on windows?

Thanks,
Edin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users