Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~28.1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for rasizzle

Here's my dilemma: I am creating a histogram through matplotlib and saving it in the same folder I'm running. There are a few image files that I can save it as, none of them being bitmap. So I'm trying to convert the image to bitmap. I've looked at WxImage and …

Member Avatar for Gribouillis
0
26K
Member Avatar for rasizzle

Hey Guys, This seems like a basic problem with an easy answer but I simply cannot figure it out no matter how much I try. I am trying to create a line graph based on two lists. For my x-axis, I want my list to be a set of strings. …

Member Avatar for rasizzle
1
97
Member Avatar for rasizzle

Hey Guys, I'm trying to do a basic line graph here, but I can't seem to figure out how to adjust my x axis. [CODE]from pylab import * plot ( range(0,10),[9,4,5,2,3,5,7,12,2,3],'.-',label='sample1' ) plot ( range(0,10),[12,5,33,2,4,5,3,3,22,10],'o-',label='sample2' ) xlabel('x axis') ylabel('y axis') title('my sample graphs') legend(('sample1','sample2')) savefig("sampleg.png",dpi=(640/8)) show()[/CODE] And here is the …

Member Avatar for woooee
0
361
Member Avatar for rasizzle

Hey all, Here is some code for reading Excel spreadsheets (2003 and before) with PyExcelerator. My main problem is that if I leave a cell blank, it gives me an error. I want to be able to have blank cells on my spreadsheet without any problems. Does anyone have any …

Member Avatar for Gribouillis
0
498
Member Avatar for rasizzle

Hey guys. I just started using portable python and I have to say this module is great. It helped me bypass some problems transferring modules between win32 and win64 cpus. So my question is for all you portable python users is: do you have to install python for each new …

Member Avatar for rasizzle
0
177
Member Avatar for rasizzle

I have a series of rules that I want to be able to execute without having to manually edit the code. I'd like to give my rule conditions at the beginning and have the program run it. This way, I can test every single rule combination in a for loop …

Member Avatar for willygstyle
0
189
Member Avatar for rasizzle

Hi all, I want to take this code: [CODE]list_in_list = [[1,5,13,30,-4], [1,5,10,30,-4], [1,5,15,30,-4], [1,5,9,30,-4], [1,5,16,30,-8]][/CODE] and sort it by the 3rd item in each sublist (list_in_list[x][2]) I'd like to do it by the highest number so my output would be: [CODE]sorted_list_in_list = [[1,5,16,30,-8],[1,5,15,30,-4], [1,5,13,30,-4],[1,5,10,30,-4], [1,5,9,30,-4]][/CODE] Any help or suggestions?

Member Avatar for vegaseat
0
113
Member Avatar for rasizzle

Hey all, Here is what I'm trying to do. I have a list whose output is: [['4/18/94', '29.125', '442.46'], ['4/19/94', '29.336', '442.54'], ['1/20/04', '75.175', '1138.77'], ['1/21/04', '75.711', '1147.62'], ['1/22/04', '75.595', '1143.94']] Item [1] in each list, the middle item, is the number I want to focus on. Currently, I have …

Member Avatar for rasizzle
0
99
Member Avatar for rasizzle

Hey guys, I'm trying to create a buy and sell program where I have two lists of numbers. Eventually I want to shorten the lists so that the program buys at a lower number, and sells at a higher number, ignoring all other numbers in between. The solution would be …

Member Avatar for shadwickman
0
214
Member Avatar for rasizzle

[code] import os import csv ifile = open("C:/Python26/testdata.csv", "r") [/code] here is the error i get: Traceback (most recent call last): File "C:/Python26/06_June_2009/testhenry.py", line 4, in <module> ifile = open("C:/Python26/testdata.csv", "r") IOError: [Errno 2] No such file or directory: 'C:/Python26/testdata.csv' I have no clue what to do. I can't read …

Member Avatar for rasizzle
0
153
Member Avatar for rasizzle

i'm trying to create a simple minimum function by comparing items in a list to each other. [code] list1 = [4,20,2,19,3254,234,21,03] for i in list1: if list[0] < list[0+i]: print i [/code] basically my thought process in pseudocode is for all items in the list if item n is less …

Member Avatar for woooee
0
110