We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e440ee7 commit 694f556Copy full SHA for 694f556
src/data_morph/data/loader.py
@@ -164,10 +164,17 @@ def plot_available_datasets(cls) -> Axes:
164
dataset += ' logo'
165
166
ax.scatter(points.df.x, points.df.y, s=4, color='black')
167
+
168
+ # tight plot bounds for the grid of datasets in the docs
169
+ bounds = points.data_bounds.clone()
170
+ x_offset, y_offset = (offset * 0.1 for offset in bounds.range)
171
+ bounds.adjust_bounds(x=x_offset, y=y_offset)
172
+ bounds.align_aspect_ratio()
173
174
ax.set(
175
title=f'{dataset} ({points.df.shape[0]:,d} points)',
- xlim=points.plot_bounds.x_bounds,
- ylim=points.plot_bounds.y_bounds,
176
+ xlim=bounds.x_bounds,
177
+ ylim=bounds.y_bounds,
178
xlabel='',
179
ylabel='',
180
)
0 commit comments