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
-
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.
-
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
-
class
fudge.vis.gnuplot.fudgeNdMultiPlotMisc.
fudgeNdMultiPlotFileReadGetInfo
(parent, dimension, title, fileName, lines)[source]¶ Bases:
tkSimpleDialog.Dialog
-
class
fudge.vis.gnuplot.fudgeNdMultiPlotMisc.
fudgeNdMultiPlotItem
(title, dimension, active=True, replot=None, xColumn=1, yColumn=2, zColumn=3, tColumn=None)[source]¶ Bases:
object
-
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.
-
-
class
fudge.vis.gnuplot.fudgeNdMultiPlotMisc.
fudgeNdMultiPlotSystem
[source]¶ Bases:
fudge.vis.gnuplot.fudgeNdMultiPlotMisc.fudgeNdMultiPlotItem