|
From: Thomas C. <tca...@gm...> - 2014-11-14 18:14:03
|
Can you provide a reproducible example? There is not really enough here to sort out what is going wrong or why it is going wrong. Ideally the example should be self contained (code + synthetic data). What versions of mpl + numpy + python are you using everywhere? Tom On Fri Nov 14 2014 at 7:25:15 AM Torsten Bronger < br...@ph...> wrote: > 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 Bronger Jabber ID: tor...@ja... > 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=154624111& > iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |