@requires_version('scipy', '0.10')
def test_plot_raw_filtered():
 raw = _get_raw()
 assert_raises(ValueError, raw.plot, lowpass=(raw.info['sfreq'] / 2.0))
 assert_raises(ValueError, raw.plot, highpass=0)
 assert_raises(ValueError, raw.plot, lowpass=1, highpass=1)
 assert_raises(ValueError, raw.plot, lowpass=1, filtorder=0)
 assert_raises(ValueError, raw.plot, clipping='foo')
 raw.plot(lowpass=1, clipping='transparent')
 raw.plot(highpass=1, clipping='clamp')
 raw.plot(highpass=1, lowpass=2)

@ requires_version ( 'scipy' , '0.10' ) def test_plot_raw_filtered ( ) : raw = _get_raw ( ) assert_raises ( ValueError , raw . plot , lowpass = ( raw . info [ 'sfreq' ] / 2.0 ) ) assert_raises ( ValueError , raw . plot , highpass = 0 ) assert_raises ( ValueError , raw . plot , lowpass = 1 , highpass = 1 ) assert_raises ( ValueError , raw . plot , lowpass = 1 , filtorder = 0 ) assert_raises ( ValueError , raw . plot , clipping = 'foo' ) raw . plot ( lowpass = 1 , clipping = 'transparent' ) raw . plot ( highpass = 1 , clipping = 'clamp' ) raw . plot ( highpass = 1 , lowpass = 2 )
test filtering of raw plots .