Re: [Matplotlib-users] pie colors

2011-11-30 Thread Benjamin Root
On Wednesday, November 30, 2011, Tony Yu wrote: > > > On Wed, Nov 30, 2011 at 6:31 PM, Grigoris Maravelias < gr.maravel...@gmail.com> wrote: >> >> Well I did tried this but it didn't work out. It actually removes the black color from the color_cycle but the pie still prints it. Moreover I noticed

Re: [Matplotlib-users] pie colors

2011-11-30 Thread Tony Yu
On Wed, Nov 30, 2011 at 6:31 PM, Grigoris Maravelias < gr.maravel...@gmail.com> wrote: > ** > Well I did tried this but it didn't work out. It actually removes the > black color from the color_cycle but the pie still prints it. Moreover I > noticed that this color_cycle has 7 colors that repeats a

Re: [Matplotlib-users] Removing ticks and frame (imshow)

2011-11-30 Thread Marianne C.
On Fri, Nov 25, 2011 at 6:39 PM, Gökhan Sever wrote: > > plt.axis('off') > > or > > ax = plt.gca() > ax.set_axis_off() > > should clear the axis bounds and remove ticks as well. > Thank you so much, Gökhan! That's exactly what I was looking for. Best, Marianne -

Re: [Matplotlib-users] pie colors

2011-11-30 Thread Grigoris Maravelias
Well I did tried this but it didn't work out. It actually removes the black color from the color_cycle but the pie still prints it. Moreover I noticed that this color_cycle has 7 colors that repeats after the first 7 so it won't do what I want. I will need to find another way to set the colors

Re: [Matplotlib-users] Normalized Histograms

2011-11-30 Thread Tony Yu
On Wed, Nov 30, 2011 at 11:42 AM, Jeffrey Blackburne < jblackbu...@alum.mit.edu> wrote: > Hi Steven, > > Try this: > > import numpy as np > import numpy.random > import matplotlib as mpl > import matplotlib.pyplot as plt > > x = np.random.randn(1000) > h, binedg = np.histogram(x, 10) > > wid = bin

Re: [Matplotlib-users] Normalized Histograms

2011-11-30 Thread Jeffrey Blackburne
Hi Steven, Try this: import numpy as np import numpy.random import matplotlib as mpl import matplotlib.pyplot as plt x = np.random.randn(1000) h, binedg = np.histogram(x, 10) wid = binedg[1:] - binedg[:-1] plt.bar(binedg[:-1], h/float(x.size), width=wid) On Nov 30, 2011, at 10:25 AM, Steven B

Re: [Matplotlib-users] pie colors

2011-11-30 Thread Tony Yu
On Wed, Nov 30, 2011 at 10:34 AM, Grigoris Maravelias < gr.maravel...@gmail.com> wrote: > Hello list! > > I have a question regarding the colors of the pie diagram of matplotlib. > When no colors are assigned then the pie function automatically selects > some colors, like the example image I have

Re: [Matplotlib-users] plot_date with multiple subplots

2011-11-30 Thread Yoshi Rokuko
i use something like that: from datetime import datetime, timedelta import matplotlib.pyplot as pl import matplotlib.ticker as ticker import matplotlib.dates as mdates dates1 = [datetime(2005,5,11)+n*timedelta(days=1) for n in range(500)] dates2 = [datetime(... ax1 = pl.subplot(2,1,1) ax1.plot(d

[Matplotlib-users] Normalized Histograms

2011-11-30 Thread Steven Boada
Hi Users, I'm looking to make a histogram that is normalized by the total number of items shown in the histogram. For example: Let's say that I have an array 1000 items long. If I make a histogram in the normal way hist(x,10) then I get a histogram showing the total number of items in each bin

[Matplotlib-users] plot_date with multiple subplots

2011-11-30 Thread Ed Maurer
I have a short script to plot 20 years of river flow data. I can use the plot_date command to create a plot, using this snippet: f = figure() ax1 = f.add_subplot(111) ax1.plot_date(dates0,y1,'g', label='observed', xdate=True,visible=True) ax1.plot_date(dates1,y2,'r', label='simulated', xdate=True,v

[Matplotlib-users] patch for basemap when using cyclic or polycyclic projections in celestial coordinates

2011-11-30 Thread Molly Swanson
I would like to suggest the following fixes for the mpl_toolkits.basemap module to improve its treatment of celestial (rather than geographic) coordinates. The first one, posted at https://github.com/mollyswanson/basemap/commit/23db4bbebf4d7fe6ca202b5dad50b6a2054dd685 changes the call function in