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
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
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
-
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
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
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
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
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
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
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
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
11 matches
Mail list logo