Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Michael Droettboom
Nope. But it's something I've wanted to add for a while. Can you file an Issue in the github tracker? Mike On 02/07/2012 11:40 AM, Gökhan Sever wrote: Is there a way in matplotlib to partially specify the color of a string? Example: plt.ylabel("Today is cloudy.") How can I show "today" as

Re: [Matplotlib-users] [matplotlib-users] Is it possible to set .pdf as defaut when saving an image?

2012-02-07 Thread Michael Droettboom
On 02/07/2012 10:48 AM, Benjamin Root wrote: On Tue, Feb 7, 2012 at 8:33 AM, Fabien Lafont > wrote: Is it possible to set the extension .pdf as defaut when I save an image using the matplotlib bar. My coworkers are always saving the image in png and

Re: [Matplotlib-users] rendering unicode using the PDF backend

2012-02-07 Thread Michael Droettboom
It looks like perhaps we'll need to "synthesize" glyph names if they aren't provided in the font (though it's not clear to me why they are not). This will be difficult to test for, as that's a proprietary font. Have you tried using another Unicode font, such as DejaVu Sans? Mike On 02/06/20

Re: [Matplotlib-users] Why pixel marker size is 4 pixels?

2012-02-06 Thread Michael Droettboom
There is a pull request for this here: https://github.com/matplotlib/matplotlib/pull/695 If you're able to checkout and build that branch from git, I would appreciate hearing if it resolves your issue. Mike On 02/06/2012 12:58 PM, Chris wrote: JJ, Thanks for the clarification. Now I under

Re: [Matplotlib-users] Why pixel marker size is 4 pixels?

2012-02-06 Thread Michael Droettboom
I'm looking into the source of this bug now. Mike On 02/06/2012 09:19 AM, Jonathan Slavin wrote: > Chris, > > You might want to try a module written by Tom Robitaille (aka astrofrog) > called rasterized_scatter. Look for it on github. > > Jon > > On Mon, 2012-02-06 at 21:28 +0900, Jae-Joon Lee w

Re: [Matplotlib-users] Path lacks initial MOVETO

2012-01-23 Thread Michael Droettboom
I have a solution for this in this pull request: https://github.com/matplotlib/matplotlib/pull/684 If able, would you mind confirming that it addresses your issue? Mike On 01/23/2012 09:02 AM, Bruno Santos wrote: Sorry it took me a while to get back to you. I have finally written some code to

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Michael Droettboom
I've filed a bug for this here: https://github.com/matplotlib/matplotlib/issues/662 Mike On 01/06/2012 11:55 AM, David Hoese wrote: Hi Ken, You're getting that error because you probably don't have Qt4 installed on your Mac (I do). I'm not sure what backends come with matplotlib and will w

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Michael Droettboom
I suspect this bug is specific to the macosx backend. Can you switch to another backend and confirm it doesn't happen there? (I can't reproduce it on Linux). Mike On 01/06/2012 10:54 AM, Mingkui Li wrote: I just updated matplotlib to 1.1 and want try the new features Sankey Diagrams

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Michael Droettboom
This is great! Absolutely a much-needed and much-requested feature. I wonder, however, about the need for function-specific color cycles. Is there a use case there? I'd be just as happy with a single global color cycle that all functions would use. I also like the suggestion of a "style" c

Re: [Matplotlib-users] MPL Py2 and Py3 working together?

2011-12-19 Thread Michael Droettboom
It's definitely possible. Each version of Python installed has its own set of Python packages, so it would just be a matter of installing matplotlib in both places. Mike On 12/19/2011 09:38 AM, Ignas Anikevicius wrote: > Hello list, > > I was wondering, if it was possible to have Py2 *and* Py3

Re: [Matplotlib-users] How to do million data-point plots with Matplotlib?

2011-12-15 Thread Michael Droettboom
On 12/10/2011 01:12 PM, David Smith wrote: > I have been working on a program that uses Matplotlib to plot data > consisting of around one million points. Sometimes the plots succeed but > often I get an exception: OverFlowError: Agg rendering complexity exceeded. Are you sure path simplification

Re: [Matplotlib-users] Fonts question.

2011-12-14 Thread Michael Droettboom
You'll want to set the rcParam "pdf.fonttype" to 42 to embed the entire TTF file in the PDF file, allowing for editing text as text. Mike On 12/13/2011 01:23 PM, Hongchun Jin wrote: *Hi folks, * * * *I try to use the PDF backend in my plotting script, when I expect to have a pdf figure. Howev

Re: [Matplotlib-users] ft2font.cpp memory fix patch not in 1.1.x branch

2011-12-06 Thread Michael Droettboom
.. Ok, looks like everything is where it should be, I guess. Ben Root On Mon, Dec 5, 2011 at 1:44 PM, Michael Droettboom <mailto:md...@stsci.edu>> wrote: It looks like this is already on 1.1.x, but not in the 1.1.0 release. Or am I missing something? Mike On 12/01

Re: [Matplotlib-users] latex and mathin y x labels?

2011-12-05 Thread Michael Droettboom
Set the rcParam "mathtext.default" to "regular". Mike On 12/04/2011 05:13 PM, Piter_ wrote: > Hi all. > I have tried to add fractions, superscript and some other symbols in > axis labels using latex or mathtext. But then they are different to > much from other text. > Is there any trick to make t

Re: [Matplotlib-users] how to use different font for serif

2011-12-05 Thread Michael Droettboom
What rcParams are you setting? font.family: serif font.serif: Times New Roman and font.family: Times New Roman both work for me. You have to use the name of the font as specified in the file, not the filename to specify the font (which is probably why "times" is not working for you). Mike

Re: [Matplotlib-users] ft2font.cpp memory fix patch not in 1.1.x branch

2011-12-05 Thread Michael Droettboom
ilto:nmar...@ska.ac.za>> wrote: https://github.com/matplotlib/matplotlib/commit /98ee4e991ae142622f3814db193b75236eb77cea#src/ft2font.cpp Hmm, strange... It isn't even in master right now. The last changes to it were by Michael Droettboom (commit 6b643862)

Re: [Matplotlib-users] Unicode greek letters

2011-11-22 Thread Michael Droettboom
You may need to set your default font to something with those characters. For example: import matplotlib matplotlib.rcParams['font.family'] = 'DejaVu Sans' Mike On 11/22/2011 05:41 AM, Yannick Copin wrote: > Hi, > > I'm confused regarding the use of Unicode characters in matplotlib. I

Re: [Matplotlib-users] Build on VS2008 - warnings

2011-11-15 Thread Michael Droettboom
://p.sf.net/sfu/rsa-sfdev2dev1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Space Telescope Science Inst

[Matplotlib-users] Today's XKCD

2011-11-14 Thread Michael Droettboom
Sorry for the slightly OT post, but I thought all of the basemap-using geoprojection heads on this list would get a kick out of today's XKCD: http://xkcd.com/977/ Mike -- RSA(R) Conference 2012 Save $700 by Nov 18 Regis

Re: [Matplotlib-users] Web & matplotlib

2011-11-14 Thread Michael Droettboom
I'm not sure what MAMP is. Usually this problem is because matplotlib is trying to import a GUI toolkit and the windowing environment is not available from the web server. Try setting the matplotlib backend to "Agg", by putting this at the top of the file: import matplotlib matplotlib.

Re: [Matplotlib-users] I get a warning when running code with ipython, but not with python

2011-11-14 Thread Michael Droettboom
This looks like a bug for the IPython folks. If you make a file containing only "import gtk" and "%run" that file, one gets the same error. Mike On 11/13/2011 10:30 PM, Alejandro Weinstein wrote: > Hi: > > I just installed matplolib from source code, and Ipython using pip, in > Ubuntu 11.10. >

Re: [Matplotlib-users] Upgraded to 1.1.0, now only line graphs work!

2011-11-14 Thread Michael Droettboom
We should also update the checks for the version of Numpy. Expect a pull request about this shortly. Mike On 11/12/2011 10:59 PM, Benjamin Root wrote: On Saturday, November 12, 2011, John Ladasky mailto:john_lada...@sbcglobal.net>> wrote: > On Sat, 2011-11-12 at 20:08 -0600, Warren Weckes

Re: [Matplotlib-users] Inexact drawing of points

2011-11-14 Thread Michael Droettboom
On 11/13/2011 10:03 AM, Goyo wrote: > 2011/11/7 Anton Daitche: > >> Do you remember the name of the thread? I would like to understand the >> details on this. > I can't find it right now but I guess Michael's answer helps you. > >> I also would like to find out if i can force the renderer to do exa

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-14 Thread Michael Droettboom
Thanks for all the time you've devoted to this. It does look like possibly some kind of compiler bug. The font loads and renders fine on Linux, for what it's worth (just as a data point). To confirm this theory: if you move NISC1803.ttf somewhere temporary, delete ~/.matplotlibrc/fontList.cac

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-11 Thread Michael Droettboom
Very odd. Given there's no C++ changes here, I'm very surprised. Shooting in the dark here: does deleting ~/.matplotlib/fontList.cache help at all? Mike On 11/11/2011 05:34 PM, Friedrich Romstedt wrote: > 2011/11/11 Michael Droettboom: >> Running bisect in this way, did y

Re: [Matplotlib-users] Matplotlib.tests sub-modules missing

2011-11-11 Thread Michael Droettboom
Have you tried removing the build directory and install directories to force a full rebuild? It sounds like the build or install got stuck at some point. I've never seen it not copy *.py files in a package before. Mike On 11/11/2011 03:12 PM, David Welch wrote: > Update: test folders are in t

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-10 Thread Michael Droettboom
On 11/10/2011 05:16 PM, Friedrich Romstedt wrote: > Furthermore, Michael is right, while bisecting I didn't ``rm build/`` > properly; I just did ``python2.6 setup.py clean``. Later on I did that > properly, after I noticed that the offending commit reported by bisect > actually runs cleanly. I t

Re: [Matplotlib-users] Errors, warnings, fonts and py2exe

2011-11-10 Thread Michael Droettboom
Did you include the fonts as described here? http://www.py2exe.org/index.cgi/MatPlotLib Mike On 11/10/2011 08:03 AM, Armando Serrano Lombillo wrote: Hello, I'm having a weird problem with matplotlib not finding fonts when being used from a py2exe packed program. The weird thing is that the p

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-10 Thread Michael Droettboom
5c4 (2011-02-24) > fails; 2ab8582f (2011-02-21) fails; df25e3130 (2011-02-20, the merge > of 0.98 into 0.99) succeeds (see above). 13894992 (2011-02-20, the > merge of 0.99 into 1.0) fails. > > So I conclude the failure is introduced somewhere in the 0.99 branch. > > Compiling ran

Re: [Matplotlib-users] Inexact drawing of points

2011-11-08 Thread Michael Droettboom
For speed in the Agg backend the markers are drawn once and then copied as rasters to all of their positions. This implies that the markers end up pixel aligned, which is the source of the error you're seeing. This does not happen in the vector backends. If you want to not get this behavior,

Re: [Matplotlib-users] How to write matrices in Sphinx using matplotlib extensions ?

2011-11-08 Thread Michael Droettboom
Unfortunately, the matplotlib mathtext renderer does not support \begin{array} (or any of the \begin{}/\end{} tags for that matter). You'll probably want to experiment with one of the other math plugins for sphinx described here: http://sphinx.pocoo.org/ext/math.html Mike On 11/08/2011 05:5

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Michael Droettboom
On 11/02/2011 05:09 PM, Mads Ipsen wrote: > Works like a charm. What about support for the Qt backend. Do I need any > Qt dev. env. installed or does it just rely on PyQt and Qt binaries > being present on the machine? > Just PyQt and Qt binaries should be enough -- there is no C/C++ code in matpl

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Michael Droettboom
On 11/02/2011 01:34 PM, Mads Ipsen wrote: On 11/02/2011 05:50 PM, Michael Droettboom wrote: On 11/02/2011 10:53 AM, Mads Ipsen wrote: Any clues to why ft2build.h cannot be located. The above docs says it should be part of the binary installer. The binary for freetype is included with the

Re: [Matplotlib-users] v1.1.0 crashes upon exit

2011-11-02 Thread Michael Droettboom
I'm not able to reproduce this, but I've seen similar issues in the past. Can you tell me if this patch fixes it for you? diff --git a/lib/matplotlib/backends/backend_gtk.py b/lib/matplotlib/backends/backend index 1012bbe..2efb72a 100644 --- a/lib/matplotlib/backends/backend_gtk.py +++ b/lib/ma

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Michael Droettboom
On 11/02/2011 10:53 AM, Mads Ipsen wrote: Hi, I am trying to build MPL 1.1.0 with VS 2008 on Windows XP 32. I have installed * Python 2.7.2 * Numpy 1.6 In the docs it says Windows users only need the first two (python and numpy) since the others are built into the matplotlib Windows instal

Re: [Matplotlib-users] Warning: converting a masked element to nan

2011-11-02 Thread Michael Droettboom
matplotlib should handle both masked arrays and arrays with NaNs and treat both the same. Can you reduce the script to something that can be run independently without data? It's not clear to me yet why this is failing. Mike On 11/01/2011 05:24 PM, questions anon wrote: Hi All, I am trying

Re: [Matplotlib-users] matplotlib.axes.Axes.arrow not producing nice arrows

2011-10-27 Thread Michael Droettboom
It looks like the polygons that make up the arrows were not being closed correctly, so the PDF renderer was not joining the ends of the stroke. Can you confirm that this branch resolves your issue? https://github.com/matplotlib/matplotlib/pull/559 Mike On 10/27/2011 11:36 AM, mogliii wrote:

Re: [Matplotlib-users] Pure python matplotlib for Google App Engine

2011-10-26 Thread Michael Droettboom
On 10/26/2011 02:40 AM, Benjamin Root wrote: On Tuesday, October 25, 2011, jniemasik > wrote: > > Hi all, > > Google App Engine recently added an experimental Python 2.7 option, and > along with it, support for numpy. > > App Engine only allows pure python code to be

Re: [Matplotlib-users] extreme navigation slowness for subplots

2011-10-21 Thread Michael Droettboom
I have a simple fix for this on this branch: https://github.com/mdboom/matplotlib/tree/slow_update It's sort of the simplest thing that could work. It caches the last results of "_update_ticks" and only updates them if the view limits or axis position have changed. It also invalidates this c

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Michael Droettboom
"tweakable" at runtime. I'll try to tackle this problem, as well as the problem that set_alpha simply doesn't work, at the same time when I get a chance (or patches are always welcome, of course :). Mike > Thanks for all of the help with this Mike, > > Daniel > &g

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Michael Droettboom
ven knowing that there was alternative. I'll play with this tonight; I don't see any problem getting the thing working, though, now that I know what agg expects to see... And yes, alpha support in the image class would be very helpful ;) On Wed, Oct 19, 2011 at 2:16 PM, Michael

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-19 Thread Michael Droettboom
You are right that Agg is doing the resizing here. Agg expects premultiplied alpha. See [1] for information about what that means. [1] http://en.wikipedia.org/wiki/Alpha_compositing After Agg interpolates the pixel values, to prevent oversaturation it truncates all values to be less than alp

Re: [Matplotlib-users] TypeError: instancemethod expected at least 2 arguments, got 0

2011-10-10 Thread Michael Droettboom
How does one reproduce this? Mike On 10/09/2011 04:32 AM, Nils Wagner wrote: > File > "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/backend_qt4.py", > line 463, in edit_parameters > figureoptions.figure_edit(axes, self) > File > "/home/nwagner/local/lib64/py

Re: [Matplotlib-users] Using otf fonts in matplotlib

2011-10-10 Thread Michael Droettboom
Using anything but the CM and STIX fonts in mathtext ultimately leads to a world of pain and I consider it "unsupported", because there are custom tweaks to get the alignment working that end up being missing. However, if you really want to try it you can set the following rcParams: mathtext

Re: [Matplotlib-users] Using otf fonts in matplotlib

2011-10-10 Thread Michael Droettboom
On 10/10/2011 08:25 AM, Andreas H. wrote: > Hi, > > I would like to use .otf fonts for typesetting text (axes, titles, labels, > legends, ...) in matplotlib. Is this possible? If yes, how? Yes. Put the font somewhere in your font search path. (Where that would be depends on your platform, but fo

Re: [Matplotlib-users] PDF/SVG Backends Don't Save FigureImages

2011-09-27 Thread Michael Droettboom
On 09/27/2011 06:21 AM, Dave Hirschfeld wrote: > Michael Droettboom writes: > >> I'm not able to reproduce the problem: I get the watermark in both png >> and pdf output. This was with git master. >> >> What version of matplotlib are you using? Can you send

Re: [Matplotlib-users] PDF/SVG Backends Don't Save FigureImages

2011-09-22 Thread Michael Droettboom
I'm not able to reproduce the problem: I get the watermark in both png and pdf output. This was with git master. What version of matplotlib are you using? Can you send (off-list) the png and pdf files so I can have a look at your output? Mike On 09/21/2011 10:28 AM, Dave Hirschfeld wrote: >

Re: [Matplotlib-users] x, y labels with varying font styles

2011-09-19 Thread Michael Droettboom
On 09/14/2011 05:48 PM, Benjamin Root wrote: On Wed, Sep 14, 2011 at 4:34 PM, CAB > wrote: But now, let's say I want to italicize only the 'f' and 'x'. I can't find any easy way to do that while retaining the Arial font. And no, I don't want to use TeX

Re: [Matplotlib-users] PDF (but not screen) output raises "Path lacks initial MOVETO"

2011-09-15 Thread Michael Droettboom
I was able to confirm this bug with 1.0.1, but it has already been fixed in git master. This fix should make it into the next release. I used "git bisect" to track down the point at which it was fixed and turned up this: https://github.com/matplotlib/matplotlib/commit/6fe5fa03e8608949cb08a

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Michael Droettboom
I wouldn't recommend trying to build freetype from source. Have you installed the freetype development package? I'm not familiar with SuSE, but on RedHat/Fedora this would be accomplished by (as root) "yum install freetype2-dev" and on Debian/Ubuntu "apt-get install freetype2-devel". Mike O

Re: [Matplotlib-users] Change JPG compression ratio in savefig

2011-09-06 Thread Michael Droettboom
Sorry for the noise -- I missed that this was already replied to (and with much greater detail). Mike On 09/06/2011 12:41 PM, Michael Droettboom wrote: > When you call savefig(), you can pass "quality", "optimize" and > "progressive", as defined in the pr

Re: [Matplotlib-users] Change JPG compression ratio in savefig

2011-09-06 Thread Michael Droettboom
> http://p.sf.net/sfu/arcsisghtdev2dev > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Space Telesc

Re: [Matplotlib-users] Can't render the \dagger LaTex symbol

2011-09-06 Thread Michael Droettboom
ter > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > ___________ > Matplotlib-users mailing list > Matplotlib-users@li

Re: [Matplotlib-users] Problem with GTK backends after compiling matplotlib

2011-09-06 Thread Michael Droettboom
On 08/31/2011 11:21 PM, Eric Firing wrote: > On 08/31/2011 01:59 PM, Benjamin Root wrote: >> On Wed, Aug 31, 2011 at 6:35 PM, Craig Finch> > wrote: >> >> I figured it out! I accidentally did something weird. When I built >> NumPy and SciPy, I used the --user opt

Re: [Matplotlib-users] edge joinstyle on rectangles

2011-09-06 Thread Michael Droettboom
object outlines, not Line2D objects, and > solid_joinstyle is not presently supported by patches, as far as I can see. > I suppose it probably should be supported, though. Do you agree? Mike -- Michael Droettboom

Re: [Matplotlib-users] Details regarding TeX interpreter for different backends

2011-08-26 Thread Michael Droettboom
On 08/26/2011 02:32 AM, Ole Jacob Hagen wrote: Hi, I'm about to implement a TeX interpreter for the graphical backend to GNU Octave (http://www.octave.org). The rendering is in OpenGL context. As I understand it, matplotlib doesn't use OpenGL at all? Not at present -- though various people a

Re: [Matplotlib-users] Symmetrical Log Scale on Axis

2011-08-22 Thread Michael Droettboom
You want to call "set_yscale('symlog')" on the axes. Mike On 08/19/2011 01:07 PM, Jonny Milliken wrote: Hi, I am having some trouble establishing how to use matplotlib.scale.SymmetricalLogScale() to draw a log scale on the positive and negative axis of a plot. Assuming of course that is the

Re: [Matplotlib-users] Font family ['cmb10'] not found

2011-08-15 Thread Michael Droettboom
It looks like it isn't finding the Computer Modern Bakoma fonts. They don't seem to be included in the Fedora Package (see here: http://koji.fedoraproject.org/koji/buildinfo?buildID=230966) and the package does not depend on those fonts. Some of them are packaged in the lyx-fonts package, so

Re: [Matplotlib-users] matplotlib backends - WXAgg vs. WX

2011-08-15 Thread Michael Droettboom
On 08/14/2011 11:28 AM, Vlastimil Brom wrote: > > > Regarding wxagg, it seems, that the suggestion about unsuitable fonts > being used was correct; > after setting the font to Arial, adapted from: > http://matplotlib.sourceforge.net/examples/api/

Re: [Matplotlib-users] unable to draw text at angles other than 0 or 90

2011-08-12 Thread Michael Droettboom
I wonder if it's worthwhile throwing a warning when mplot3d is used in conjunction with the Gtk backend? Mike On 08/12/2011 02:47 AM, Benjamin Root wrote: On Friday, August 12, 2011, WALTER Alain > wrote: > You're right I'm not clear. You thought I' am us

Re: [Matplotlib-users] segfault in matplotlib

2011-08-08 Thread Michael Droettboom
--- > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, han

Re: [Matplotlib-users] Using comma as decimal separator

2011-08-05 Thread Michael Droettboom
I'm still puzzled here. The TeX file is definitely being generated with an unreasonably large size, which is what causes it to blow up. It gets the size from the size of the matplotlib figure, which I assume is being incorrectly calculated by the tight bounding box code. Of course, I can't r

Re: [Matplotlib-users] how can i use utf-8 or just how can i plot the datetime in local settings ?

2011-08-01 Thread Michael Droettboom
urn unicode(s, preferredencoding) > UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position > 0: ordinal not in range(128) > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<&

Re: [Matplotlib-users] Using comma as decimal separator

2011-07-29 Thread Michael Droettboom
h the sources and compiling, I don't know > exactly how to apply this patch. Is there a guide to applying > patches to matplotlib or something like that? Any help will > be appreciated. > > --- > José Alexandre Nalon > na...@terra.com.br > > > Em 29/07/2011, às 12:08, Mi

Re: [Matplotlib-users] Using comma as decimal separator

2011-07-29 Thread Michael Droettboom
There isn't a really good way to do this at present. Maybe someone can suggest a workaround that doesn't require modifying matplotlib. However, I was able to produce a patch that will respect the user's current locale here: https://github.com/matplotlib/matplotlib/pull/410 Cheers, Mike On 07

Re: [Matplotlib-users] annotate

2011-07-18 Thread Michael Droettboom
t;, ec="b")) > ax2.annotate("", (100, 5), (2000, 5), >arrowprops=dict(arrowstyle="-|>",fc="r", ec="r")) > pp.savefig('test_arrow.pdf') > pp.show() > -- Michael Droettboom Science Software Branch Space

Re: [Matplotlib-users] Savefig Question

2011-07-08 Thread Michael Droettboom
It's hard to say from the code snippet, but I would track down whether self.page_graph.figure is the figure that you think it is. It could be a Figure object without any axes on it. Cheers, Mike On 07/08/2011 03:55 AM, Sebastian Rhode wrote: Hi, I use the followng function for my applicatio

Re: [Matplotlib-users] math symbols with matplotlib basemap

2011-07-05 Thread Michael Droettboom
splunk-d2d-c2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Sc

Re: [Matplotlib-users] "bad screen distance" tkinter error with German locale

2011-06-30 Thread Michael Droettboom
On 06/30/2011 01:10 PM, Michael Droettboom wrote: > I'm surprised this bug (which really lies in Tkinter) isn't more widely > known -- searching the Python bug tracker revealed nothing. It would be > great to follow-up there (with a standalone Tkinter-crashing example) if >

Re: [Matplotlib-users] "bad screen distance" tkinter error with German locale

2011-06-30 Thread Michael Droettboom
On 06/30/2011 01:10 PM, Michael Droettboom wrote: > I'm surprised this bug (which really lies in Tkinter) isn't more widely > known -- searching the Python bug tracker revealed nothing. It would be > great to follow-up there (with a standalone Tkinter-crashing example) if >

Re: [Matplotlib-users] "bad screen distance" tkinter error with German locale

2011-06-30 Thread Michael Droettboom
nd the cryptic Tkinter error was. > > Kind regards, > H. > > > -- > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of applicati

Re: [Matplotlib-users] gimmicks/eye candy: Is for example fading possible?

2011-06-22 Thread Michael Droettboom
u/ephox-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore

Re: [Matplotlib-users] savefig very slow

2011-06-15 Thread Michael Droettboom
ey" commands). > > If I don't draw winds is very fast (2 seconds against 13 seconds). > > Is possible to make the program faster? Any idea? > > I use the 'Agg' backend and the latest version of matplotlib. > > Thank you in advance, > -- Michael Dr

Re: [Matplotlib-users] Plan to merge the matplotlib-py3 branch?

2011-06-13 Thread Michael Droettboom
_ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA -

Re: [Matplotlib-users] mathbb and eps export

2011-05-27 Thread Michael Droettboom
> wasn't enabled by default)? > > Thanks, > Oscar. > On Tue, May 24, 2011 at 11:06:10AM -0400, Michael Droettboom wrote: >> You probably have "ps.useafm" set, right? Unfortunately, the stock >> Postscript AFM fonts do not have a blackboard style. Setting >>

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Michael Droettboom
hen > matplotlib uses it's own engine to render latex, and not when > text.usetex=true is used. > > Cairo backend is not support when text.usetex=true (only Agg, pdf and ps > according to documentation) > > On 05/27/2011 03:53 PM, Michael Droettboom wrote: >> Have you

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Michael Droettboom
Have you tried setting the rcParams "pdf.fonttype" to 3? That should subset the fonts. Also, the Cairo backend supports font subsetting. Mike On 05/27/2011 07:00 AM, Simon Jesenko wrote: > Hi, > > I have a problem with large file-sizes of plots saved to pdf, when using > rcParams['text.usetex'

Re: [Matplotlib-users] mathbb and eps export

2011-05-24 Thread Michael Droettboom
ast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: [Matplotlib-users] latex just produces gibberish

2011-05-18 Thread Michael Droettboom
rint out a bunch of information about font searching and hopefully track down why the Bakoma fonts are not getting found. Mike On 05/18/2011 11:36 AM, Neal Becker wrote: Michael Droettboom wrote: Are you setting text.usetex to True, or using matplotlib's built-in mathtext rendering? Ca

Re: [Matplotlib-users] latex just produces gibberish

2011-05-18 Thread Michael Droettboom
Are you setting text.usetex to True, or using matplotlib's built-in mathtext rendering? Can you attach an image? I've seen enough of these failure cases that I can often guess by looking at it ;) Mike On 05/18/2011 09:21 AM, Neal Becker wrote: > Darren Dale wrote: > >> On Tue, May 17, 2011 at

Re: [Matplotlib-users] terminate called after throwing an instance of 'Py::AttributeError'

2011-05-18 Thread Michael Droettboom
Can you provide a stack trace -- either a Python one, or a gdb one? Mike On 05/18/2011 03:25 AM, Mark Hepburn wrote: > Hi, > > I have a web application using matplotlib which is unpredictably > crashing with the error message from the subject. It seems to be > happening in ft2font, but I can't b

Re: [Matplotlib-users] use matplotlib to produce mathathematical expression only

2011-05-16 Thread Michael Droettboom
ac{x-m}{s1})}$', > > > fontsize=20) > > > plt.show() > > > > > > /j > > > > > > > > Use figtext instead. I did the following and it looked fine to me: > > > > plt.figure() > > p

Re: [Matplotlib-users] Text outside the graphs "box"

2011-05-13 Thread Michael Droettboom
nd Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> ___ >> Matplo

Re: [Matplotlib-users] eps output and fill_between

2011-05-13 Thread Michael Droettboom
pdf. If not, maybe we can hone in on what is special about >> the >> vertices in your fill_between example. Also, you should give us some >> information about what version of matplotlib and OSX you are running. >> >>> >>> import numpy as np >>

Re: [Matplotlib-users] Text outside the graphs "box"

2011-05-13 Thread Michael Droettboom
=p*\frac{1}{s1\sqrt{2\pi}}$', fontsize=20) > > thanks > > /johannes > -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA -- Achieve unprecedented

Re: [Matplotlib-users] another incorrectly clipped PNG in the gallery

2011-05-12 Thread Michael Droettboom
On 05/12/2011 02:34 PM, C M wrote: > On Thu, May 12, 2011 at 1:26 PM, Michael Droettboom wrote: > >> You can always get a tarball of the current git master by going here: >> >> https://github.com/matplotlib/matplotlib >> >> clicking on "Download&

Re: [Matplotlib-users] another incorrectly clipped PNG in the gallery

2011-05-12 Thread Michael Droettboom
http://p.sf.net/sfu/intel-dev2devmay > _______ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Space T

Re: [Matplotlib-users] strange behavior with the scatter() function

2011-05-02 Thread Michael Droettboom
competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Space Tel

Re: [Matplotlib-users] Annotate value of a variable with ax.annotate?

2011-04-29 Thread Michael Droettboom
ive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > ___________ > Matplotlib-users mailing list > Matpl

Re: [Matplotlib-users] Change hatch intensity/color for PDF backend

2011-04-25 Thread Michael Droettboom
Currently it's hardcoded. You can see it in this line in backend_pdf.py: https://github.com/matplotlib/matplotlib/blob/9ca2c4118f684b4e145bd109008f77731d2d7cd4/lib/matplotlib/backends/backend_pdf.py#L1061 You could change that line. However, long term, I think we need to add a hatch_line_width

Re: [Matplotlib-users] Memory leakage in matplotlib 1.0.1 with wx 2.8.11.0

2011-04-21 Thread Michael Droettboom
irtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______ Matplotlib-users mailing list Mat

Re: [Matplotlib-users] Possible memory leak?

2011-04-21 Thread Michael Droettboom
Apr 20, 2011 at 1:04 PM, Michael Droettboom wrote: > >> On 04/20/2011 11:27 AM, Caleb Constantine wrote: >> >>> On Wed, Apr 20, 2011 at 9:29 AM, Michael Droettboom >>> wrote: >>> >>>> On 04/20/2011 07:48 AM, Caleb Cons

Re: [Matplotlib-users] Increase max polygons/patches

2011-04-21 Thread Michael Droettboom
users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland

Re: [Matplotlib-users] Possible memory leak?

2011-04-20 Thread Michael Droettboom
On 04/20/2011 11:27 AM, Caleb Constantine wrote: > On Wed, Apr 20, 2011 at 9:29 AM, Michael Droettboom wrote: >> On 04/20/2011 07:48 AM, Caleb Constantine wrote: >>> On Tue, Apr 19, 2011 at 2:25 PM, Michael Droettboom >>> wrote: >>>> Ok. I h

Re: [Matplotlib-users] Possible memory leak?

2011-04-20 Thread Michael Droettboom
On 04/20/2011 07:48 AM, Caleb Constantine wrote: > On Tue, Apr 19, 2011 at 2:25 PM, Michael Droettboom wrote: >> Ok. I have a RHEL5 Linux box with Python 2.7.1. >> >> With Numpy 1.4.1 and 1.5.1 I don't see any leaks. With Numpy git HEAD, >> I did see a leak

Re: [Matplotlib-users] Possible memory leak?

2011-04-19 Thread Michael Droettboom
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://l

Re: [Matplotlib-users] Possible memory leak?

2011-04-19 Thread Michael Droettboom
an reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > ___ > Matplotlib-users mailing list >

Re: [Matplotlib-users] OverflowError: math range error

2011-04-18 Thread Michael Droettboom
Do you have a minimal script that reproduces this error? Cheers, Mike On 04/18/2011 07:37 AM, Muffles wrote: > Hello all, > I am getting this error, and im not very experienced with matplotlib, but in > most files this code worked, but in some i just get this error: > > Traceback (most recent cal

Re: [Matplotlib-users] Re : matplotlibrc for [ieee] publications

2011-04-15 Thread Michael Droettboom
sourceforge.net/lists/listinfo/matplotlib-users >>> >> -- >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization

Re: [Matplotlib-users] matplotlib documentation broken link report

2011-04-08 Thread Michael Droettboom
a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net

<    1   2   3   4   5   6   7   8   9   10   >