@@ -278,7 +278,7 @@ private void DrawStimulusWaveform()
278278
279279 for ( int i = 0 ; i < Sequence . Stimuli . Length ; i ++ )
280280 {
281- var channelOffset = peakToPeak * i ;
281+ var channelOffset = - peakToPeak * i ;
282282
283283 if ( ChannelDialog . SelectedContacts [ i ] || plotAllContacts )
284284 {
@@ -304,7 +304,7 @@ private void DrawStimulusWaveform()
304304 }
305305
306306 zedGraphWaveform . GraphPane . YAxis . Scale . MajorStep = 1 ;
307- zedGraphWaveform . GraphPane . YAxis . Scale . BaseTic = 0 ;
307+ zedGraphWaveform . GraphPane . YAxis . Scale . BaseTic = - Sequence . Stimuli . Length + 1 ;
308308
309309 HighlightInvalidContacts ( ) ;
310310
@@ -313,8 +313,13 @@ private void DrawStimulusWaveform()
313313
314314 zedGraphWaveform . GraphPane . XAxis . Scale . Max = maxLength ;
315315 zedGraphWaveform . GraphPane . XAxis . Scale . Min = - ( maxLength * 0.02 ) ;
316- zedGraphWaveform . GraphPane . YAxis . Scale . Min = - 2 ;
317- zedGraphWaveform . GraphPane . YAxis . Scale . Max = Sequence . Stimuli . Length - 0.2 ;
316+ zedGraphWaveform . GraphPane . YAxis . Scale . Min = - Sequence . Stimuli . Length - 2 ;
317+ zedGraphWaveform . GraphPane . YAxis . Scale . Max = 1 ;
318+
319+ zedGraphWaveform . GraphPane . YAxis . ScaleFormatEvent += ( GraphPane gp , Axis axis , double val , int index ) =>
320+ {
321+ return Math . Abs ( val ) . ToString ( "0" ) ;
322+ } ;
318323
319324 DrawScale ( ) ;
320325
@@ -1077,7 +1082,7 @@ private bool UpdateStepSizeFromAmplitude(double amplitude)
10771082 {
10781083 StepSize = validStepSizes . First ( ) ;
10791084 textBoxStepSize . Text = GetStepSizeStringuA ( StepSize ) ;
1080-
1085+
10811086 return true ;
10821087 }
10831088
0 commit comments