new code for Figure 2 (plane m_min-m_max)