[Matplotlib-users] Exception in Tkinter callback

2012-01-11 Thread klo uo
Matplotlib 1.1.0 on Ubuntu 11.04 If MPL backand is set to TkAgg, drawing window dialog appears without plot content, and then after closing it, this error is thrown: Exception in Tkinter callback Traceback (most recent call last): File

[Matplotlib-users] ticks in defined place?

2012-01-11 Thread Petro
Hi all. I want to make a plot with two xticks. Lets say at -3051 and 2011 position. How can I do it? Thanks. Petro. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT

Re: [Matplotlib-users] ticks in defined place?

2012-01-11 Thread Scott Sinclair
On 11 January 2012 15:13, Petro x.pi...@gmail.com wrote: I want to make a plot with two xticks. Lets say at -3051 and 2011 position. How can I do it? One way to do it: import numpy as np import matplotlib.pyplot as plt x = np.linspace(-3100, 2025, num=50) y = np.random.random(50) plt.plot(x,

[Matplotlib-users] WYSIWYG figure

2012-01-11 Thread Petro
Hi all. Can I set a figure to appear on my screen in the same way as it is saved in png file? Thanks. -- Petro -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT

[Matplotlib-users] Create Graphs in Python 2.5.4

2012-01-11 Thread Vítor Carvalho
Hi, Someone can help me to configure the python to create uma image graph with the matplotlib or can sugest other way to create one graph in this version of python? I need use the Python 2.5.* I instaled the Python 2.5.4, the numpy-1.3.0.win32-py2.5, the matplotlib-1.1.0.win32-py2.5 and the

[Matplotlib-users] Grid problem?

2012-01-11 Thread David Perlman
When I try to turn on the grid for just one axis, seemingly in perfect accordance with the documentation at http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.grid it seems like there is a problem. I am able to make a graph, but trying to turn on the grid for just one

[Matplotlib-users] how to build tag (or word) cloud?

2012-01-11 Thread Reckoner
I've looked through the gallery, but I haven't found an example of a tag cloud. Can one be built using matplotlib? For clarity, something like this is what I'm referring to: http://upload.wikimedia.org/wikipedia/en/thumb/a/a5/TagCloudCloud.png/800px-TagCloudCloud.png Thanks!

Re: [Matplotlib-users] Create Graphs in Python 2.5.4

2012-01-11 Thread Christoph Gohlke
On 1/11/2012 7:37 AM, Vítor Carvalho wrote: Hi, Someone can help me to configure the python to create uma image graph with the matplotlib or can sugest other way to create one graph in this version of python? I need use the Python 2.5.* I instaled the Python 2.5.4, the

Re: [Matplotlib-users] Grid problem?

2012-01-11 Thread Eric Firing
On 01/11/2012 06:05 AM, David Perlman wrote: When I try to turn on the grid for just one axis, seemingly in perfect accordance with the documentation at http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.grid it seems like there is a problem. I am able to make a graph,

[Matplotlib-users] use legend's 'best' location for a text box

2012-01-11 Thread Craig the Demolishor
Hi, I'm drawing a histogram and I would like to place a text box within the axes that shows the number of events. I like the way I can pass loc='best' to pyplot.legend() and it automatically does its best to avoid my data. Is there any way to replicate this for a simple call to pyplot.text(),

Re: [Matplotlib-users] WYSIWYG figure

2012-01-11 Thread Paul Ivanov
Hi Petro, Petro, on 2012-01-11 15:39, wrote: Can I set a figure to appear on my screen in the same way as it is saved in png file? You sure can. A likely reason these two don't appear the same is that your 'figure.dpi' rcParam is not the same as the 'savefig.dpi' parameter. The same may apply