We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4cdeef4 + 2955e08 commit e44e514Copy full SHA for e44e514
glue_plotly/common/dotplot.py
@@ -13,7 +13,7 @@ def dot_radius(viewer, layer_state):
13
diam_world = min([edges[i + 1] - edges[i] for i in range(len(edges) - 1)])
14
width, height = dimensions(viewer)
15
diam = diam_world * width / abs(viewer_state.x_max - viewer_state.x_min)
16
- if viewer_state.y_min is not None and viewer_state.y_max is not None:
+ if viewer_state.y_min is not None and viewer_state.y_max is not None and viewer_state.y_min != viewer_state.y_max:
17
max_diam_world_v = 1
18
diam_pixel_v = max_diam_world_v * height / abs(viewer_state.y_max - viewer_state.y_min)
19
diam = min(diam_pixel_v, diam)
0 commit comments