[Matplotlib-users] Matplotlib hangs due to numpy.ma.power()
Hallöchen! I've had a very odd observation today: I call matplotlib 1.3.1 from Django 1.7 code running on Apache under Ubuntu 14.04. The relevant code is: figure = Figure(frameon=False, figsize=(4, 3)) canvas = FigureCanvasAgg(figure) axes = figure.add_subplot(111) ... canvas.print_figure(plot_filepath) The last command hangs. Funny enough, if I run the very same code on Django's testserver, it works. First, I thought of http://stackoverflow.com/questions/22337250 but this is not the case here. I've really assured that Agg is used, also by providing a proper config file. The oddest part is, if I replace in matplotlib/scale.py, line 136, return ma.power(10.0, a) / 10.0 with return np.power(10.0, a) / 10.0 it works! Can anybody explain this? Regards, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Highlighting the axes of coordinates
Hallöchen! I have a grid in my plot, but additionally I'd like to highlight the zero axes, where x=0 or y=0, e.g. by showing them in red, or with thicker lines. How is this possible? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] EMF export doesn't work
Hallöchen! I use pyemf 2.0 and Matplotlib 0.98.5. If I try to save a trivial plot into an EMF file, I get Traceback (most recent call last): File ./make_plots.py, line 23, in module figure.savefig(sample_name + _pds.emf) File /usr/lib/python2.5/[...]/matplotlib/figure.py, line 990, in savefig self.canvas.print_figure(*args, **kwargs) File /usr/lib/python2.5/[...]/matplotlib/backend_bases.py, line 1419, in print_figure **kwargs) File /usr/lib/python2.5/[...]/matplotlib/backends/backend_emf.py, line 604, in print_emf self.figure.draw(renderer) File /usr/lib/python2.5/[...]/matplotlib/figure.py, line 738, in draw if self.frameon: self.patch.draw(renderer) File /usr/lib/python2.5/[...]/matplotlib/patches.py, line 301, in draw renderer.draw_path(gc, tpath, affine, rgbFace) File /usr/lib/python2.5/[...]/matplotlib/backend_bases.py, line 74, in draw_path raise NotImplementedError NotImplementedError Is this a bug or a mal-configuration? The Python code was figure = pyplot.figure() axes = figure.add_subplot(111) x, y = numpy.loadtxt(data.dat, comments=#, usecols=(0, 1), unpack=True) axes.semilogy(x, y) figure.savefig(test.emf) Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Matplotlib's logo
Hallöchen! In my web app, I have an about page which contains the major components, together with the logos (Ubuntu, Apache, Django etc). http://matplotlib.sourceforge.net/_static/logo2.png is too wide, and since the name is in the list anyway, I'd like to have the circular plot itself. Do you have it separately, or the Python code which generates it? Thank you! Tschö, Torsten. P.S.: Cutting it out didn't work because of the background. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Invalid (trancated) PDFs in Web application
Hallöchen! I generate PDFs of scientific data with Matplotlib. This is done automatically within a Web application written with Django. I generate a PNG thumbnail, too, which always is correct, however, the PDF is truncated in most cases. Now I wonder whether it may be a timeout by the Web server or Django itself. Thus, if Matplotlib takes too long (maybe due to cuncurrent processes), it cannot write the full PDF. However, if it fails, the truncation happens always at the same point in the file. Here's a good PDF: http://www-users.rwth-aachen.de/torsten.bronger/pds_okay.pdf And this is the truncated version: http://www-users.rwth-aachen.de/torsten.bronger/pds_truncated.pdf Thus, this is the trailing part which is missing: http://www-users.rwth-aachen.de/torsten.bronger/pds_missing.txt Does anybody has an idea at which point and why Matplotlib stops working? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] - 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] Invalid (trancated) PDFs in Web application
Hallöchen! Jouni K. Seppänen writes: Jouni K. Seppänen [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: Does anybody has an idea at which point and why Matplotlib stops working? ... if not self.passed_in_file_object: self.fh.close() I wonder if we should flush a file object that was passed in... Could you check if the following patch (committed on the trunk) helps with your problem? [...] Yes, it solves my problem. Apparently, if you wait long enough, the rest of the file is indeed written. However, with your patch, I see the whole file immediately, which is much better in the multi-processes environment of an Apache server. Thank you! Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] - 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