Skip to content

Commit 9095b18

Browse files
style: ruff format plots.py
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 836fd0c commit 9095b18

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • src/vocal_analysis/visualization

src/vocal_analysis/visualization/plots.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def plot_separation_validation(
251251
hz = float(midi_to_hz(midi))
252252
note = hz_to_note(hz)
253253
# Mostrar apenas notas naturais (sem # ou b) para não poluir o eixo
254-
if f0_min <= hz <= f0_max and '#' not in note and 'b' not in note:
254+
if f0_min <= hz <= f0_max and "#" not in note and "b" not in note:
255255
note_ticks_hz.append(hz)
256256
note_ticks_labels.append(note)
257257

@@ -313,8 +313,9 @@ def plot_separation_validation(
313313
ax2.axhline(hz, color="gray", linewidth=0.3, alpha=0.4)
314314

315315
# Colorbar compartilhada (location='right' evita sobreposição com eixo de notas)
316-
cbar = fig.colorbar(scatter2, ax=axes, location='right', label="Confiança CREPE",
317-
shrink=0.8, pad=0.02)
316+
cbar = fig.colorbar(
317+
scatter2, ax=axes, location="right", label="Confiança CREPE", shrink=0.8, pad=0.02
318+
)
318319

319320
# Titulo geral
320321
fig.suptitle(title, fontsize=12, fontweight="bold")

0 commit comments

Comments
 (0)