Skip to content

Commit d21a61a

Browse files
committed
Remove SubplotGrid legend/colorbar (in future will call fig methods)
1 parent b01b86d commit d21a61a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

proplot/gridspec.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,14 +1436,12 @@ def _grid_command(self, *args, **kwargs):
14361436
'twinx',
14371437
'twiny',
14381438
'text',
1439-
'legend',
1440-
'colorbar',
14411439
):
14421440
if _name in ('altx', 'alty', 'twinx', 'twiny', 'dualx', 'dualy'):
14431441
_command = f'proplot.axes.CartesianAxes.{_name}'
14441442
else:
14451443
_command = f'proplot.axes.Axes.{_name}'
1446-
_returns_grid = _name not in ('text', 'legend', 'colorbar')
1444+
_returns_grid = _name not in ('text',)
14471445
_add_grid_command(_name, _command, returns_grid=_returns_grid)
14481446

14491447

0 commit comments

Comments
 (0)