Re: [Matplotlib-users] [newbie] 2 problems: a) CJK, b) adding letters to points

2010-03-15 Thread Gökhan Sever
On Mon, Mar 15, 2010 at 6:18 PM, David wrote: > Hello everyone, > > I hope you can help me with two problems I am struggling with. The second > question, I imagine, should be rather easy, but I wasn't able to figure it > out by googling. > > a) My graph will have Chinese labels, however mpl does

[Matplotlib-users] [newbie] 2 problems: a) CJK, b) adding letters to points

2010-03-15 Thread David
Hello everyone, I hope you can help me with two problems I am struggling with. The second question, I imagine, should be rather easy, but I wasn't able to figure it out by googling. a) My graph will have Chinese labels, however mpl does not render the Chinese characters. I was unable to find

[Matplotlib-users] installling on ubuntu

2010-03-15 Thread Samuel Teixeira Santos
Hi all... On this afternoon I installed on my ubuntu 8.04 server the python-matplotlib package and his dependencies. but If I pay attention right that package installed matplotlib 0.91 on my local desktop wich run windows, I installed the last version... Anyone knows how do I de-install only ma

Re: [Matplotlib-users] figure: underlying C/C++ object has been deleted

2010-03-15 Thread tomislav_ma...@gmx.com
Thanks! :D Thank you very much. The ipython -pylab is working great! Tomislav P.S. Enjoy the Hawaiian sunshine... :D I'm freezing in Munich, Germany... - Original Message - From: Eric Firing Sent: 03/15/10 07:59 PM To: tomislav_ma...@gmx.com Subject: Re: [Matplotlib-users] figure: unde

Re: [Matplotlib-users] color kwarg of hist

2010-03-15 Thread Eric Firing
John Didion wrote: > The documentation for hist says that the color kwarg can take a sequence > of rgba tuples. However, anytime I pass a sequence I get: That is an error in the docstring; it can take only a single color, which will be applied to both the edge and the fill. Eric > > > Traceba

[Matplotlib-users] color kwarg of hist

2010-03-15 Thread John Didion
The documentation for hist says that the color kwarg can take a sequence of rgba tuples. However, anytime I pass a sequence I get: Traceback (most recent call last): File "./chromoplot.py", line 283, in main() File "./chromoplot.py", line 280, in main plot(data_file, figure_file, opti

Re: [Matplotlib-users] figure: underlying C/C++ object has been deleted

2010-03-15 Thread Eric Firing
tomislav_ma...@gmx.com wrote: [...] > > Here is the code with the error: > > > http://pastebin.com/3QUws70n > > > > I don't understand, why would a figure object get deleted after it's > shown on the screen? What am I doing wrong? This is a common "gotcha": don't use pyplot.show() anywhere

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-15 Thread Eric Firing
Ian Thomas wrote: > Chris Barker wrote: >> I think it would be great to have in MPL. >> >> What code are you using for the triangulation? Does it do constrained >> delauney? > > My code only does the contouring; you have to input the triangulation. > In the examples included with the code I used

[Matplotlib-users] figure: underlying C/C++ object has been deleted

2010-03-15 Thread tomislav_ma...@gmx.com
Hi, I forgot to write something in my last email: I just wish to thank the developers of this insanely great tool. Long live open source. Thank you very much for this, it's the best data/graph manipulation software ever. Now, for my question: I'm not sure if I misunderstood something, or is i

Re: [Matplotlib-users] axis aspect ratio

2010-03-15 Thread tomislav_ma...@gmx.com
Thanks a lot! This worked like a charm. I'll need to dig into matplotlib a lot later, but now I have truckloads of bugs in my code to deal with, this will speed me up significantly. Thank you again, Tomislav - Original Message - From: phob...@geosyntec.com Sent: 03/15/10 05:40 PM To: to

Re: [Matplotlib-users] axis aspect ratio

2010-03-15 Thread PHobson
Give this a shot: import matplotlib.pyplot as plt fig = pl.figure(figsize=(4,4)) ax = fig.add_sublot(1,1,1) # tweak as needed # [plot your data] ax.set_aspect(‘equal’) http://matplotlib.sourceforge.net/api/axes_api.html?highlight=set_aspect#matplotlib.axes.Axes.set_aspect From: tomislav_ma...@gm

[Matplotlib-users] axis aspect ratio

2010-03-15 Thread tomislav_ma...@gmx.com
Hello everyone, I'm using matplotlib for plotting data results from numerical simulations that involve a lot of geometric calculations. I did read the tutorial, but I haven't been able to figure out the proper way to set the axis aspect ratio to "1" when numerical data is plotted. Here is

Re: [Matplotlib-users] py2exe problems for a tkinter/matpotlib project - works for me, but not for others

2010-03-15 Thread Werner F. Bruhin
On 15/03/2010 14:37, Kim Hansen wrote: Hi Werner 2010/3/15 Werner F. Bruhin > Hi Kim, Changing the line 560 in mathtext.py from: font = FT2Font(basename) to: font = FT2Font(str(basename)) Fixed it for me, I don't kn

Re: [Matplotlib-users] Adding a plot within a plot

2010-03-15 Thread Nathan Harmston
Thanks, just what I was looking for. Nathan On 15 March 2010 12:55, Andre Walker-Loud wrote: > Hi Nathan, > > It sounds like this example is what you want > > http://matplotlib.sourceforge.net/examples/pylab_examples/axes_demo.html > > > Cheers, > Andre > > > > > On Mar 15, 2010, at 7:44 AM, Nat

Re: [Matplotlib-users] Adding a plot within a plot

2010-03-15 Thread Pierre de Buyl
Hello, This is usually done by using several calls to "axes", specifying the coordinates of the different plots in the figure. The "plot" coordinates are in the range 0..1 times 0..1. An example is provided here http://matplotlib.sourceforge.net/examples/pylab_examples/axes_demo.html with two p

Re: [Matplotlib-users] Adding a plot within a plot

2010-03-15 Thread Andre Walker-Loud
Hi Nathan, It sounds like this example is what you want http://matplotlib.sourceforge.net/examples/pylab_examples/axes_demo.html Cheers, Andre On Mar 15, 2010, at 7:44 AM, Nathan Harmston wrote: > Hi everyone, > > I've been trying (with no luck) to add a plot inside a plot, like this > (ap

Re: [Matplotlib-users] py2exe problems for a tkinter/matpotlib project - works for me, but not for others

2010-03-15 Thread Werner F. Bruhin
Hi Kim, On 15/03/2010 10:57, Kim Hansen wrote: Hi group, I have previously had success with py2exe and matplotlib, using a specialized setup.py like the attached one (which is adapted from http://www.py2exe.org/index.cgi/MatPlotLib). However, now I have tried to go a step further and integrate s

[Matplotlib-users] Adding a plot within a plot

2010-03-15 Thread Nathan Harmston
Hi everyone, I've been trying (with no luck) to add a plot inside a plot, like this (apologies for the ascii art), the smaller box represents the plot I want to add. The thing I know it doesnt want to be a subplot and I can't find an example of this plot in the gallery. It is possible in R with so

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-15 Thread Ian Thomas
Chris Barker wrote: > hmm -- I wonder if a post to matplotlib-devel is in order. Most of those > folks are on this list, to, but may not be following this thread. I'll post to matplotlib-devel shortly and see what response I get. > By the way, it sounds like your contouring code is in C++ -- is

[Matplotlib-users] py2exe problems for a tkinter/matpotlib project - works for me, but not for others

2010-03-15 Thread Kim Hansen
Hi group, I have previously had success with py2exe and matplotlib, using a specialized setup.py like the attached one (which is adapted from http://www.py2exe.org/index.cgi/MatPlotLib). However, now I have tried to go a step further and integrate some Tkinter controls in the GUI for a prototype,