【问题标题】:Venn Diagram with Textures using matplotlib使用 matplotlib 带纹理的维恩图
【发布时间】:2018-04-13 05:43:41
【问题描述】:

我将使用matplotlib-venn 创建维恩图。我能够生成图表。有没有可能用matplotlib bar-chart/pie-chart with textures 之类的纹理创建维恩图?

【问题讨论】:

  • 在由 venn 函数创建的补丁上使用.set_hatch

标签: python matplotlib venn-diagram


【解决方案1】:

这应该让你开始:

v = venn3(range(1,8))
p = v.get_patch_by_id('110')
p.set_hatch('\\\\')
p.set_edgecolor('black')
p.set_alpha(1.0)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-11-19
    • 1970-01-01
    • 2010-11-28
    • 1970-01-01
    • 1970-01-01
    • 2013-01-24
    • 2014-09-21
    • 1970-01-01
    相关资源
    最近更新 更多