Re: [Matplotlib-users] how to express statistical data in colors

2012-11-05 Thread Chloe Lewis
You're translating a histogram of your data into a colormap, yes? The matplotlib histogram returns bins and patches, which you could translate into color intensities; but I bet scipy.stats.histogram would be easier. Then the bin centers are the segment boundaries of the colormap, and the weight

Re: [Matplotlib-users] Plotting a circle while also changing the limits of the axes

2012-11-05 Thread Brad Malone
> > > > Essentially, you want a similar behavior to the markers in the scatter > plots, right? As you zoom or resize the plot, the circle markers stay as > circles and have the same size relative to the size of the figure. If that > is what you want, the way to do that is very easy. > > ax1.scatt

Re: [Matplotlib-users] colormap shift

2012-11-05 Thread Jason Grout
On 11/5/12 3:50 PM, klo uo wrote: > You can see there how to use Gimp and create mpl colormap and then later > there is nifty code that will allow you to shift colormaps with a slider Nice! I couldn't resist doing a Sage interact version of the slider thing: http://aleph.sagemath.org/?q=89b0c945

Re: [Matplotlib-users] colormap shift

2012-11-05 Thread klo uo
I asked same question with different problem here: http://matplotlib.1069221.n5.nabble.com/How-to-shift-colormap-td18451.html You can see there how to use Gimp and create mpl colormap and then later there is nifty code that will allow you to shift colormaps with a slider >From your problem I assu

Re: [Matplotlib-users] Plotting a circle while also changing the limits of the axes

2012-11-05 Thread Phil Elson
Hi Brad, I didn't quite follow what it was that you were trying to achieve, but the following example may be of interest to you: import matplotlib.pyplot as plt from matplotlib.patches import Ellipse, Circle import matplotlib.transforms as mtrans fig = plt.figure() ax1 = fig.add_subplot(111

Re: [Matplotlib-users] Plotting a circle while also changing the limits of the axes

2012-11-05 Thread Benjamin Root
On Mon, Nov 5, 2012 at 4:22 PM, Jason Grout wrote: > On 11/5/12 3:19 PM, Benjamin Root wrote: > > > > > > On Mon, Nov 5, 2012 at 3:51 PM, Brad Malone > > wrote: > > > > Hello, > > > > I am trying to plot some small circles in my plotting window, in > > ad

Re: [Matplotlib-users] Plotting a circle while also changing the limits of the axes

2012-11-05 Thread Jason Grout
On 11/5/12 3:19 PM, Benjamin Root wrote: > > > On Mon, Nov 5, 2012 at 3:51 PM, Brad Malone > wrote: > > Hello, > > I am trying to plot some small circles in my plotting window, in > addition to the curves I'm already plotting. If I don't want to set >

Re: [Matplotlib-users] Plotting a circle while also changing the limits of the axes

2012-11-05 Thread Benjamin Root
On Mon, Nov 5, 2012 at 3:51 PM, Brad Malone wrote: > Hello, > > I am trying to plot some small circles in my plotting window, in addition > to the curves I'm already plotting. If I don't want to set my x- and y- > axis scales equal to each other, a naive drawing of a circle results in an > ellips

[Matplotlib-users] Plotting a circle while also changing the limits of the axes

2012-11-05 Thread Brad Malone
Hello, I am trying to plot some small circles in my plotting window, in addition to the curves I'm already plotting. If I don't want to set my x- and y- axis scales equal to each other, a naive drawing of a circle results in an ellipse. To fix this problem I found some nice example code online he

[Matplotlib-users] colormap shift

2012-11-05 Thread Marian Jakubik
Hi all, I am a newbie in matplotlib and I'd like to use colormap for z-axis. I can use in basic mode but would like to shift the existed colormap - binary - for using in this way: i would not like to set the white color for z=0.0 For describing: I would like to use the binary colormap but with

Re: [Matplotlib-users] Figures piling up in Tkinter GUI

2012-11-05 Thread Hans Bering
On Fri, 02 Nov 2012 16:45:22 +0100, wrote: > Message: 5 > Date: Fri, 2 Nov 2012 12:01:35 +0100 > From: Vlastimil Brom > Subject: Re: [Matplotlib-users] Figures piling up in Tkinter GUI > (1.2.0rc2) > To: matplotlib-users@lists.sourceforge.net > Message-ID: > > Content-Type: text/p