Re: [Matplotlib-users] matplotlib on mac os x question

2009-08-18 Thread Florian Leitner
Hi Walid, I'm new to mpl, too, but I just installed it on OSX and first had that problem, too. I solved it because I did not have libpng/ libjpeg installed, for which a pkg installer for OSX is available here: http://ethan.tira-thompson.org/Mac_OS_X_Ports.html Hope this solves your problem,

[Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Werner F. Bruhin
My lables for the different bars are not centered below the bar but are all to the left side of the bars (lower left corner). This is what I am basically doing: axes = panel.figure.add_subplot(2, 2, 3) ... axes.bar(indx, values, color=colors) axes.set_xticklabels(labels) I can not find

[Matplotlib-users] figure legend with mplot3d

2009-08-18 Thread dek
the patch3dcollection object not good for legend figure, I am having trouble thinking of a work around. Is there manually a way to insert artist and labels into the legend and make it such that it is independent from the axes? Using a proxy artist requires it not be part of the axes correct? --

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Werner F. Bruhin
Werner F. Bruhin wrote: ... Ideally I would like to have these labels printed at an angle. Put my glasses on and found the rotation property in the documentation, only issue left is centering the labels below the bars. Werner

Re: [Matplotlib-users] animate histogram

2009-08-18 Thread Alan G Isaac
OK, I mostly understand John's example and have adapted it in the attached Histogram class, for whoever might care. (The file is a working example.) Thanks! Here are my remaining questions. 1. To get a new histogram, I just change the data in the vertices object and then ask my

Re: [Matplotlib-users] animate histogram

2009-08-18 Thread Alan G Isaac
Ooops, forgot the attachment. Alan Adapts John Hunter's example of how to use a path patch to draw a bunch of rectangles for an animated histogram import Tkinter as tk import numpy as np import matplotlib as mpl mpl.use('TkAgg') from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg,

Re: [Matplotlib-users] animate histogram

2009-08-18 Thread John Hunter
On Tue, Aug 18, 2009 at 12:53 PM, Alan G Isaacalan.is...@gmail.com wrote: OK, I mostly understand John's example and have adapted it in the attached Histogram class, for whoever might care.  (The file is a working example.) Thanks! Here are my remaining questions. 1. To get a new

[Matplotlib-users] One more time: frame linewidth

2009-08-18 Thread Christopher Brown
I have asked this question before. How do I set the linewidth of the axis frame? Long ago, I used gca().get_frame().set_linewidth(2). More recently, I used gca().frame.set_linewidth(2), but this doesn't seem to work anymore. I've tried gca().patch, to no avail. Any suggestions? Thanks.

Re: [Matplotlib-users] animate histogram

2009-08-18 Thread Jae-Joon Lee
On Tue, Aug 18, 2009 at 1:53 PM, Alan G Isaacalan.is...@gmail.com wrote: 2. This is pretty fast.  Would there be additional speed gains to blitting, and if so, how would it be done?  (I'm just asking for clues, not a complete example.) Blitting will improve the performance when significant

Re: [Matplotlib-users] One more time: frame linewidth

2009-08-18 Thread Jae-Joon Lee
I guess you're using 0.99? Use spines instead. for example, gca().spines[bottom].set_linewidth(2) # it only changes the linewidth of the bottom spine. also, see this example, http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html#pylab-examples-spine-placement-demo

[Matplotlib-users] heatmap with varying size boxes?

2009-08-18 Thread Pete Shepard
Hello, I have a list of X,Y coordinates and a ratio associated with each coordinate. The X and Y coordinates are continuous but random from 50-500, I would like to make a continuous heatmap of the ratios at each coordinate. One caveat is that the coordinates are clustered together do some bixes

Re: [Matplotlib-users] figure legend with mplot3d

2009-08-18 Thread Jae-Joon Lee
On Tue, Aug 18, 2009 at 1:33 PM, dekdres...@hotmail.com wrote: the patch3dcollection object not good for legend figure, I am having trouble thinking of a work around. Is there manually a way to insert artist and labels into the legend and make it such that it is independent from the axes?

[Matplotlib-users] histogram of mean SD

2009-08-18 Thread questions anon
Can anyone explain how I could: -Open two shapefiles -Open a raster -Plot a histogram of the values within each shapefile on the same plot and display the mean and Standard Deviation of each plot. Thanks -- Let Crystal

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Jae-Joon Lee
You need to adjust the positions of the ticks. bar command (by default) creates boxes so that their left side corresponds the first argument. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar so, in your case, something like below will work (0.4 from 0.8/2 where 0.8 is

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Eric Firing
Werner F. Bruhin wrote: Werner F. Bruhin wrote: ... Ideally I would like to have these labels printed at an angle. Put my glasses on and found the rotation property in the documentation, only issue left is centering the labels below the bars. Are you using the align='center' kwarg to bar()?

Re: [Matplotlib-users] how to get the properties for elements in a collection?

2009-08-18 Thread Jae-Joon Lee
See below for available public methods. http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.Collection -JJ On Tue, Aug 18, 2009 at 6:16 PM, Jae-Joon Leelee.j.j...@gmail.com wrote: sct1 = axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap)) colors =

Re: [Matplotlib-users] Line2D on multiple plots?

2009-08-18 Thread Jae-Joon Lee
On Mon, Aug 17, 2009 at 10:29 AM, Ole Streicherole-usenet-s...@gmx.net wrote: Hi, I want to show the same data on multiple plots. Is it possible to re-use the Line2D object for that? t.m., line = axes1.plot(xdata, ydata, ...) ... axes2.lines.append(line) Or is a Line2D bound to a