// The alignment is quite long
// -> Reduce font and box size to reduce figure size
visualizer.set_alignment_properties(
box_size=(8,14), symbols_per_line=80, font_size=6
)
visualizer.add_labels(names, font_size=10, size=80)
visualizer.add_location_numbers(size=40, font_size=10)
After Change
matrix = align.SubstitutionMatrix.std_protein_matrix()
fig = plt.figure(figsize=(8.0, 15))
ax = fig.add_subplot(111)
// The alignment is quite long
// -> Reduce font size to reduce figure size
graphics.plot_alignment_similarity_based(
ax, alignment, matrix=matrix, symbols_per_line=80, labels=names,