@@ -139,15 +139,15 @@ def markdown_display(df: pd.DataFrame) -> None:
139
139
140
140
141
141
class DataFramePlot :
142
- """Class to plot a data frame ."""
142
+ """Class to plot a dataframe ."""
143
143
144
144
def plot_2dataframes (
145
145
self ,
146
146
args_plot : PlotAPI ,
147
147
df_1 : pd .DataFrame ,
148
148
df_2 : Optional [pd .DataFrame ] = None ,
149
149
) -> None :
150
- """Plot two data frames .
150
+ """Plot two dataframes .
151
151
152
152
!!! info "About the plot"
153
153
@@ -159,14 +159,14 @@ def plot_2dataframes(
159
159
160
160
Currently, the `line_dash_map` is not working, and the dash is not
161
161
plotted. This is likely due to the columns not being labeled in the
162
- data frame .
162
+ dataframe .
163
163
164
164
Args:
165
165
args_plot (PlotAPI): PlotAPI object for the settings of the plot.
166
- df_1 (pd.DataFrame): First data frame to plot, which will generate
166
+ df_1 (pd.DataFrame): First dataframe to plot, which will generate
167
167
a fit plot with residual plot. The ratio is 70% to 20% with
168
168
10% space in between.
169
- df_2 (Optional[pd.DataFrame], optional): Second optional data frame to
169
+ df_2 (Optional[pd.DataFrame], optional): Second optional dataframe to
170
170
plot for comparison. In this case, the ratio between the first
171
171
and second plot will be the same. Defaults to None.
172
172
"""
@@ -186,7 +186,7 @@ def plot_2dataframes(
186
186
)
187
187
188
188
def _plot_single_dataframe (self , args_plot : PlotAPI , df : pd .DataFrame ) -> Figure :
189
- """Plot a single data frame with residuals."""
189
+ """Plot a single dataframe with residuals."""
190
190
fig = make_subplots (
191
191
rows = 2 , cols = 1 , shared_xaxes = True , shared_yaxes = True , vertical_spacing = 0.05
192
192
)
@@ -205,7 +205,7 @@ def _plot_single_dataframe(self, args_plot: PlotAPI, df: pd.DataFrame) -> Figure
205
205
def _plot_two_dataframes (
206
206
self , args_plot : PlotAPI , df_1 : pd .DataFrame , df_2 : pd .DataFrame
207
207
) -> Figure :
208
- """Plot two data frames for comparison."""
208
+ """Plot two dataframes for comparison."""
209
209
fig = make_subplots (
210
210
rows = 2 , cols = 1 , shared_xaxes = True , shared_yaxes = True , vertical_spacing = 0.05
211
211
)
@@ -293,11 +293,11 @@ def _update_plot_layout(
293
293
fig .update_yaxes (title_text = yaxis_title , row = 2 , col = 1 )
294
294
295
295
def plot_dataframe (self , args_plot : PlotAPI , df : pd .DataFrame ) -> None :
296
- """Plot the data frame according to the PlotAPI arguments.
296
+ """Plot the dataframe according to the PlotAPI arguments.
297
297
298
298
Args:
299
299
args_plot (PlotAPI): PlotAPI object for the settings of the plot.
300
- df (pd.DataFrame): Data frame to plot.
300
+ df (pd.DataFrame): Dataframe to plot.
301
301
"""
302
302
fig = px .line (df , x = args_plot .x , y = args_plot .y )
303
303
height = args_plot .size [1 ][0 ]
@@ -324,11 +324,11 @@ def plot_dataframe(self, args_plot: PlotAPI, df: pd.DataFrame) -> None:
324
324
)
325
325
326
326
def plot_global_fit (self , args_plot : PlotAPI , df : pd .DataFrame ) -> None :
327
- """Plot the global data frame according to the PlotAPI arguments.
327
+ """Plot the global dataframe according to the PlotAPI arguments.
328
328
329
329
Args:
330
330
args_plot (PlotAPI): PlotAPI object for the settings of the plot.
331
- df (pd.DataFrame): Data frame to plot.
331
+ df (pd.DataFrame): Dataframe to plot.
332
332
"""
333
333
num_fits = df .columns .str .startswith (ColumnNamesAPI ().fit ).sum ()
334
334
for i in range (1 , num_fits + 1 ):
@@ -354,7 +354,7 @@ def plot_metric(
354
354
355
355
Args:
356
356
args_plot (PlotAPI): PlotAPI object for the settings of the plot.
357
- df_metric (pd.DataFrame): Metric data frame to plot.
357
+ df_metric (pd.DataFrame): Metric dataframe to plot.
358
358
bar_criteria (Union[str, List[str]]): Criteria to plot as bars.
359
359
line_criteria (Union[str, List[str]]): Criteria to plot as lines.
360
360
"""
0 commit comments