Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Juergen Hasch
No Powerpoint version I know supports SVG (or any vector graphics format useful in this case) and Matplotlib does not export WMF graphics anymore. So the easiest way is to use PNGs, if you can live with raster graphics. Alternatively, if you need vector graphics, you can export the Matplotlib

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Juergen Hasch
at conferences because they were using Windows and I only had access to Linux and Macs at home. Cheers! Ben Root On Mon, Apr 21, 2014 at 7:34 AM, Juergen Hasch pyt...@elbonia.de mailto:pyt...@elbonia.de wrote: No Powerpoint version I know supports SVG (or any vector graphics format

Re: [Matplotlib-users] nicely formatted exponential in title

2013-11-20 Thread Juergen Hasch
Have you tried latex_float() as suggested here ? http://stackoverflow.com/questions/13490292/format-number-using-latex-notation-in-python def latex_float(f): float_str = {0:.2g}.format(f) if e in float_str: base, exponent = float_str.split(e) return r{0} \times

Re: [Matplotlib-users] Problems with sans-serif fonts and tick labels with TeX

2013-05-03 Thread Juergen Hasch
The solution I use when I want all sans-serif out of TeX is to use the cmbright package, which can be turned on by adding: rc('text.latex', preamble=r'\usepackage{cmbright}') That may require installing the cmbright LaTeX package if you don't already have it. I am using the sfmath

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-31 Thread Juergen Hasch
Am 31.03.2013 08:50, schrieb Pawel Chojnacki: Thank you very much - hovewer, your solution isn't enough. Adding your lines generate: The problem is this: RuntimeError: LaTeX was not able to process the following string: u'' Here is the full report generated by LaTeX: Latex doesn't like

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Juergen Hasch
Am 30.03.2013 16:29, schrieb Pawel Chojnacki: Please pardon me, but what object is math.usetex attribute of? I can't find it in the documentation. http://matplotlib.org/users/usetex.html Mentions only text.usetex. You need to set mpl.rcParams['text.usetex'] = True For text you

Re: [Matplotlib-users] XKCD style graphs?

2012-10-11 Thread Juergen Hasch
Am 05.10.2012 11:13, schrieb Matthias BUSSONNIER: Le 4 oct. 2012 à 23:09, Juergen Hasch a écrit : Here is my take on it as an IPython notebook, based on Damon's code: http://nbviewer.ipython.org/3835181/ I took the engineering approach and filtered the random function instead of doing

Re: [Matplotlib-users] Control the position of a figure window

2012-10-04 Thread Juergen Hasch
If you like to use qt4 as backend, you can also do it like this: import sys from PySide import QtGui import numpy as np from matplotlib.figure import Figure from matplotlib.backends.backend_qt4agg \ import FigureCanvasQTAgg as FigureCanvas fig = Figure() axes = fig.add_subplot(111) x =

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Juergen Hasch
Here is my take on it as an IPython notebook, based on Damon's code: http://nbviewer.ipython.org/3835181/ I took the engineering approach and filtered the random function instead of doing some fft/ifft magic. Also, X and Y of the functions are affected now, giving them a more natural look in