Skip to main content
5 of 10
edited tags
Silvia
  • 27.7k
  • 3
  • 86
  • 172

plot and sum colors of the common region in hyper-graph?

I have two hypergraphs which shares one vertex (HypergraphPlot function from Jaebum Jung's hypergraph plotting):

fig1 = HypergraphPlot[{{Subscript[d, 1], Subscript[d, 2]}, {Subscript[d, 1], Subscript[d, 3]}}, "SubsetBoundaryStyle" -> (Directive[EdgeForm[{Thickness[0.003], Black}], #] & /@ {Green, Red}), "SubsetBoundaryScale" -> {2, 2, 2, 2}, "SubsetEdge" -> False, PlotTheme -> "Classic"] 

So the plot figure is fig1 as the following:

fig1

I want to know how to show the overlap region and summing the color in the common regions such as fig2 (red + green ~ yellow)?

fig2

Thank you very much in advance! If something is unclear, thank you for pointing out!

Xuemei
  • 1.7k
  • 7
  • 10