import Graph PluginName = "Negative arrows" PluginVersion = "0.1" PluginDescription = "This creates a menu item Plugins|Show negative arrows that shows arrows on the negative ends of the axes." def Execute(Action): Graph.Axes.xAxis.ShowNegativeArrow = not Action.Checked Graph.Axes.yAxis.ShowNegativeArrow = not Action.Checked def Update(Action): Action.Checked = Graph.Axes.xAxis.ShowNegativeArrow Action = Graph.CreateAction(Caption="Show negative arrows", OnExecute=Execute, OnUpdate=Update, Hint="Show arrows on the negative ends of the axes.") Graph.AddActionToMainMenu(Action)