graphics

Custom Window Appearance Python

Custom Window Appearance Python Question: I have attempted to do research on this subject but I have been unable to find anything because I don’t really know how to phrase my questions. I am just starting to make a Python application and the first thing that I want to get straight is appearance. For the …

Total answers: 2

How can I set the 'backend' in matplotlib in Python?

How can I set the 'backend' in matplotlib in Python? Question: I am new user of matplotlib, my platform is Ubuntu 10.04 Python 2.6.5 This is my code import matplotlib matplotlib.use(‘Agg’) import matplotlib.pyplot as plt plt.plot([1,2,3]) The error is: /usr/local/lib/python2.6/dist-packages/matplotlib/backends/__init__.py:41: UserWarning: Your currently selected backend, ‘agg’ does not support show(). Please select a GUI backend …

Total answers: 8

Plotting color map with zip codes in R or Python

Plotting color map with zip codes in R or Python Question: I have some US demographic and firmographic data. I would like to plot zipcode areas in a state or a smaller region (e.g. city). Each area would be annotated by color and/or text specific to that area. The output would be similar to http://maps.huge.info/ …

Total answers: 8

FFT for Spectrograms in Python

FFT for Spectrograms in Python Question: How would I go about using Python to read the frequency peaks from a WAV PCM file and then be able to generate an image of it, for spectogram analysis? I’m trying to make a program that allows you to read any audio file, converting it to WAV PCM, …

Total answers: 4

How to read the RGB value of a given pixel in Python?

How to read the RGB value of a given pixel in Python? Question: If I open an image with open(“image.jpg”), how can I get the RGB values of a pixel assuming I have the coordinates of the pixel? Then, how can I do the reverse of this? Starting with a blank graphic, ‘write’ a pixel …

Total answers: 13