python Programming Glossary: data..
Shade 'cells' in polar plot with matplotlib http://stackoverflow.com/questions/10837296/shade-cells-in-polar-plot-with-matplotlib as plt import numpy as np # Generate some data... # Note that all of these are _2D_ arrays so that we can use..
Django JSON Serialization with Mixed Django models and a Dictionary http://stackoverflow.com/questions/1959375/django-json-serialization-with-mixed-django-models-and-a-dictionary modified updated_object success true ... some additional data... Its simple enough to use either simplejson to serialize a dict..
matplotlib: format axis offset-values to whole numbers or specific number http://stackoverflow.com/questions/3677368/matplotlib-format-axis-offset-values-to-whole-numbers-or-specific-number Take this example from pylab import # Generate some random data... x linspace 55478 55486 100 y random 100 0.5 y cumsum y y y.min..
How can I remove the axes in an Axes3D class? http://stackoverflow.com/questions/3732787/how-can-i-remove-the-axes-in-an-axes3d-class zspan.max 10 z color 'red' # Generate and plot some random data... ndata 10 x np.random.uniform xspan.min xspan.max ndata y np.random.uniform..
Compute a compounded return series in Python http://stackoverflow.com/questions/5515021/compute-a-compounded-return-series-in-python of returns in a fraction of a second timestamp graph data... all done with this module. Combined with psyco this is a beast.. tool. The other great thing it handles is cross sectional data... so you could grab daily close prices their rolling means etc.....
High Pass Filter for image processing in python by using scipy/numpy http://stackoverflow.com/questions/6094957/high-pass-filter-for-image-processing-in-python-by-using-scipy-numpy data plt.gray plt.title title plot.i 0 # Load the data... im Image.open 'lena.png' data np.array im dtype float plot..
How to extract an arbitrary line of values from a numpy array? http://stackoverflow.com/questions/7878398/how-to-extract-an-arbitrary-line-of-values-from-a-numpy-array import matplotlib.pyplot as plt # Generate some data... x y np.mgrid 5 5 0.1 5 5 0.1 z np.sqrt x 2 y 2 np.sin x 2 y.. as np import matplotlib.pyplot as plt # Generate some data... x y np.mgrid 5 5 0.1 5 5 0.1 z np.sqrt x 2 y 2 np.sin x 2 y.. as np import matplotlib.pyplot as plt # Generate some data... x y np.mgrid 5 5 0.1 5 5 0.1 z np.sqrt x 2 y 2 np.sin x 2 y..
matplotlib animating a scatter plot http://stackoverflow.com/questions/9401658/matplotlib-animating-a-scatter-plot the scatter plot. data next self.stream # Set x and y data... self.scat.set_offsets data 2 # Set sizes... self.scat._sizes..
How do I draw out specific data from an opened url in Python using urllib2? http://stackoverflow.com/questions/989872/how-do-i-draw-out-specific-data-from-an-opened-url-in-python-using-urllib2 td which is an image data data 1 # Do something with the data... print data And here's a test run. test.py bigdrizzle13 u'Overall'..
|