fig view with some code