X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fplugin%2Fgeneralvclamp.py;h=d15260822d3c4b96e8506df104717199fc31430b;hp=a6721430167442a5133392b046969f8abaadd433;hb=8273b2acd0162fd19e79cf52ab3822454d5b2c50;hpb=bff2e146f66541f8935c634b93aa4bf4d74b04ca diff --git a/hooke/plugin/generalvclamp.py b/hooke/plugin/generalvclamp.py index a672143..d152608 100644 --- a/hooke/plugin/generalvclamp.py +++ b/hooke/plugin/generalvclamp.py @@ -39,6 +39,25 @@ warnings.simplefilter('ignore',np.RankWarning) class generalvclampCommands(object): + def do_subtplot(self, args): + ''' + SUBTPLOT + (procplots.py plugin) + Plots the difference between ret and ext current curve + ------- + Syntax: subtplot + ''' + #FIXME: sub_filter and sub_order must be args + + if len(self.plots[0].vectors) != 2: + print 'This command only works on a curve with two different plots.' + pass + + outplot=self.subtract_curves(sub_order=1) + + plot_graph=self.list_of_events['plot_graph'] + wx.PostEvent(self.frame,plot_graph(plots=[outplot])) + def _plug_init(self): self.basecurrent=None self.basepoints=None