Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-30 Thread Michael Droettboom
Sorry this thread fell through the cracks. Thanks for the reminder. The error is not actually on importing and parsing the .py file (it seems to do that just fine). The error is on printing to the console, at which point it tries to convert the Unicode string to ascii (which fails because

Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-25 Thread Sébastien Barthélemy
Hi, just wanted to raise this problem on the devel list, where it probably belongs. Also, if nobody has time to look at it now and you prefer me to file a bug, please don't hesitate to tell it. the original post is there: http://thread.gmane.org/gmane.comp.python.matplotlib.general/20411 Cheers

Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-21 Thread Sébastien Barthélemy
Le 18 novembre 2009 17:24, Michael Droettboom md...@stsci.edu a écrit : This is a bug -- but it has a fairly straightforward fix: to use Sphinx's include directive rather than roll our own as we currently do. This has been fixed in SVN r7972. plot-directive now takes an encoding option,

[Matplotlib-users] encoding of files included in sphinx

2009-11-18 Thread Sébastien Barthélemy
Hello, I'm using the matplotlib Sphinx extension which automatically includes the source code and the figures it produces into the Sphinx document. This is a very handy feature whose use goes far beyond documenting matplotlib itself. (thanks for that by the way) However I have trouble when the

Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-18 Thread Michael Droettboom
Sébastien Barthélemy wrote: Hello, I'm using the matplotlib Sphinx extension which automatically includes the source code and the figures it produces into the Sphinx document. This is a very handy feature whose use goes far beyond documenting matplotlib itself. (thanks for that by the

Re: [Matplotlib-users] encoding 2 variables with hue / intensity

2009-03-03 Thread Michael Droettboom
I don't think there's anything that will directly do what you want. However, you can provide a list of colors (one entry for each point) to scatter(), (the c kwarg) so you can generate your colors however you need to beforehand. If you come up with a solution that's generic enough, we would

Re: [Matplotlib-users] encoding 2 variables with hue / intensity

2009-03-03 Thread Peter Skomoroch
Mike, Thanks for the tip, I was also thinking of using some kind of nonlinear transform onto a 1D segmented colormap... I'll let you know if I come up with a solution. -Pete On Tue, Mar 3, 2009 at 8:27 AM, Michael Droettboom md...@stsci.edu wrote: I don't think there's anything that will

[Matplotlib-users] encoding 2 variables with hue / intensity

2009-03-02 Thread Peter Skomoroch
Is there any way to encode 2 variables in a matplotlib colormap? The idea is to replicate this dataspora R scatterplot in matplotlib: http://www.dataspora.com/gameday/pitcher/daisuke-matsuzaka/493137 The bottom strip of charts encode two dimensions with color -- blue or red hue indicates pitch

[Matplotlib-users] Encoding?

2007-06-07 Thread Marek Wojciechowski
Hi. How can I get polish letters in, for example, plot title? Now I have empty squares instead... Thanks in advance for any help. -- Marek Wojciechowski - This SF.net email is sponsored by DB2 Express Download DB2 Express

Re: [Matplotlib-users] Encoding?

2007-06-07 Thread Andrew Straw
Marek, See the unicode_demo.py and the tex_unicode_demo.py in the examples directory. Marek Wojciechowski wrote: Hi. How can I get polish letters in, for example, plot title? Now I have empty squares instead... Thanks in advance for any help.