Skip to content

Restore IPlottable#1887

Merged
swharden merged 3 commits intomainfrom
1868-restore-IPlottable
Jun 9, 2022
Merged

Restore IPlottable#1887
swharden merged 3 commits intomainfrom
1868-restore-IPlottable

Conversation

@swharden
Copy link
Member

@swharden swharden commented Jun 9, 2022

Collapsed IHasAxisLimits, IHasDataValidation, and IHasLegendItems back into IPlottable, reverting #1881.

The intent of the original change was to promote interface segregation (e.g., colorbar has no axis limits).

However, the purpose of this reversion is to maintain consistent behavior for users who implemented their own plottables implementing IPlottable and may not be aware of these new interfaces.

Resolves #1868

swharden added 3 commits June 9, 2022 16:07
This commit moves GetAxisLimits, GetLegendItems, and ValidateData back into IPlottable, reversing work done in #1881.

Having separate interfaces such as IHasAxisLimits made sense (e.g., colorbar has no axis limits), but segregating this functionality means users who created their own plottables that previously just implemented IPlottable may not realize they need to implement these new interfaces, resulting in silent failure (unexpected change in behavior). Resolves #1868
@swharden swharden enabled auto-merge June 9, 2022 20:15
@swharden swharden merged commit 084f998 into main Jun 9, 2022
@swharden swharden deleted the 1868-restore-IPlottable branch June 9, 2022 20:25
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.

IHasAxisLimits, IHasDataValidation, and IHasLegendItems

1 participant