Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35062

Re: I need help with graphs in python (2.7.3.1)

From Terry Reedy <tjreedy@udel.edu>
Subject Re: I need help with graphs in python (2.7.3.1)
Date 2012-12-18 11:43 -0500
References <ff5f2d01-7271-42ed-860f-ce2290967514@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.1022.1355849013.29569.python-list@python.org> (permalink)

Show all headers | View raw


On 12/18/2012 6:29 AM, hevymetl07@gmail.com wrote:
> Hi there, I hope that there is someone willing to help me out, I need
> to generate a graph in Python 2.7.3.1,

There is only 2.7.3, no 2.7.3.1, at least not officially.

> I had to make a .CSV file from my Windows system logs (already did
> that), and the following steps must bw written in the form of a
> Python 2.7.3.1 script.
>
> These are some steps I need to do first before creating the graph: -
> Get the name of a CSV file from an ini file, - Next, read a line from
> this CSV file, - Increase a variable depending on the Log level
> (information, warning, error, critical), - Read the next line, - Then
> I need to print these results in a Graph.

It sounds like your data consist of 4 counts. If so, you can easily make 
a simple bar plot with characters

Log level  Number  Plot (x = 10)
---------- ------  -----------------------------------------------------
infomation    386  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
warning        97  xxxxxxxxxx
error           5  x
critical       23  xxx

The main problem is to compute the scaling factor from the data.
You also have to decide on the rounding (I rounded up).

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

I need help with graphs in python (2.7.3.1) hevymetl07@gmail.com - 2012-12-18 03:29 -0800
  Re: I need help with graphs in python (2.7.3.1) Thomas Bach <thbach@students.uni-mainz.de> - 2012-12-18 13:20 +0100
  Re: I need help with graphs in python (2.7.3.1) Terry Reedy <tjreedy@udel.edu> - 2012-12-18 11:43 -0500
  Re: I need help with graphs in python (2.7.3.1) Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-12-18 17:59 -0500

csiph-web