Making diagrams for filter