When displaying a plot via Jupyter Notebook in VSC (newest version, 1.106.3) the graph is getting rendered in the right upper corner, and the labels in the lower left corner. I already restarted VSC and created a new venv. Anybody has an idea how to fix this? I tried multiple approaches in Python 3.12 and 3.13.
Currently in Python 3.12.0 with Matplotlib 3.10.7
Output image 1:

counts = df['flower_class'].value_counts()
plt.figure(figsize=(12,6))
plt.bar(counts.index, counts.values)
plt.xlabel('Class')
plt.ylabel('Aantal voorbeelden')
plt.title('Verdeling van classes')
plt.xticks(rotation=45, ha='right')
plt.tight_layout()
plt.show()
Output image 2:

counts = df['flower_class'].value_counts()
plt.figure(figsize=(12,6))
counts.plot(kind='bar')
plt.xlabel('Class')
plt.ylabel('Aantal voorbeelden')
plt.title('Verdeling van classes')
plt.show()