Skip to content

Commit c3e0f8c

Browse files
committed
update tutorial & fix minor bug
1 parent f5fba14 commit c3e0f8c

File tree

2 files changed

+21
-80
lines changed

2 files changed

+21
-80
lines changed

dotplot/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ def __draw_dotplot(self, ax, cmap, vmin, vmax, size_factor, *, gs_cbar: mpl.grid
206206
sct.append(_sct)
207207
self.__draw_legend(gs_sizes, sct, size_factor, color=dot_color, title=mask_groups)
208208
else:
209-
vmax = np.max(self.color_data.values.flatten()) if vmax is None else vmax
209+
if self.color_data is not None:
210+
vmax = np.max(self.color_data.values.flatten()) if vmax is None else vmax
210211
sct = ax.scatter(X, Y, c=color_data_array_or_str, s=resized_size_data_array,
211212
edgecolors='none', linewidths=0, vmin=vmin, vmax=vmax, cmap=cmap, **kws)
212213
if self.color_data is not None:

tutorial/tutorials.ipynb

Lines changed: 19 additions & 79 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)