[Matplotlib-users] cmap normalization question

2011-10-31 Thread Tommy Grav
Hi, I have been looking around but can't find what I want. I have two arrays, one with numbers from 0.02 to 0.20 and the other from 0.03 to 0.50. I am trying to plot them together with other arrays in a scatterplot where these two are the color term plt.scatter(x1,y1,c=myarr1,cmap=plt.get_cmap

Re: [Matplotlib-users] cmap normalization question

2011-10-31 Thread Benjamin Root
On Mon, Oct 31, 2011 at 11:02 AM, Tommy Grav wrote: > Hi, > > I have been looking around but can't find what I want. > I have two arrays, one with numbers from 0.02 to 0.20 and > the other from 0.03 to 0.50. I am trying to plot them together > with other arrays in a scatterplot where these two

Re: [Matplotlib-users] cmap normalization question

2011-10-31 Thread Daniel Hyams
Try nm = matplotlib.colors.Normalize(desired_min, desired_max) plt.scatter(x1,y1,c=myarr1,cmap=plt.get_cmap("gist_heat"),norm=nm) You could just use the vmin/vmax keywords in the scatter() call, but I've just always preferred using Normalize(); you have more control over what happens that way (s

[Matplotlib-users] Custom tick labels for mplot3D

2011-10-31 Thread Katie Boyle
Hi All, I was wondering how to set custom tick labels in an mplot3D plot? I have tried: ax = Axes3D(figure) ax.set_xticks(ticks,labels) - and - ax = Axes3D(figure) ax.w_xaxis.set_ticks(ticks,labels) and both options cause the plot to disappear from the viewing window. When I don't try to set

[Matplotlib-users] Issues with Cursor change using glade-3 and Matplotlib

2011-10-31 Thread Atma Kanojia
Hi All, I am new to matplotlib and glade and am struggling with changing cursors in a glade-3 based python application using matplotlib. I have attached the simple application plot_in_Glade.py and plot_in_Glade.glade. I am trying to change the cursor on the plot but unfortunately no luck (gives

Re: [Matplotlib-users] Custom tick labels for mplot3D

2011-10-31 Thread Benjamin Root
On Monday, October 31, 2011, Katie Boyle wrote: > Hi All, > I was wondering how to set custom tick labels in an mplot3D plot? I have tried: > ax = Axes3D(figure) > ax.set_xticks(ticks,labels) > - and - > ax = Axes3D(figure) > ax.w_xaxis.set_ticks(ticks,labels) > and both options cause the plot to