代码搜索结果

找到约 10,000 项符合 Python 的代码

mixture.py

#!/usr/bin/env python2.3 # # ghmm example: mixture.py # # # # from ghmm import * import numarray import math import getopt, sys, string def Entropy(prob_dist): """ Returns Entropy for the discre

image_demo3.py

#!/usr/bin/env python from pylab import * try: import Image except ImportError, exc: raise SystemExit("PIL must be loaded to run this example") lena = Image.open('data/lena.jpg') dpi = rcPara

color_demo.py

#!/usr/bin/env python """ matplotlib gives you 3 ways to specify colors, 1) as a single letter string, ala matab 2) as an html style hex string or html color name 3) as an R,G,B tuple,

mpl_with_glade.py

#!/usr/bin/env python import matplotlib matplotlib.use('GTK') from matplotlib.figure import Figure from matplotlib.axes import Subplot from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAg

date_demo_convert.py

#!/usr/bin/env python import matplotlib #matplotlib.use('TkAgg') from matplotlib import pylab PL = pylab from matplotlib.dates import DayLocator, HourLocator, \ drange, date2num, timezone import

image_origin.py

#!/usr/bin/env python """ You can specify whether images should be plotted with the array origin x[0,0] in the upper left or upper right by using the origin parameter. You can also control the default

date_demo2.py

#!/usr/bin/env python """ Show how to make date plots in matplotlib using date tick locators and formatters. See major_minor_demo1.py for more information on controlling major and minor ticks """ imp

barenes-hut.py

#! /usr/bin/python # A simple Barnes-Hut N-Body problem solver import sys from random import * from math import sqrt from Tkinter import * import string # each body will be a tuple (mas

setup.py

#!/usr/bin/env python from distutils.core import setup, Extension setup(name = "LIBSVM", version = "2.88", author="Chih-Chung Chang and Chih-Jen Lin", maintainer="Chih-Jen Lin",

bbn_80211b_test.py

#!/usr/bin/env python # # Copyright 2004,2005 Free Software Foundation, Inc. # # Copyright (c) 2006 BBN Technologies Corp. All rights reserved. # Effort sponsored in part by the Defense Advanced Res