pattern visualization