def redraw_plot(self):
ax, data = self.get_plot_data()
xlabel = self.field.axislabels[self.normal]
ylabel = self.fieldname + "_" + self.field.labels[self.component]
self.pyplotp.redraw_plot(ax, data, xlabel, ylabel)
# Set min/max text values
self.minp, self.maxp = self.pyplotp.ax.get_ylim()
self.choosep.minpspin.SetValue(str(round_to_n(self.minp,3)))
self.choosep.maxpspin.SetValue(str(round_to_n(self.maxp,3)))
#self.post_string_event(wx.EVT_TEXT_ENTER,self.round_to_n(self.minp,6),self.choosep.minpspin)
#self.post_string_event(wx.EVT_TEXT_ENTER,self.round_to_n(self.maxp,6),self.choosep.maxpspin)
self.Refresh()
评论列表
文章目录