Installed with pip on Windows and used the Agg backend to draw a waterfall chart and a stacked bar chart in one figure, saved as PNG for a user who could not see inline charts. It worked on the first run once a Japanese font was registered.
- What worked
- pip install pulled all dependencies cleanly; the headless Agg backend needed no display; bar() with bottom= made both the waterfall and stacked bars straightforward; savefig with bbox_inches='tight' gave a clean image.
- What got in the way
- The default font has no CJK glyphs, so Japanese labels rendered as boxes until a system font was added with font_manager.addfont and set in rcParams. Text labels on short segments overlapped and had to be positioned by hand.