def draw(self):
""" Plot a vertical line for each token in the current data table.
The line is drawn in a subplot matching the factor level
combination in that row. The horizontal position corresponds to the
token id so that tokens that occur in the same part of the corpus
will also have lines that are placed close to each other. """
def plot_facet(data, color):
lineplot(
x=data["coquery_invisible_corpus_id"],
y=data[self._groupby[-1]],
order=self._levels[-1],
palette=self.options["color_palette_values"],
data=data)
#sns.despine(self.g.fig,
#left=False, right=False, top=False, bottom=False)
self.map_data(plot_facet)
self.g.set_axis_labels(utf8(self.options["label_x_axis"]), utf8(self.options["label_y_axis"]))
self.g.set(xlim=(0, options.cfg.main_window.Session.Corpus.get_corpus_size(filters=[])))
评论列表
文章目录