chore(plot): adjust subplot ratios

This commit is contained in:
Kristofers Solo 2025-04-22 19:26:12 +03:00
parent 083f60ffa2
commit 6e2fc0c2d5

View File

@ -37,7 +37,7 @@ def main() -> None:
fig: Figure
ax_bar: Axes
ax_circle: Axes
fig, (ax_bar, ax_circle) = plt.subplots(1, 2, figsize=(12, 4))
fig, (ax_bar, ax_circle) = plt.subplots(1, 2, width_ratios=(3, 1), figsize=(12, 4))
bars = ax_bar.bar(basis_states, [0] * len(basis_states), color="skyblue")
ax_bar.set_ylim(-1, 1)
ax_bar.set_title("Amplitudes (example)")