diff --git a/act/plotting/distributiondisplay.py b/act/plotting/distributiondisplay.py index 7183f90f88..a94d0195cf 100644 --- a/act/plotting/distributiondisplay.py +++ b/act/plotting/distributiondisplay.py @@ -823,13 +823,13 @@ def plot_violin(self, # Display the scatter plot, pass keyword args for unspecified attributes scc = self.axes[subplot_index].violinplot(ndata, - positions=positions, - vert=vert, - showmeans=showmeans, - showmedians=showmedians, - showextrema=showextrema, - **kwargs - ) + positions=positions, + vert=vert, + showmeans=showmeans, + showmedians=showmedians, + showextrema=showextrema, + **kwargs + ) if showmeans is True: scc['cmeans'].set_edgecolor('red') scc['cmeans'].set_label('mean') diff --git a/examples/plotting/plot_scatter.py b/examples/plotting/plot_scatter.py index 7cecd8dfb9..dd9202f05d 100644 --- a/examples/plotting/plot_scatter.py +++ b/examples/plotting/plot_scatter.py @@ -47,18 +47,18 @@ # Plot the best fit line display.axes[0].plot(ds['true_airspeed'], - p(ds['true_airspeed']), - 'r', - linewidth=2 - ) + p(ds['true_airspeed']), + 'r', + linewidth=2 + ) # Display the line equation display.axes[0].text(45, - 135, - "y = %.3fx + (%.3f)" % (z[0], z[1]), - color='r', - fontsize=12 - ) + 135, + "y = %.3fx + (%.3f)" % (z[0], z[1]), + color='r', + fontsize=12 + ) # Calculate Pearson Correlation Coefficient cc_conc = pearsonr(ds['true_airspeed'], @@ -67,17 +67,17 @@ # Display the Pearson CC display.axes[0].text(45, - 130, - "Pearson CC: %.2f" % (cc_conc[0]), - fontsize=12 - ) + 130, + "Pearson CC: %.2f" % (cc_conc[0]), + fontsize=12 + ) # Display the total number of samples display.axes[0].text(45, - 125, - "N = %.0f" % (ds['true_airspeed'].data.shape[0]), - fontsize=12 - ) + 125, + "N = %.0f" % (ds['true_airspeed'].data.shape[0]), + fontsize=12 + ) # Display the 1:1 ratio line display.set_ratio_line()