[Matplotlib-users] setting x tick labels with matshow

2013-12-04 Thread Kelson Zawack
I am trying to create a figure that plots a data matrix with matshow and has x tick labels corresponding to the x dimension of the matrix. The x dimension is a series of floats, but they don't correspond to the data matrix cell index values (0,1,2…) that make up what matplotlib obviously

[Matplotlib-users] getting the dimensions of an axes

2013-01-21 Thread Kelson Zawack
I am making a heat map and want to label each row. I thus need the font size of the text to scale with the number of rows in the heat map. Is there a way to find out the length in points of an axes object so I can divide this by the number of rows and thus figure out how big to make the

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-17 Thread Kelson Zawack
to fix this, but one option, in the case of tkagg, is to add a call to tk.mainloop() to the end of FigureManagerTkAgg.show() as is done in tkagg's Show object. Just my 2 cents On 1/16/13 10:23 AM, Benjamin Root wrote: On Wed, Jan 16, 2013 at 5:50 AM, Kelson Zawack k...@cornell.edu mailto:k

[Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Kelson Zawack
I want to create a matplotlib figure as part of a program I am writing and therefore would like to create the figure in a fully object oriented way, ie not in the pyplot state-full way. I understand how to work with a figure object to create axes objects and then fill the axes objects with

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Kelson Zawack
. It seems to be creating a figure manager which has a canvas and a figure in it, but which one of these is responsible for the showing/saving to file? Thanks for your help On 1/16/13 5:02 AM, Francesco Montesano wrote: Hi Kelson, 2013/1/16 Kelson Zawack k...@cornell.edu mailto:k...@cornell.edu

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Kelson Zawack
I am running 1.2.0 On 1/16/13 10:23 AM, Benjamin Root wrote: On Wed, Jan 16, 2013 at 5:50 AM, Kelson Zawack k...@cornell.edu mailto:k...@cornell.edu wrote: Ok, I understand about agg, but I am still a bit confused. First when I run the suggested code using whatever the default

[Matplotlib-users] Adding a Legend

2010-09-20 Thread Kelson Zawack
Is there a way to put the legend for a graph inside the margin instead of on the graph, in other words to put the legend where excel would? I have a stacked bar graph with many categories and so the legend is vary large and there is little dead space on the graph. As a result if the legend