Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 14 additions & 18 deletions proplot/subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,24 +295,20 @@ def _iterator(*args, **kwargs):
# Mixed
raise AttributeError(f'Found mixed types for attribute {attr!r}.')

# TODO: No more putting panels, legends, colorbars on the SubplotSpec.
# Put them in the margin, increase default space, and lock them to
# subplot bounds with locators, borrowing from axes_grid1 toolkit
# TODO: Consider adding Github issue, would be major API change.
# def colorbar(self, loc=None):
# """Draws a colorbar that spans axes in the selected range."""
# for ax in self:
# pass
#
# def legend(self, loc=None):
# """Draws a legend that spans axes in the selected range."""
# for ax in self:
# pass
#
# def text(self, loc=None):
# """Draws text that spans axes in the selected range."""
# for ax in self:
# pass
def colorbar(self, loc=None):
"""Draws a colorbar that spans axes in the selected range."""
for ax in self:
pass

def legend(self, loc=None):
"""Draws a legend that spans axes in the selected range."""
for ax in self:
pass

def text(self, loc=None):
"""Draws text that spans axes in the selected range."""
for ax in self:
pass

#-----------------------------------------------------------------------------#
# Gridspec classes
Expand Down