kernc / kernc/backtesting.py

Shape and size for scatter plot

Open
#1,261 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Enhancement description

Great library, I'd love to be able to set a shape and size other than the circle when adding a scatter plot indicator. An example is plotting news articles with different shapes and colors based on the sentiment and a size based off the number of articles.

Code sample
self.I(lambda x: x, self.data.News, scatter=True, marker='triangle', marker_size=15)
Additional info, images

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the self.I(..., scatter=True) entry point shown in the example and locate the scatter-plot rendering path. Determine where marker shape, size, and the existing scatter options are handled; done means the requested marker and size arguments work for scatter indicators and are covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.