beeswarmplot.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:coquery 作者: gkunter 项目源码 文件源码
def draw(self):
        def plot_facet(data, color):
            sns.swarmplot(
                x=data[self._groupby[-1]],
                y=data["coquery_invisible_corpus_id"],
                order=sorted(self._levels[-1]),
                palette=self.options["color_palette_values"],
                data=data)

        self.g.map_dataframe(plot_facet)

        ymax = options.cfg.main_window.Session.Corpus.get_corpus_size()
        self.g.set(ylim=(0, ymax))
        self.g.set_axis_labels(self.options["label_x_axis"],
                               self.options["label_y_axis"])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号