fuzzy.doc.plot.gnuplot.doc
index
/fuzzy/doc/plot/gnuplot/doc.py @ Get pyfuzzy at SourceForge.net. Fast, secure and Free Open Source software downloads

Plotting of variables, adjectives, ... using gnuplot

 
Modules
       
Gnuplot
sys

 
Classes
       
__builtin__.object
Doc

 
class Doc(__builtin__.object)
    Main object. Get an instance of this to do your work.
 
  Methods defined here:
__init__(self, directory='doc')
create2DPlot(self, system, x_name, y_name, input_dict=None, output_dict=None, x_logscale=0, y_logscale=0)
Creates a 2D plot of an input variable and an output variable.
Other (const) variables have to be set beforehand in the dictionary input_dict.
 
@param system: the fuzzy system to use
@type system: L{fuzzy.System.System}
@param x_name: name of input variable used for x coordinate values
@type x_name: string
@param y_name: name of output variable used for y coordinate values
@type y_name: string
@param input_dict: dictionary used for input values, can be used to predefine other input values
@type input_dict: dict
@param output_dict: dictionary used for output values
@type output_dict: dict
@param x_logscale: use logarithmic scale for x values
@type x_logscale: bool
@param y_logscale: use logarithmic scale for y values
@type y_logscale: bool
create3DPlot(self, system, x_name, y_name, z_name, input_dict=None, output_dict=None, x_logscale=0, y_logscale=0, z_logscale=0)
Creates a 3D plot of 2 input variables and an output variable.
Other (const) variables have to be set beforehand in the dictionary input_dict.
 
@param system: the fuzzy system to use
@type system: L{fuzzy.System.System}
@param x_name: name of input variable used for x coordinate values
@type x_name: string
@param y_name: name of input variable used for y coordinate values
@type y_name: string
@param z_name: name of output variable used for z coordinate values
@type z_name: string
@param input_dict: dictionary used for input values, can be used to predefine other input values
@type input_dict: dict
@param output_dict: dictionary used for output values
@type output_dict: dict
@param x_logscale: use logarithmic scale for x values
@type x_logscale: bool
@param y_logscale: use logarithmic scale for y values
@type y_logscale: bool
@param z_logscale: use logarithmic scale for z values
@type z_logscale: bool
create3DPlot_adjective(self, system, x_name, y_name, z_name, adjective, input_dict=None, output_dict=None, x_logscale=0, y_logscale=0, z_logscale=0)
Creates a 3D plot of 2 input variables and an adjective of the output variable.
Other (const) variables have to be set beforehand in the dictionary input_dict.
 
@param system: the fuzzy system to use
@type system: L{fuzzy.System.System}
@param x_name: name of input variable used for x coordinate values
@type x_name: string
@param y_name: name of input variable used for y coordinate values
@type y_name: string
@param z_name: name of output variable used for z coordinate values
@type z_name: string
@param adjective: name of adjective of output variable used for z coordinate values
@type adjective: string
@param input_dict: dictionary used for input values, can be used to predefine other input values
@type input_dict: dict
@param output_dict: dictionary used for output values
@type output_dict: dict
@param x_logscale: use logarithmic scale for x values
@type x_logscale: bool
@param y_logscale: use logarithmic scale for y values
@type y_logscale: bool
@param z_logscale: use logarithmic scale for z values
@type z_logscale: bool
createDoc(self, system)
create plots of all variables defined in the given system.
createDocSets(self, sets, name, x_logscale=0, y_logscale=0, description=None, units=None)
Creates a 2D plot of dict of sets
createDocVariable(self, v, name, x_logscale=0, y_logscale=0)
Creates a 2D plot of a variable
getValues(self, v)
getValuesSets(self, sets)
initGnuplot2D(self, filename='plot', xlabel=None, ylabel=None, title=None, xrange_=None, yrange=None, x_logscale=0, y_logscale=0)
initGnuplot3D(self, filename='plot3D', xlabel=None, ylabel=None, zlabel=None, title=None, xrange_=None, yrange=None, zrange=None, x_logscale=0, y_logscale=0, z_logscale=0)
setTerminal(self, g, filename)

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

 
Functions
       
getGlobalMinMax(sets)
get tuple with minimum and maximum x-values used by the sets of this dicts of sets.
getMinMax(set)
get tuple with minimum and maximum x-values used by the set.
getPoints(sets)
Collect all important points of all adjectives in this dict of sets.
getSets(variable)
Get all sets of adjectives in this variable.

 
Data
        __revision__ = '$Id: doc.py,v 1.15 2010-10-29 19:24:41 rliebscher Exp $'