Source code for titania.plots.root_plot
from titania.plots.base_plot import NavToolbarPlot
[docs]class RootScatterPlot(NavToolbarPlot):
"""
Root scatter plot
"""
def __init__(self, parent=None, view=None):
NavToolbarPlot.__init__(self, parent=parent, view=view)
[docs] def draw_plot(self):
self.figure.clear()
data = self.view.data.fetch()
ax = self.figure.add_subplot(self.plot_number)
data.plot(x='one', y='two', kind='scatter', ax=ax)
self.draw()