Example #1
0
 def __init__(self):
     """Construct plugin."""
     self.fields = [
         field.FieldWidget("widget",
                           descr=_("Start from widget"),
                           default="/"),
         field.FieldBool("follow",
                         descr=_("Change references and defaults"),
                         default=True),
         field.FieldBool("onlystr",
                         descr=_("Change only textual data"),
                         default=False),
         field.FieldText('text1', descr=_("Text to change"), default=''),
         field.FieldText('text2', descr=_("Replacement text"), default=''),
     ]
Example #2
0
 def __init__(self):
     self.fields = [
         field.FieldBool("errorsin2d",
                         descr=_("Treat 2 and 3 column 2D arrays as\n"
                                 "data with error bars"),
                         default=True),
     ]
Example #3
0
 def __init__(self):
     """Construct plugin."""
     self.fields = [
         field.FieldWidget("widget",
                           descr=_("Start from widget"),
                           default="/"),
         field.FieldBool("randxy",
                         descr=_("Randomize xy plotters"),
                         default=True),
         field.FieldBool("randfunc",
                         descr=_("Randomize function plotters"),
                         default=True),
         field.FieldColor('color1',
                          descr=_("Start of color range"),
                          default='#404040'),
         field.FieldColor('color2',
                          descr=_("End of color range"),
                          default='#ff0004'),
     ]
Example #4
0
 def __init__(self):
     """Construct plugin."""
     self.fields = [
         field.FieldWidget("widget",
                           descr=_("Start from widget"),
                           default="/"),
         field.FieldBool("follow",
                         descr=_("Change references and defaults"),
                         default=True),
         field.FieldColor('color1', descr=_("First color"),
                          default='black'),
         field.FieldColor('color2', descr=_("Second color"), default='red'),
     ]
Example #5
0
 def __init__(self, dirn):
     """Construct plugin.
     dirn == 1: increase sizes
     dirn == -1: decrease sizes
     """
     self.dirn = dirn
     self.fields = [
         field.FieldWidget("widget",
                           descr=_("Start from widget"),
                           default="/"),
         field.FieldBool("follow",
                         descr=_("Change references and defaults"),
                         default=True),
         field.FieldFloat("delta", descr=_("Change by value"), default=2),
     ]
Example #6
0
 def __init__(self):
     self.fields = [
         field.FieldText("name", descr=_("Dataset name"), default="name"),
         field.FieldBool("invert", descr=_("invert values")),
         field.FieldFloat("mult",
                          descr=_("Multiplication factor"),
                          default=1),
         field.FieldInt("skip",
                        descr=_("Skip N lines"),
                        default=0,
                        minval=0),
         field.FieldCombo("subtract",
                          items=("0", "1", "2"),
                          editable=False,
                          default="0")
     ]
Example #7
0
 def __init__(self):
     """Construct plugin."""
     self.fields = [
         field.FieldWidget("widget", descr=_("Clone widget"), default=""),
         field.FieldDataset('ds1',
                            descr=_("Dataset 1 to change"),
                            default=''),
         field.FieldDatasetMulti('ds1repl',
                                 descr=_("Replacement(s) for dataset 1")),
         field.FieldDataset('ds2',
                            descr=_("Dataset 2 to change (optional)"),
                            default=''),
         field.FieldDatasetMulti('ds2repl',
                                 descr=_("Replacement(s) for dataset 2")),
         field.FieldBool("names",
                         descr=_("Build new names from datasets"),
                         default=True),
     ]