fudge.vis.gnuplot package

Submodules

fudge.vis.gnuplot.endl2dplot module

fudge.vis.gnuplot.endl3dplot module

fudge.vis.gnuplot.endl4dplot module

fudge.vis.gnuplot.fudge2dMultiPlot module

fudge.vis.gnuplot.fudge2dMultiPlotClass module

This file contains the class fudge2dMultiPlotClass. This class constructs a new window for displaying fudgeNdMultiPlotData and fudgeNdMultiPlotFile objects in a single plot window.

class fudge.vis.gnuplot.fudge2dMultiPlotClass.fudge2dMultiPlotClass(rootWindow=None, options={})[source]

Bases: Tkinter.Frame

add2dData(data, title, active=True, replot=True)[source]
add2dFile(fileName, title, xColumn=1, yColumn=2, active=True, replot=True)[source]
legendCallback()[source]

Called whenever the “Options -> Legend” menu state is changed.

plotPrint()[source]

Called when “File -> Print” menu is selected. Prints the current plot.

plotSaveAsEps()[source]

Called when “File -> SaveAs eps” menu is selected. Uses a FileDialog to get the output file name and produces an eps file of the current plot.

plotSaveAsPDF()[source]

Called when “File -> SaveAs pdf” menu is selected. Uses a FileDialog to get the output file name and produces an eps file of the current plot.

plotSaveAsPNG()[source]

Called when “File -> SaveAs png” menu is selected. Uses a FileDialog to get the output file name and produces an eps file of the current plot.

plotSaveAsSVG()[source]

Called when “File -> SaveAs svg” menu is selected. Uses a FileDialog to get the output file name and produces an eps file of the current plot.

plotSaveAs_terminal(terminal, suffix=None, color=True)[source]

Called when “File -> SaveAs eps” menu is selected. Uses a FileDialog to get the output file name and produces an eps file of the current plot.

readFile()[source]
redraw()[source]
replot(extraGnuplotCommand=None)[source]

This function is called whenever the plot needs to be redrawn (e.g., axis is changed).

class fudge.vis.gnuplot.fudge2dMultiPlotClass.logButton(plotter, label, row, column, var)[source]

Bases: object

A class that contains a Checkbutton widget that toggles the x- or y-axis between linear and log scaling.

logcallback()[source]

Called whenever the x- or y-axis log checkbutton state changes.

fudge.vis.gnuplot.fudge3dMultiPlot module

fudge.vis.gnuplot.fudgeMultiPlots module

This module contains routines for plotting multiple data sets on the same plot.

fudge.vis.gnuplot.fudgeMultiPlots.multiPlot(datasets, xylog=0, xMin=None, xMax=None, yMin=None, yMax=None, xLabel='Energy (MeV)', yLabel='Cross section (barn)', title=None, lineWidth=1, fontSize=None)[source]

This routine sends all data objects of the first argument, datasets, to the module fudge2dMultiPlot for interactive plotting. Here, datasets must be a list or tuple, and each element must be an object at has the method copyDataToXYs. The copyDataToXYs must return the [x, y] pairs of data to plot as a python list of [x_i,y_i] pairs. The legend for each data element of datasets is taken from that object’s label member.”

See module fudge2dMultiPlot for a description of the following parameters::
xylog xMin xMax yMin yMax xLabel yLabel title

Currently, lineWitdh and fontSize are not implemented.

Examples of usages where d1, d2 and d3 are endl2dmath objects.

>>> d2.label = "Bad data from boss"                     # Sets the legend for d2 to "Bad data from boss".
>>> multiPlot( ( d1, d2, d3 ), xylog = 3 )
>>> I0Data = za.findDatas( I = 0, C = ( 12, 13, 14 ) )  # za is an endlZA object.
>>> multiPlot( I0Data )

Also see the routine qmultiPlot.

fudge.vis.gnuplot.fudgeMultiPlots.multiPlot3d(dataList, xyzlog=0, xMin=None, xMax=None, yMin=None, yMax=None, zMin=None, zMax=None, xLabel=None, yLabel=None, zLabel=None, title=None, lineWidth=1, fontSize=None)[source]

This routine sends all data objects of the first argument, dataList, to the module fudge3dMultiPlot for interactive plotting. Here, dataList must be a list or tuple, and each element must be an endl3dmath object or subclass of it. The legend for each data element of dataList is taken from that object’s label member.”

See module fudge3dMultiPlot for a description of the following parameters::
xyzlog xMin xMax yMin yMax zMin zMax xLabel yLabel zLabel title

Currently, lineWitdh and fontSize are not implemented.

Examples of usages where d1, d2 and d3 are endl3dmath objects.

>>> d2.label = "Bad data from boss"                     # Sets the legend for d2 to "Bad data from boss".
>>> multiPlot3d( ( d1, d2, d3 ), xyzlog = 3 )           # x log, y log and z linear.
>>> I1Data = za.findDatas( I = 1, C = ( 12, 13, 14 ) )  # za is an endlZA object.
>>> multiPlot( I1Data )
fudge.vis.gnuplot.fudgeMultiPlots.qmultiPlot(dataList, xylog=0, xMin=None, xMax=None, yMin=None, yMax=None, xLabel='Energy (MeV)', yLabel='Cross section (barn)', title=None, legends=[], lineWidth=1, fontSize=None)[source]

This routine plots the data objects of the first argument, dataList, to a non-interactive plot. The argument lineWidth sets the width of the lines and fontSize sets the font size for the plot. The argument legends is a deprecated argument. To specify a legend for a data set, use that data’s label member.

Examples of usages where d1, d2 and d3 are endl2dmath objects.

>>> d2.label = "Bad data from boss"                     # Sets the legend for d2 to "Bad data from boss".
>>> multiPlot( ( d1, d2, d3 ), xylog = 3 )
>>> I0Data = za.findDatas( I = 0, C = ( 12, 13, 14 ) )  # za is an endlZA object.
>>> multiPlot( I0Data )

See the routine multiPlot for additional information.

fudge.vis.gnuplot.fudgeNdMultiPlotMisc module

class fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotData(data, title, dimension=None, active=True, replot=None)[source]

Bases: fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotItem

class fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotFile(fileName, dimension, title='', active=True, replot=None, xColumn=1, yColumn=2, zColumn=3, tColumn=None)[source]

Bases: fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotItem

fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotFileRead(parent, dimension)[source]
class fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotFileReadGetInfo(parent, dimension, title, fileName, lines)[source]

Bases: tkSimpleDialog.Dialog

body(frame)[source]
validate()[source]
class fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotItem(title, dimension, active=True, replot=None, xColumn=1, yColumn=2, zColumn=3, tColumn=None)[source]

Bases: object

getColor()[source]
getTitle()[source]
getXColumn()[source]
getYColumn()[source]
getZColumn()[source]
isActive()[source]
setActive(active)[source]
setColor(color)[source]
setTitle(title)[source]
setToUpdate()[source]
setXColumn(xColumn)[source]
setYColumn(yColumn)[source]
setZColumn(zColumn)[source]
class fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotItemsDialog(frame, redraw, activeMenubar=None)[source]

Bases: object

activeAllOffCallback()[source]

Called when the “Active -> all off” menu item is selected. Sets all file’s active state to off.

activeAllOnCallback()[source]

Called when the “Active -> all on” menu item is selected. Sets all file’s active state to on.

activeCallback(state)[source]

Called from activeAllOnCallback and activeAllOffCallback.

activeChanged()[source]
activeStepCallback()[source]

Called when the “Active -> step” menu item is selected.

addButtonWithMenu(frame, text, row, column, options, default)[source]
addFudgeNdMultiPlotFile(gnuPlotItem)[source]
addIntEntry(frame, value, row, column, width=5)[source]
addLabel(frame, text, row, column, columnspan=1)[source]
addMenu(menuButton, list, default)[source]
addStringEntry(frame, string, row, column, columnspan=1, sticky=None)[source]
getActiveCurves()[source]
getIndicesForLabel(label)[source]
redraw()[source]
removeCallback()[source]
setColorBlue()[source]
setColorGreen()[source]
setColorRed()[source]
setColorSystem()[source]
setLineType(type)[source]
setLineTypeNone()[source]
setLineTypeSolid()[source]
setLineTypeSystem()[source]
setSymbolCircle()[source]
setSymbolFilledCircle()[source]
setSymbolFilledSquare()[source]
setSymbolSquare()[source]
setSymbolType(type)[source]
setSymbolTypeCross()[source]
setSymbolTypeNone()[source]
setSymbolTypeSystem()[source]
setSymbolX()[source]
setUpdatingPlotParameters(gnuPlotItem)[source]
updateAndRedrawCallback()[source]
updateColumnBreaks()[source]
updateOnlyCallback()[source]
class fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotSystem[source]

Bases: fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotItem

fudge.vis.gnuplot.plotbase module

fudge.vis.gnuplot.plotbase.minMax(s, _min, _max)[source]
fudge.vis.gnuplot.plotbase.parsePlotOptions(xMin, xMax, yMin, yMax, xLabel, yLabel, title, zMin=None, zMax=None, zLabel=None, tLabel=None, tScaleLabel=None, xrot=None, zrot=None, delete=True, style=None)[source]

For internal use only.

Module contents