scripts for bipartite plots