Skip to content

Remove PlotFrames#692

Merged
aaronayres35 merged 6 commits into
masterfrom
deprecate-PlotFrames
Apr 20, 2021
Merged

Remove PlotFrames#692
aaronayres35 merged 6 commits into
masterfrom
deprecate-PlotFrames

Conversation

@aaronayres35
Copy link
Copy Markdown
Contributor

@aaronayres35 aaronayres35 commented Apr 19, 2021

Part of #580

This PR adds removes the various plot frame classes from the code base.

Unfortunately, since these objects are exposed in chaco.api now just importing from chaco.api will raise a deprecation warning...Perhaps these warnings should be raised when instantiating a plot frame object?

Edit: I moved the warnings to occur inside the __init__ methods and updated the tests.

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.

I would just remove them outright. I don't think it's worth deprecating them now and waiting for another rleease to remove them. I'll check if there are any users of the plot frame classes.

@rahulporuri
Copy link
Copy Markdown
Contributor

I think it's safe to remove them outright. I only found one meaningful/new-ish use of CrossPlotFrame internally when I search on GitHub.

@corranwebster
Copy link
Copy Markdown
Contributor

They can be removed outright I think - they have been superseded by the various plot layout classes.

Comment thread docs/chaco_layout.txt
above a single plot area, which is an OverlayPlotContainer. (The GeoTrack class
is actually a subclass of VPlotContainer that automatically create GeoAxis objects
as GeoPlots are added to the plot area.)

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.

There are other .txt files like this in the docs directory but they aren't actually a part of the documentation

@aaronayres35 aaronayres35 changed the title Officially deprecate PlotFrames Remove PlotFrames Apr 20, 2021
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 4ba522d into master Apr 20, 2021
@aaronayres35 aaronayres35 deleted the deprecate-PlotFrames branch April 20, 2021 15:29
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.

3 participants