diff --git a/ertviz/controllers/observation_response_controller.py b/ertviz/controllers/observation_response_controller.py index 37116687..37380a3e 100644 --- a/ertviz/controllers/observation_response_controller.py +++ b/ertviz/controllers/observation_response_controller.py @@ -18,7 +18,6 @@ def _get_univariate_misfits_boxplots(misfits_df, color): misfits_data = list() for misfits in misfits_df.T: plot = BoxPlotModel( - x_axis=[int(x_axis[misfits])], y_axis=misfits_df.T[misfits].values, name=f"Misfits@{int(x_axis.loc[misfits])}", color=color, diff --git a/ertviz/models/plot_model.py b/ertviz/models/plot_model.py index 975a7f3c..efcee0e8 100644 --- a/ertviz/models/plot_model.py +++ b/ertviz/models/plot_model.py @@ -6,7 +6,6 @@ class BoxPlotModel: def __init__(self, **kwargs): self.selected = True - self._x_axis = kwargs["x_axis"] self._y_axis = kwargs["y_axis"] self._name = kwargs["name"] self._color = kwargs["color"] @@ -14,8 +13,6 @@ def __init__(self, **kwargs): @property def repr(self): repr_dict = dict( - # x=self._x_axis, this won't work :/ - # need something else to get axis right if required y=self._y_axis, name=self.display_name, boxpoints="all", diff --git a/tests/plots/test_controller.py b/tests/plots/test_controller.py index 85094993..13886f3d 100644 --- a/tests/plots/test_controller.py +++ b/tests/plots/test_controller.py @@ -152,7 +152,6 @@ def test_boxplot_representation(): data_df = pd.DataFrame(data=data, index=range(10)) plot = BoxPlotModel( - x_axis=[5], y_axis=data_df.values, name="Boxplot@Location5", color=assets.ERTSTYLE["ensemble-selector"]["color_wheel"][0],