Re: [Matplotlib-users] mplot3d and daspect

2011-06-09 Thread Richard Hofmeister
Thanks a lot, Ben!!! With using the mplot3d/pbaspect branch, my plot shows exactly what i asked for a few hours(!) ago. Nothing ugly here :) I'll keep track of that branch and can at least contribute by testing. Richard 2011/6/9 Benjamin Root > > > On Thu, Jun 9, 2011 at 10:13 AM, Benjamin Roo

Re: [Matplotlib-users] Exact semantics of ion()??

2011-06-09 Thread Eric Firing
On 06/09/2011 09:45 AM, Benjamin Root wrote: > > > On Tue, Jun 7, 2011 at 5:01 PM, Eric Firing > wrote: > > On 06/07/2011 11:46 AM, Benjamin Root wrote: > > On Saturday, June 4, 2011, Eric Firing > wrote: > >> > >> >

Re: [Matplotlib-users] Exact semantics of ion()??

2011-06-09 Thread Benjamin Root
On Tue, Jun 7, 2011 at 5:01 PM, Eric Firing wrote: > On 06/07/2011 11:46 AM, Benjamin Root wrote: > > On Saturday, June 4, 2011, Eric Firing wrote: > >> > >> > >> > https://github.com/efiring/matplotlib/blob/faq_show_draw/doc/faq/usage_faq.rst > >> > >> Eric, Ben, > >> > >> See if the section "W

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Evil Nick
> Trying to save plot as EMF, after installing pyemf 2.0 raises this > error: > > too many values to unpack Some code sample would help. It means what it says - trying to assign tuples or whatever to too few values, e.g.: x,y= (1,2,3) Is the error raised in your code or a library? --- Nick ---

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 19:52:18 Benjamin Root wrote: > You could also just edit your copy > of the file C:\Python26\lib\site- > packages\matplotlib\backends\backend_emf.py so that [:3] is added to the end > of lines 69 and 105. This page should show you what changes you need: > https://github.com/WeatherG

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 12:40 PM, Klonuo Umom wrote: > On 09.06.2011 19:29:35 Benjamin Root wrote: > > > I looks like backend_emf.py is choking on rgba values. Is EMF unable to > > handle Alpha channels? The fix should be fairly easy, though. > > > > I have no idea. I installed pyemf today as mp

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Daniel Mader
Thanks Stan, you're 100% right! Usually I load a set of rcParams with another font and that's why I don't have that problem: ## PNG output: pylab.rcParams['text.usetex'] = False ## schöner sans-serif Font *ohne* LaTeX: 'stixsans' pylab.rcParams['mathtext.fontset'] = 'stixsans' ## LaTeX-PDF output:

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 19:29:35 Benjamin Root wrote: > I looks like backend_emf.py is choking on rgba values. Is EMF unable to > handle Alpha channels? The fix should be fairly easy, though. > I have no idea. I installed pyemf today as mpl asked me to if I want to export to EMF. I wanted to use EMF as

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Stan West
> From: Daniel Mader [mailto:danielstefanma...@googlemail.com] > Sent: Thursday, June 09, 2011 11:59 > > Hi, > > I just noticed this doesn't work here, too, as I expected :( > > with u'äöüß°€' I can print the string, but the labels are still broken > in the plot: > > # -*- coding: utf-8 -*- >

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 12:02 PM, Klonuo Umom wrote: > On 09.06.2011 19:00:34 Benjamin Root wrote: > > > Ah, so the bug is in the emf backend. Which version of matplotlib are > you > > using? > > > > import matplotlib > > print matplotlib.__version__ > > > Latest stable I guess: 1.0.1 > I looks

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 19:00:34 Benjamin Root wrote: > Ah, so the bug is in the emf backend. Which version of matplotlib are you > using? > > import matplotlib > print matplotlib.__version__ Latest stable I guess: 1.0.1 -- Edi

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 11:56 AM, Klonuo Umom wrote: > On 09.06.2011 18:47:42 Benjamin Root wrote: > > > Question, does the following cause the same error? > > > > from pylab import * > > plot([1, 2, 3]) > > savefig('foobar.emf') > > > > There might be an important difference between saving from t

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 18:47:42 Benjamin Root wrote: > Question, does the following cause the same error? > > from pylab import * > plot([1, 2, 3]) > savefig('foobar.emf') > > There might be an important difference between saving from the save dialog > and saving directly through the savefig command. >

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Daniel Mader
I also use LaTeX with utf8 input encoding (and imho the required preamble is fully OK since it is 100% LaTeX) when generating PDF graphics -- but I do that only on a Linux box, so I can't verify for Windows... 2011/6/9 Klonuo Umom : > AFAIK I used this when working LaTeX in UTF-8: > ==

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 11:19 AM, Klonuo Umom wrote: > On 09.06.2011 18:06:57 Nick Veitch wrote: > > > Some code sample would help. It means what it says - trying to assign > > tuples or whatever to too few values, e.g.: > > x,y= (1,2,3) > > > > Is the error raised in your code or a library? > > T

Re: [Matplotlib-users] mplot3d and daspect

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 10:13 AM, Benjamin Root wrote: > > > On Thu, Jun 9, 2011 at 6:25 AM, Richard Hofmeister < > richard.hofmeis...@io-warnemuende.de> wrote: > >> Hello mplot3d specialists, >> >> I would like to change the aspect ratio of the 3d axes similar to matlab's >> functionality with da

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Klonuo Umom
On 09.06.2011 17:58:49 Daniel Mader wrote: > Hi, > > I just noticed this doesn't work here, too, as I expected :( > > with u'äöüß°€' I can print the string, but the labels are still broken > in the plot: > > # -*- coding: utf-8 -*- > > import matplotlib.pyplot as plt > plt.plot([1,2,3,4]) > >

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 18:06:57 Nick Veitch wrote: > Some code sample would help. It means what it says - trying to assign > tuples or whatever to too few values, e.g.: > x,y= (1,2,3) > > Is the error raised in your code or a library? Take any for example, like 'plot([1,2,3])' it doesn't matter I descri

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Nick Veitch
On 9 June 2011 15:13, Klonuo Umom wrote: > > Trying to save plot as EMF, after installing pyemf 2.0 raises this > error: > > too many values to unpack > Some code sample would help. It means what it says - trying to assign tuples or whatever to too few values, e.g.: x,y= (1,2,3) Is the error rai

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Daniel Mader
Hi, I just noticed this doesn't work here, too, as I expected :( with u'äöüß°€' I can print the string, but the labels are still broken in the plot: # -*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.plot([1,2,3,4]) xlabel = r'öäüß°€' plt.xlabel(xlabel) plt.show() plt.savefig('asdf')

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Klonuo Umom
Here is trace if I run this UTF-8 encoded file: === #-*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel(r'Пајтон') plt.show() --- on command line: === Tra

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Klonuo Umom
I use IPython (as pylab), and Qt4Agg as mpl backend I was entering annotations in Qt4 'Figure Options' dialog However, even if I try: === import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel(r'*some non ASCII chars*’) plt.show() -

Re: [Matplotlib-users] mplot3d and daspect

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 6:25 AM, Richard Hofmeister < richard.hofmeis...@io-warnemuende.de> wrote: > Hello mplot3d specialists, > > I would like to change the aspect ratio of the 3d axes similar to matlab's > functionality with daspect() or the 'dataaspectratio' property of 3d-axes. > In the end, t

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Daniel Mader
Hi, try putting an r in front of your string: e.g. label=r'äöü߀' And it might help to tell your editor the used encoding, too, by putting this as the first line: # -*- coding: utf-8 -*- Hope this helps, Daniel 2011/6/9 Klonuo Umom : > Hi, > > How can I use font in my locale or even better UTF-

[Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
I use matplotlib through IPython on Windows XP with Python 2.6.6 and Qt4Agg as backend Trying to save plot as EMF, after installing pyemf 2.0 raises this error: too many values to unpack -- EditLive Enterprise is the wo

[Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Klonuo Umom
Hi, How can I use font in my locale or even better UTF-8 for plot annotations? Right now I can see only empty rectangles instead characters when I try to enter anything other then ASCII Thanks -- EditLive Enterprise i

[Matplotlib-users] mplot3d and daspect

2011-06-09 Thread Richard Hofmeister
Hello mplot3d specialists, I would like to change the aspect ratio of the 3d axes similar to matlab's functionality with daspect() or the 'dataaspectratio' property of 3d-axes. In the end, the x-y-plane should be non-square due to different lengths (not range) of the x and y axis (i know that i ca