paulbrodersen / matplotlib_venn_wordcloud

Venn diagrams with word clouds
MIT License
50 stars 12 forks source link

Not possible to render this to d3 frontend using mpld3 #7

Closed swarnas89 closed 3 years ago

swarnas89 commented 3 years ago

When I tried rendering this,only the word cloud is displayed.but the circles are not displayed. Code I have tried:

    fig, ax = plt.subplots(figsize=(10,10))
    ax.set_title('Top 50 Cat and Dog Names in Seattle', fontsize=20)
    v = venn2_wordcloud([set1, set2],
                    ax=ax, set_labels=["year1", "year2"])
    # add color
    v.get_patch_by_id('10').set_color('green')
    v.get_patch_by_id('10').set_alpha(0.4)
    v.get_patch_by_id('01').set_color('blue')
    v.get_patch_by_id('01').set_alpha(0.4)
    v.get_patch_by_id('11').set_color('purple')
    v.get_patch_by_id('11').set_alpha(0.4)
    html_graph = mpld3.fig_to_html(fig)
paulbrodersen commented 3 years ago

Can you create a minimal working example including imports so I can reproduce the issue?

paulbrodersen commented 3 years ago

Closing issue due to inactivity. Feel free to reopen any time.