@@ -2465,11 +2465,11 @@ def exploded_rainbow_plot(polyhedra, *,
2465
2465
- ``explosion_factor`` -- (default: 1) a nonnegative number; translate polyhedra by this
2466
2466
factor of the distance from ``center`` to their center
2467
2467
2468
- - ``sticky_vertices`` -- (default: ``False``) whether to draw line segments between shared
2469
- vertices of the given polyhedra
2468
+ - ``sticky_vertices`` -- (default: ``False``) boolean or dict. Whether to draw line segments between shared
2469
+ vertices of the given polyhedra. A dict gives options for :func:`sage.plot.line`.
2470
2470
2471
- - ``sticky_center`` -- (default: ``True``) whether to draw line segments between ``center``
2472
- and the vertices of the given polyhedra
2471
+ - ``sticky_center`` -- (default: ``True``) boolean or dict. Whether to draw line segments between ``center``
2472
+ and the vertices of the given polyhedra. A dict gives options for :func:`sage.plot.line`.
2473
2473
2474
2474
- other keyword arguments are passed on to :meth:`~sage.geometry.polyhedron.base.Polyhedron_base.plot`.
2475
2475
@@ -2512,15 +2512,19 @@ def exploded_rainbow_plot(polyhedra, *,
2512
2512
vertex_translations_dict [v ] = vertex_translations_dict .get (v , [])
2513
2513
vertex_translations_dict [v ].append (v + t )
2514
2514
if sticky_vertices or sticky_center :
2515
+ if sticky_vertices is True :
2516
+ sticky_vertices = dict (color = 'gray' )
2517
+ if sticky_center is True :
2518
+ sticky_center = dict (color = 'gray' )
2515
2519
for vertex , vertex_translations in vertex_translations_dict .items ():
2516
2520
if vertex == center :
2517
2521
if sticky_center :
2518
2522
for vt in vertex_translations :
2519
- g += line ((center , vt ), color = 'gray' )
2523
+ g += line ((center , vt ), ** sticky_center )
2520
2524
else :
2521
2525
if sticky_vertices :
2522
2526
for vt1 , vt2 in itertools .combinations (vertex_translations , 2 ):
2523
- g += line ((vt1 , vt2 ), color = 'gray' )
2527
+ g += line ((vt1 , vt2 ), ** sticky_vertices )
2524
2528
2525
2529
if point is None :
2526
2530
point = dict (size = 1.5 )
0 commit comments