Skip to content

Use requires_redraw when possible#626

Merged
aaronayres35 merged 4 commits into
masterfrom
use-requires_redraw
Apr 13, 2021
Merged

Use requires_redraw when possible#626
aaronayres35 merged 4 commits into
masterfrom
use-requires_redraw

Conversation

@aaronayres35
Copy link
Copy Markdown
Contributor

part of #595

This PR uses the new requires_redraw metadata on a few PlotComponent subclasses.

This covers the simplest cases for where requires_redraw can be used. There are other scenarios where it may be useful but would require doing something a bit differently. I will leave those decisions / changes for a later PR

Comment thread chaco/lineplot.py
Comment on lines -436 to -439
def _alpha_changed(self):
self.invalidate_draw()
self.request_redraw()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note alpha has required_redraw=True on he base class BaseXYPlot from #585

See comment: #585 (comment)

@rahulporuri rahulporuri self-requested a review April 9, 2021 11:16
Copy link
Copy Markdown
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@aaronayres35 aaronayres35 merged commit 510c60f into master Apr 13, 2021
@rahulporuri rahulporuri deleted the use-requires_redraw branch April 19, 2021 12:51
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