grapher
index
https://github.com/Supporterino/IISLogAnalyzer/lib/grapher.py

# -*- coding: utf-8 -*-

 
Modules
       
os
matplotlib.pyplot

 
Classes
       
builtins.object
Grapher

 
class Grapher(builtins.object)
     Methods defined here:
__init__(self, encoding, helpers)
This function initializes the grapher with the right encoding and sets the paths.
:param encoding: The encoding of the reports
:param helpers: A reference to an helpers object
plot_browsers(self)
This function reads the Browser report and creats the arrrays to generate a chart
plot_endpoints(self)
This function reads the HitsPerEndpoint report and creats the arrrays to generate a chart
plot_hours(self)
This function reads the HitsPerHour report and creats the arrrays to generate a chart
plot_http_codes(self)
This function reads the HttpCodeHits report and creats the arrrays to generate a chart
plot_month(self)
This function reads the HitsPerMonth report and creats the arrrays to generate a chart
plot_os(self)
This function reads the OS report and creats the arrrays to generate a chart
plot_weekdays(self)
This function reads the HitsPerDay report and creats the arrrays to generate a chart
print_bar_chart(self, x_vals, y_vals, graph_title, x_axis, y_axis, limit, size)
This function takes the given parameters and creats a bar chart.
:param x_vals: An array of values for the x axis of the bar chart
:param y_vals: An array of values for the y axis of the bar chart
:param graph_title: A string with the name of the chart
:param x_axis: A string with the name of x Axis
:param y_axis: A string with the name of y Axis
:param limit: An number how much fields should show up in the chart
:param size: Tuple with lenght and width of the graphic in inch
print_pie_chart(self, in_labels, in_values, graph_title, limit, size)
This function takes the given parameters and creats a pie chart.
:param in_labels: An array of labels for the pie chart
:param in_values: An array of values for the pie chart
:param graph_title: A string with the name of the chart
:param limit: An number how much fields should show up in the chart
:param size: Tuple with lenght and width of the graphic in inch
remove_old_graphs(self)
This function removes the old graphics from the graphs directory.
run(self)
This function runs the creation of all graphics.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)