@@ -732,7 +732,7 @@ def __init__(self, data, config, data_name, x_axis_label=None,
732
732
y_axis_label = None , title = None , plot_height = 'normal' ,
733
733
equal_aspect = True ):
734
734
735
- super (DataPlot2D , self ).__init__ (data , config , data_name ,
735
+ super ().__init__ (data , config , data_name ,
736
736
x_axis_label = x_axis_label ,
737
737
y_axis_label = y_axis_label ,
738
738
title = title , plot_height = plot_height )
@@ -796,7 +796,7 @@ def __init__(self, data, config, data_name, x_axis_label=None,
796
796
y_axis_label = None , title = None , plot_height = 'small' ,
797
797
x_range = None , y_range = None , topic_instance = 0 ):
798
798
799
- super (DataPlotSpec , self ).__init__ (data , config , data_name , x_axis_label = x_axis_label ,
799
+ super ().__init__ (data , config , data_name , x_axis_label = x_axis_label ,
800
800
y_axis_label = y_axis_label , title = title , plot_height = plot_height ,
801
801
x_range = x_range , y_range = y_range , topic_instance = topic_instance )
802
802
@@ -898,7 +898,7 @@ def __init__(self, data, config, data_name,
898
898
title = None , plot_height = 'small' ,
899
899
x_range = None , y_range = None , topic_instance = 0 ):
900
900
901
- super (DataPlotFFT , self ).__init__ (data , config , data_name , x_axis_label = 'Hz' ,
901
+ super ().__init__ (data , config , data_name , x_axis_label = 'Hz' ,
902
902
y_axis_label = 'Amplitude * 1000' , title = title , plot_height = plot_height ,
903
903
x_range = x_range , y_range = y_range , topic_instance = topic_instance )
904
904
self ._use_time_formatter = False
@@ -955,12 +955,11 @@ def add_graph(self, field_names, colors, legends):
955
955
step_size = int (len (fft_plot_values ) / max_num_data_points )
956
956
fft_plot_values = fft_plot_values [::step_size ]
957
957
freqs_plot = freqs_plot [::step_size ]
958
- self ._p .line (freqs_plot , fft_plot_values ,
959
- line_color = color , line_width = 2 , legend_label = legend ,
960
- alpha = 0.8 )
958
+ self ._p .line (freqs_plot , fft_plot_values , # pylint: disable=too-many-function-args
959
+ line_color = color , line_width = 2 , legend_label = legend , alpha = 0.8 )
961
960
# plot the mean lines above the fft graphs
962
961
for fft_values , mean_fft_value , legend , color in plot_data :
963
- self ._p .line ([mean_start_freq , np .max (freqs )],
962
+ self ._p .line ([mean_start_freq , np .max (freqs )], # pylint: disable=too-many-function-args
964
963
[mean_fft_value , mean_fft_value ],
965
964
line_color = color , line_width = 2 , legend_label = legend )
966
965
0 commit comments