Commit 226f1f8d authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

plot appearance tweaks

parent a1cca465
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -143,13 +143,13 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir):
                            s=150,
                            color="red",
                            edgecolors="darkred",
                            linewidths=1.5,
                            linewidths=2,
                            alpha=0.9,
                            zorder=5,
                        )
                        ax.text(
                            x_pos,
                            y_max - 1.5,
                            y_max - 1.75,
                            f"{y_val:.1f}",
                            ha="center",
                            va="top",
@@ -158,7 +158,7 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir):
                            bbox=dict(
                                boxstyle="round,pad=0.3",
                                facecolor="white",
                                edgecolor="red",
                                edgecolor="darkred",
                                alpha=0.9,
                            ),
                        )
@@ -170,13 +170,13 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir):
                            s=150,
                            color="red",
                            edgecolors="darkred",
                            linewidths=1.5,
                            linewidths=2,
                            alpha=0.9,
                            zorder=5,
                        )
                        ax.text(
                            x_pos,
                            y_min + 1.5,
                            y_min + 1.75,
                            f"{y_val:.1f}",
                            ha="center",
                            va="bottom",
@@ -185,7 +185,7 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir):
                            bbox=dict(
                                boxstyle="round,pad=0.3",
                                facecolor="white",
                                edgecolor="red",
                                edgecolor="darkred",
                                alpha=0.9,
                            ),
                        )
@@ -204,8 +204,8 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir):
                            marker=marker,
                            color=color,
                            s=80,
                            alpha=0.7,
                            zorder=3,
                            alpha=0.75,
                            zorder=4 if dtx_val else 3,
                        )

        # plot input loudness as horizontal reference line
@@ -216,7 +216,6 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir):
                color="xkcd:grey",
                linestyle="--",
                linewidth=2,
                alpha=0.7,
                label=label_input,
                zorder=2,
            )
@@ -240,6 +239,7 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir):
        ax.set_yticks(np.arange(y_min, y_max + 1, 1), minor=True)

        ax.set_xlabel("Bitrate (kbps)", fontsize=11)
        if idx == 0:
            ax.set_ylabel("Output Loudness (LKFS)", fontsize=11)
        ax.set_title(f"{bw.upper()}", fontsize=12)
        ax.grid(True, which="minor", alpha=0.3, zorder=1)