On selecting the pngcairo terminal gnuplot by default endables the "solid" terminal option that overrides all line styles maxima might select. The "dashed" now tells gnuplot not to enable the option "solid".