Skip to content

Fix plt.plot() fmt keyword argument in plot_history#5

Merged
wdm0006 merged 1 commit intowdm0006:masterfrom
craftsoldier:fix-plot-history-fmt
Dec 12, 2025
Merged

Fix plt.plot() fmt keyword argument in plot_history#5
wdm0006 merged 1 commit intowdm0006:masterfrom
craftsoldier:fix-plot-history-fmt

Conversation

@craftsoldier
Copy link
Copy Markdown
Contributor

Summary

  • Fixed plot_history() method in BankRoll class that was passing fmt="bo-" as a keyword argument to plt.plot()
  • matplotlib.pyplot.plot() expects the format string as a positional argument, not a keyword argument
  • This was causing AttributeError: Line2D.set() got an unexpected keyword argument 'fmt'

Test plan

  • Ran keeks_example.py with the fix - plot displays correctly

🤖 Generated with Claude Code

The format string should be passed as a positional argument, not as fmt=.
matplotlib.pyplot.plot() does not accept fmt as a keyword argument.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@wdm0006 wdm0006 merged commit 0b89c59 into wdm0006:master Dec 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants