Feature Request: Line Colors for Cartesian Plot Lines
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- data-visualization
Research direction
Start by inspecting the Cartesian component and its current line-rendering API, using the issue's Fitbit example to understand the requested behavior. Determine how a line color can depend on its y-axis value, then verify that the Cartesian plot supports the requested color customization and that existing plotting behavior remains intact.
Written by the indexing model from the issue text.
Description
As far as I can tell there's no parameter for changing the line color with cartesian. Would like to change it depending on y-axis value.
Here's my current code for the fitbit api project.
my_plane = Cartesian(
x=30, # x position for the plane
y=60, # y plane position
width=DISPLAY_WIDTH-20, # display width
height=DISPLAY_HEIGHT-80, # display height
xrange=(0, 14), # x range
yrange=(lowest_y[0], highest_y[0]), # y range
axes_color=bar_color(highest_y[0]),
pointer_color=TEXT_PINK,
axes_stroke=4,
major_tick_stroke=2,
subticks=True,
)
Only thing I can currently colorize is the axes depending on value.
- Dominant language
- Python
- Stars
- 13
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from adafruit/Adafruit_CircuitPython_DisplayIO_Layout
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
adafruit/Adafruit_CircuitPython_DisplayIO_Layout#103 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
adafruit/Adafruit_CircuitPython_DisplayIO_Layout#63 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
adafruit/Adafruit_CircuitPython_DisplayIO_Layout#49 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
adafruit/Adafruit_CircuitPython_DisplayIO_Layout#19 · 24 comments ·
All issues in adafruit/Adafruit_CircuitPython_DisplayIO_Layout
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100