Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
On Wed, Sep 25, 2013 at 9:34 PM, Dave Angel wrote: > Clearly gmail isn't showing you all the headers. I looked for Alan's > message in one of these threads with the same subject, and see about 60 > lines of header information. Does gmail have a View->Source menu item? > In gmail the menu item is "Show Original" ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
On Thu, Sep 26, 2013 at 12:24:41AM +0200, Dino Bektešević wrote: > > Message: 1 and later: > Message: 4 I don't suppose you are replying to a message digest, are you? If so, thank you for changing the subject line to something more useful than just "Re Digest", and thank you even more for trimming the content of your reply. But by replying to digests, you lose useful threading information. In my opinion, digests are not terribly useful. If they have any use at all, it is only for those who want to read emails in the mailing list, then either keep them all, or delete them all. If you want to select which threads or messages to keep, digests are useless, and if you intend to carry on a conversation or discussion, they're even more useless. Of course, I may be misinterpreting the "Message" numbers above, in which case, sorry for the noise. -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
On Wed, Sep 25, 2013 at 6:24 PM, Dino Bektešević wrote: > > Where did you find that In-Reply-To: field? In example Alan's response > header Gmail has a "Show original" link in the message drop-down menu. But in this case I just searched the September text archive: https://mail.python.org/pipermail/tutor/2013-September.txt I replied to you using Gmail's "Reply to all" in the webmail interface, which added "In-Reply-To" and "References" to the header. RFC 2822: http://www.ietf.org/rfc/rfc2822.txt The "In-Reply-To:" and "References:" fields are used when creating a reply to a message. They hold the message identifier of the original message and the message identifiers of other messages (for example, in the case of a reply to a message which was itself a reply). The "In-Reply-To:" field may be used to identify the message (or messages) to which the new message is a reply, while the "References:" field may be used to identify a "thread" of conversation. When creating a reply to a message, the "In-Reply-To:" and "References:" fields of the resultant message are constructed as follows: The "In-Reply-To:" field will contain the contents of the "Message- ID:" field of the message to which this one is a reply (the "parent message"). If there is more than one parent message, then the "In- Reply-To:" field will contain the contents of all of the parents' "Message-ID:" fields. If there is no "Message-ID:" field in any of the parent messages, then the new message will have no "In-Reply-To:" field. The "References:" field will contain the contents of the parent's "References:" field (if any) followed by the contents of the parent's "Message-ID:" field (if any). If the parent message does not contain a "References:" field but does have an "In-Reply-To:" field containing a single message identifier, then the "References:" field will contain the contents of the parent's "In-Reply-To:" field followed by the contents of the parent's "Message-ID:" field (if any). If the parent has none of the "References:", "In-Reply-To:", or "Message-ID:" fields, then the new message will have no "References:" field. Note: Some implementations parse the "References:" field to display the "thread of the discussion". These implementations assume that each new message is a reply to a single parent and hence that they can walk backwards through the "References:" field to find the parent of each message listed there. Therefore, trying to form a "References:" field for a reply that has multiple parents is discouraged and how to do so is not defined in this document. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
On 25/9/2013 18:24, Dino Bektešević wrote: > > Where did you find that In-Reply-To: field? In example Alan's response > header, including the quoted section is shown to me as: > > Message: 4 > Date: Mon, 23 Sep 2013 18:21:03 +0100 > From: Alan Gauld > To: tutor@python.org > Subject: Re: [Tutor] HELP Please!!!How Do I Make a Graph Chart > Generate in Python Based on my Code > Message-ID: > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Clearly gmail isn't showing you all the headers. I looked for Alan's message in one of these threads with the same subject, and see about 60 lines of header information. Does gmail have a View->Source menu item? Here's a small excerpt: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 In-Reply-To: <1379734001.35687.yahoomail...@web184701.mail.ne1.yahoo.com> X-BeenThere: tutor@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Discussion for learning programming with Python List-Unsubscribe: <https://mail.python.org/mailman/options/tutor>, -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
> Message: 1 > Date: Wed, 25 Sep 2013 06:29:30 -0400 > From: eryksun > To: Dino Bekte?evi? > Cc: tutor@python.org > Subject: Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart > Generate in Python Based on my Code > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > On Tue, Sep 24, 2013 at 9:15 PM, Dino Bekte?evi? wrote: >> >> original question: http://code.activestate.com/lists/python-tutor/96889/ >> my response: http://code.activestate.com/lists/python-tutor/96897/ >> >> For someone browsing through Tutor in archive form I can see how this >> is a tad confusing, is it fixable? I'm guessing that my mail wasn't >> put in the response list because of different titles? > > Alan's reply, for example, has an In-Reply-To field: > > In-Reply-To: <1379734001.35687.yahoomail...@web184701.mail.ne1.yahoo.com> > > Your message's header doesn't have this field: > > From ljetibo at gmail.com Mon Sep 23 23:17:00 2013 > From: ljetibo at gmail.com (=?ISO-8859-2?Q?Dino_Bekte=B9evi=E6?=) > Date: Mon, 23 Sep 2013 23:17:00 +0200 > Subject: [Tutor] HELP Please!!!How Do I Make a Graph Chart Generate > in Python Based on my Code (znx...@yahoo.com) > Message-ID: > > > Source: > > http://mail.python.org/pipermail/tutor > Where did you find that In-Reply-To: field? In example Alan's response header, including the quoted section is shown to me as: Message: 4 Date: Mon, 23 Sep 2013 18:21:03 +0100 From: Alan Gauld To: tutor@python.org Subject: Re: [Tutor] HELP Please!!!How Do I Make a Graph Chart Generate in Python Based on my Code Message-ID: Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 21/09/13 04:26, znx...@yahoo.com wrote: > Can anyone please help me figure out what I am NOT doing to make this > program work properly.PLEASE !! Which is the same for any response header I see. It doesn't seem to be something I edit at all. > Message: 2 > Date: Wed, 25 Sep 2013 10:45:57 + (UTC) > From: Dave Angel > To: tutor@python.org > Subject: Re: [Tutor] HELP Please!!!How Do I Make a Graph Chart > Generatein Python Based on my Code > Message-ID: > Content-Type: text/plain; charset=ISO-8859-2 > > On 24/9/2013 21:15, Dino Bekte?evi? wrote: > > I can't answer for some third-party archive of the list. But your > message on the current mailing list doesn't seem to be a reply to any > existing one. I'm viewing the list through the news.gmane.org feed, and > it is happy to thread messages and their responses nicely, regardless of > subject line. > > How did you respond to the earlier message? Did you just compose a new > one and address it to the mailing list? > > > -- > DaveA I use gmail and just use the "funny" looking arrow at the top that says "reply" and I can see that in the news.gmane.org feed my mail is sorted nicely in the response section but it isn't on either code.activestate or on mail.python.org as eryksun stated as well. I just want to be able to make my responses easily visible in most of the online archives since otherwise they don't make sense for anyone not subscribed to the daily mailing list. Regards, Dino ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
Thanks Brian for replying but I already figured out what I was not doing correctlyalso the link you supplied was not what I needed.I had to make the user input statements appear as graphical input boxes and not just text and I figured out how to do it, so it now works like a charm -- On Tue, Sep 24, 2013 8:14 PM CDT brian arb wrote: >http://mcsp.wartburg.edu/zelle/python/ppics1/code/chapter05/futval_graph2.py > > >On Tue, Sep 24, 2013 at 4:36 PM, School wrote: > >> What is the error you received? What lines does it say are causing the >> error? >> >> Also, this smells like classwork. >> >> On Sep 20, 2013, at 21:26, znx...@yahoo.com wrote: >> >> Can anyone please help me figure out what I am NOT doing to make this >> program work properly.PLEASE !! >> >> I need to be able to take the user input that is entered in the two >> graphical boxes of the first window and evaluate it to generate a graph >> chart which is suppose to display in the second window. I am totally at a >> loss for what I am NOT doing, and I know it is something so simple that I >> am overlooking because I am making this harder that what it most likely >> really is. >> >> But I just cannot get it to work properly. Please HELP !!! Help me >> understand what I am doing wrong and how to fix it. I believe I am on the >> right path but I'm becoming frustrated and discouraged. >> >> I have attached a copy of the code I've compiled so far. >> >> >> >> ___ >> Tutor maillist - Tutor@python.org >> To unsubscribe or change subscription options: >> https://mail.python.org/mailman/listinfo/tutor >> >> >> ___ >> Tutor maillist - Tutor@python.org >> To unsubscribe or change subscription options: >> https://mail.python.org/mailman/listinfo/tutor >> >> ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
On 24/9/2013 21:15, Dino Bektešević wrote: > Hello, > > I wrote a response on the subject in the title about creating a graph > in Python using the Graphics module presented in the standard python > tutorial on 23rd detailing full explanations but I still saw repeated > responses asking more of the same question (lines causing the error, > which graphics module are you referring to etc...) which is ok because > I don't mind multiple answers to the question, not everything usually > gets covered in only one and it's a check up if I answered something > wrong. > > But it still kind of bothered me that so many of same questions got > repeated so I googled to see the archives and it seems my response was > not placed in the same archive "thread" as it should have been, and > doesn't appear in the response list of the question. > > original question: http://code.activestate.com/lists/python-tutor/96889/ > my response: http://code.activestate.com/lists/python-tutor/96897/ > > For someone browsing through Tutor in archive form I can see how this > is a tad confusing, is it fixable? I'm guessing that my mail wasn't > put in the response list because of different titles? > I can't answer for some third-party archive of the list. But your message on the current mailing list doesn't seem to be a reply to any existing one. I'm viewing the list through the news.gmane.org feed, and it is happy to thread messages and their responses nicely, regardless of subject line. How did you respond to the earlier message? Did you just compose a new one and address it to the mailing list? -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
On Tue, Sep 24, 2013 at 9:15 PM, Dino Bektešević wrote: > > original question: http://code.activestate.com/lists/python-tutor/96889/ > my response: http://code.activestate.com/lists/python-tutor/96897/ > > For someone browsing through Tutor in archive form I can see how this > is a tad confusing, is it fixable? I'm guessing that my mail wasn't > put in the response list because of different titles? Alan's reply, for example, has an In-Reply-To field: In-Reply-To: <1379734001.35687.yahoomail...@web184701.mail.ne1.yahoo.com> Your message's header doesn't have this field: From ljetibo at gmail.com Mon Sep 23 23:17:00 2013 From: ljetibo at gmail.com (=?ISO-8859-2?Q?Dino_Bekte=B9evi=E6?=) Date: Mon, 23 Sep 2013 23:17:00 +0200 Subject: [Tutor] HELP Please!!!How Do I Make a Graph Chart Generate in Python Based on my Code (znx...@yahoo.com) Message-ID: Source: http://mail.python.org/pipermail/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
Hello, I wrote a response on the subject in the title about creating a graph in Python using the Graphics module presented in the standard python tutorial on 23rd detailing full explanations but I still saw repeated responses asking more of the same question (lines causing the error, which graphics module are you referring to etc...) which is ok because I don't mind multiple answers to the question, not everything usually gets covered in only one and it's a check up if I answered something wrong. But it still kind of bothered me that so many of same questions got repeated so I googled to see the archives and it seems my response was not placed in the same archive "thread" as it should have been, and doesn't appear in the response list of the question. original question: http://code.activestate.com/lists/python-tutor/96889/ my response: http://code.activestate.com/lists/python-tutor/96897/ For someone browsing through Tutor in archive form I can see how this is a tad confusing, is it fixable? I'm guessing that my mail wasn't put in the response list because of different titles? Regards, Dino ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
http://mcsp.wartburg.edu/zelle/python/ppics1/code/chapter05/futval_graph2.py On Tue, Sep 24, 2013 at 4:36 PM, School wrote: > What is the error you received? What lines does it say are causing the > error? > > Also, this smells like classwork. > > On Sep 20, 2013, at 21:26, znx...@yahoo.com wrote: > > Can anyone please help me figure out what I am NOT doing to make this > program work properly.PLEASE !! > > I need to be able to take the user input that is entered in the two > graphical boxes of the first window and evaluate it to generate a graph > chart which is suppose to display in the second window. I am totally at a > loss for what I am NOT doing, and I know it is something so simple that I > am overlooking because I am making this harder that what it most likely > really is. > > But I just cannot get it to work properly. Please HELP !!! Help me > understand what I am doing wrong and how to fix it. I believe I am on the > right path but I'm becoming frustrated and discouraged. > > I have attached a copy of the code I've compiled so far. > > > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
What is the error you received? What lines does it say are causing the error? Also, this smells like classwork. On Sep 20, 2013, at 21:26, znx...@yahoo.com wrote: > Can anyone please help me figure out what I am NOT doing to make this program > work properly.PLEASE !! > > I need to be able to take the user input that is entered in the two graphical > boxes of the first window and evaluate it to generate a graph chart which is > suppose to display in the second window. I am totally at a loss for what I > am NOT doing, and I know it is something so simple that I am overlooking > because I am making this harder that what it most likely really is. > > But I just cannot get it to work properly. Please HELP !!! Help me > understand what I am doing wrong and how to fix it. I believe I am on the > right path but I'm becoming frustrated and discouraged. > > I have attached a copy of the code I've compiled so far. > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
In addition to Alan's comment: Saying "it work properly" is totally uninformative. Tell us what is happening that you want different. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code (znx...@yahoo.com)
Hello, > I have attached a copy of the code I've compiled so far. Next time just post the code in here, I think that's the general consensus around here. You should only attach it or use a pastebin if it's really really long. Considering that usually the only valid entries here are snippets of code you've isolated that do not work (functions/methods...), code that gets posted here is usually not too long. Anyhow the graphics.py module is unbeknownst to me, but I presume you're reffering to this one: http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/graphics.html What you're doing wrong is your input: principal = eval(input.getText()) apr = eval(input2.getText()) Those commands are in order, however their position in programing is not. Let's examine: 1. you draw your input screen and define standard inputs for boxes 2. during the drawing session you read in values for which you have provided input boxes 3. you plot the values in a bar graph. When this runs it goes like this: 1. you draw your input screen, set values in input boxes to 0.0 and 0.0 2. apr and principal get set to 0.0 and 0.0 3. plot graph and values and of course every single bar gets ploted to 0, because those are the values of your inputs. If there is no principal to add apr to there is no net result. You should make it so that apr and principal get set AFTER the initial screen drawing session but BEFORE plotting, therefore after the mouse-click. You're also making a mistake of not actually changing any values as the year progresses: bar = Rectangle(Point(year, 0), Point(year+1, principal)) every bar will have the same height, that of the inputed principal value. I don't know if it's encouraged here or not, to give straight away answers, but here it goes anyway because I think znx is missing couple of other things as well: To sort out the wrong inputing move the eval() lines after the win.getMouse() statement, preferably right before the for loop statement. Your principal grows each year by the value of apr, so if you have a 1000$ in the bank and the bank awards you with 500$ each year (good luck with that) then by the end of the first year you should have 1500$, by the end of the 2nd year 2000$ because the 1st year becomes the principal for the 2nd year, by 3rd year it's 2500$ and so on To introduce the changing values you have to have a new variable to store the increased original value, let's call that variable "newvalue". Then you have to increase the value of the new variable every complete step of the for loop. Each full circle of for loop should see at least 1 newvalue = newvalue +apr (or newvalue+=apr in short). This solution removes the need for the # Draw bar for initial principal set of orders so delete it: # read values in input boxes AFTER the button click principal = eval(input.getText()) apr = eval(input2.getText()) #create new value that you'll increase every year by apr newvalue = principal+apr #this is the net money by the end of 1st year # Draw a bar for each subsequent year for year in range(0, 11): #by going from 0 you don't have to specifically plot 1st year bar = Rectangle(Point(year, 0), Point(year+1, newvalue)) newvalue = newvalue+apr bar.setFill("green") bar.setWidth(2) #I don't know if this serves any purpose because the width of your bar is defined with year to year+1 values. Maybe it's the line width? bar.draw(win) and that should do it. For a test run use print statement to check that the for loop does what you want it too and use simple numbers as principal=1000 and apr=500, you should get 1500, 2000, 2500.. (This looked a lot like a fixed interest rate assignment so I guess that's the purpose, note that because of the set scale of the graph you should always use larger numbers because smaller ones will not be visible). You can make your y axis change by the value of input if you: 1. read input after button click but before setting the scale 2. set scale from 0 to maximal achievable value + some aditional "height" that you can see the entire graph (p.s. maximal achievable value is principal+final_year*apr, so in your case, principal+11*apr+500 [for spacing]) 3. plot the rest Good luck, Dino ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] HELP Please!!!....How Do I Make a Graph Chart Generate in Python Based on my Code
On 21/09/13 04:26, znx...@yahoo.com wrote: Can anyone please help me figure out what I am NOT doing to make this program work properly.PLEASE !! First you need to tell us what "graphics" module you are using since there is no standard library module by that name. Second, you should probably ask for help on their forum since this list is really for those learning Python and its standard library. However, if we know the library we might be able to help or someone may have some experience. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor