The Streamline based method is one of the most important vector field visualization methods. The physical-related feature was seldom considered in the past streamline placements algorithms. A streamline placement algorithm for 2D and 3D vector field is introduced in this paper. The study measures the difference between the inflow and the outflow to evaluate the local spatial-varying feature at a specified field point. A Difference of Inflow and Outflow Matrix (DIOM) is then calculated to describe the global appearance of the field. The study draws streamlines by choosing the local extreme points in DIOM as seeds. DIOM is somewhat like flow divergence and is physics-related and thus reflects the intrinsic characteristics of the vector field. The strategy performs well in revealing features of the vector field, even with relatively few streamlines in both 2D and 3D vector field.