![]() ![]() The new name None means dataset is deleted."""įor pkls in plugins. """Return the current path (set by To())."""ĭef DatasetPlugin( self, pluginname, fields, datasetnames =):ĭatasetnames: dict mapping old names to new names of datasets ' "%s" and "%s"') % ( inexpr, outbinsds, outvalsds) 'Constructed histogram of "%s", creating datasets' ![]() Inexpr, outbinsds, outvalsds, binparams = binparams,Ĭumulative = cumulative, errors = errors) Method is 'counts', 'density', or 'fractions'Ĭumulative is to calculate cumulative distributions which isĮrrors is to calculate Poisson error bars Outvalsds is name of dataset for bin valuesīinparams is None or (numbins, minval, maxval, islogbins)īinmanual is None or a list of bin values Outbinds is the name of the dataset to create giving bin positions OperationWidgetClone( widget, newparent, newname)ĭef CreateHistogram( self, inexpr, outbinsds, outvalsds, binparams = None, Newname is an optional new name to give it """Clone the widget given, placing the copy in newparent and OperationSetCustom( ctype, vals)ĭef CloneWidget( self, widget, newparent, newname = None): If mode not in ( 'appendalways', 'append', 'replace'):Īttr = operations. Raise RuntimeError( 'Value should be string') 'append', then an existing definition is deleted, and the new Same place in the list or is appended otherwise. Mode is 'replace', it replaces any existing definition in the If mode is 'appendalways', the custom value is appended to theĮnd of the list even if there is one with the same name. ForĪ color this is a string with the format '#RRGGBB' or For a colormap, val is a list ofĤ-item tuples containing R,G,B,alpha values from 0 to 255. _strings_), or is a list of symbols for a module (comma Val is definition for constant or function (both are Name is name of constant, color or colormap, "function(x, y, This can define a constant (can be in terms of otherĬonstants), a function of 1 or more variables, or a functionĬtype is "constant", "function", "definition" (eitherĬonstant or function), "import", "color" or "colormap". """Add a custom definition for evaluation of expressions. userdescription))ĭef AddCustom( self, ctype, name, val, mode = 'appendalways'): Print( _( "Added a widget of type '%s' (%s)") % ( type, w. OperationWidgetAdd( at, widgettype, ** args_opt) """Add a widget to the widget with the type given.Īutoadd: if True (default), any subwidgets associated with """Specify whether we want verbose output after operations.""" # try to open file to make sure we have access to it and """Find file on path, returning filename, or original if not found.""" """When the document is wiped, we change to the root widget."""ĭef findFileOnImportPath( self, filename): ![]() # number of argument which contains filename # commands which are safe in any script (excluding import commands) translate( context, text, disambiguation)ĭef registerImportCommand( name, method, filenamearg = 0):ĬommandInterface. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.ĭef _( text, disambiguation = None, context = 'CommandInterface'): # with this program if not, write to the Free Software Foundation, Inc., # You should have received a copy of the GNU General Public License along # GNU General Public License for more details. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # but WITHOUT ANY WARRANTY without even the implied warranty of # This program is distributed in the hope that it will be useful, # the Free Software Foundation either version 2 of the License, or # it under the terms of the GNU General Public License as published by # This program is free software you can redistribute it and/or modify _ Function registerImportCommand Function CommandInterface Class _init_ Function slotWipedDoc Function findFileOnImportPath Function SetVerbose Function Add Function AddCustom Function AddImportPath Function CloneWidget Function CreateHistogram Function CurrentPath Function DatasetPlugin Function Remove Function RemoveCustom Function To Function List Function Get Function GetChildren Function GetColormap Function GetDatasets Function ResolveReference Function Save Function Set Function SetToReference Function SetCompatLevel Function SetData Function SetDataDateTime Function SetDataExpression Function SetDataND Function SetDataRange Function SetData2DExpression Function SetData2DExpressionXYZ Function SetData2DXYFunc Function SetData2D Function SetDataText Function GetData Function GetDataType Function ReloadData Function Action Function Print Function Export Function Rename Function NodeType Function NodeChildren Function WidgetType Function SettingType Function TagDatasets Function FilterDatasets Function ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |