Skip to content

Commit 3bdf6fd

Browse files
committed
Move gamut toggle button
1 parent b6334e4 commit 3bdf6fd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

pycam02ucs/cm/viscm.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,11 @@ def _vis_axes():
176176
'image1-cb': grid[3:6, 3],
177177
'image2': grid[6:9, 2],
178178
'image2-cb': grid[6:9, 3],
179-
180-
'gamut-checkbox': grid[9, 2],
181179
}
182180

183181
axes = {key: plt.subplot(value) for (key, value) in axes.items()}
184182
axes['gamut'] = plt.subplot(grid[6:, :2], projection='3d')
183+
axes['gamut-toggle'] = plt.axes([0.01, 0.01, 0.08, 0.025])
185184

186185
return axes
187186

@@ -290,8 +289,7 @@ def anom(ax, mat, name):
290289
ax.add_collection3d(self.gamut_patch)
291290
self.gamut_patch.set_visible(show_gamut)
292291

293-
self.gamut_patch_toggle = Button(axes['gamut-checkbox'],
294-
"<- Toggle gamut display")
292+
self.gamut_patch_toggle = Button(axes['gamut-toggle'], "Toggle gamut")
295293
def toggle(*args):
296294
self.gamut_patch.set_visible(not self.gamut_patch.get_visible())
297295
plt.draw()

0 commit comments

Comments
 (0)