TclCommandPlot.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. from tclCommands.TclCommand import *
  2. class TclCommandPlot(TclCommand):
  3. """
  4. Tcl shell command to update the plot on the user interface.
  5. example:
  6. plot
  7. """
  8. # List of all command aliases, to be able use old names for backward compatibility (add_poly, add_polygon)
  9. aliases = ['plot']
  10. # Dictionary of types from Tcl command, needs to be ordered
  11. arg_names = collections.OrderedDict([
  12. ])
  13. # Dictionary of types from Tcl command, needs to be ordered , this is for options like -optionname value
  14. option_types = collections.OrderedDict([
  15. ])
  16. # array of mandatory options for current Tcl command: required = {'name','outname'}
  17. required = []
  18. # structured help for current command, args needs to be ordered
  19. help = {
  20. 'main': "Updates the plot on the user interface.",
  21. 'args': collections.OrderedDict([
  22. ]),
  23. 'examples': []
  24. }
  25. def execute(self, args, unnamed_args):
  26. """
  27. :param args:
  28. :param unnamed_args:
  29. :return:
  30. """
  31. self.app.plot_all()