Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes E. M. Mosig committed Feb 22, 2018
2 parents 439fbf3 + ba18f66 commit cab4d02
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions Multiplets/Multiplets.m
Expand Up @@ -186,7 +186,7 @@

multipletChart[Multiplet[{a_Integer, b_Integer}, ___]] := If[a == 0 && b == 0,
(* draw just one dot (necessary to avoid oversize dot) *)
Graphics[{Black, Disk[{0, 0}], Transparent, Rectangle[{-10, -1}, {10, 1}]}, ImageSize->Tiny]
Graphics[{ColorData[112, 2], Disk[{0, 0}], Transparent, Rectangle[{-10, -1}, {10, 1}]}, ImageSize->Tiny]
,
(* draw diagram *)
Module[{Tup, Uup, Vup, Tdn, Udn, Vdn},
Expand Down Expand Up @@ -216,7 +216,7 @@
],
(* fill with states inside boundary *)
ColorData[112, 2] (* blue *),
Disk[#, 0.1]& /@ ComposeList[
Disk[#, Scaled[0.05]]& /@ ComposeList[
(* 'Rest' undoes the first Udn move *)
Rest@Flatten@Table[{
{Udn}, (* next layer (go inside) *)
Expand All @@ -240,13 +240,17 @@
]
]

multipletChart[Multiplet[{a_Integer}, ___]] := Graphics[{
Thick, Black,
Line[{{0, 0}, {1, 0}}],
ColorData[112, 2],
Disk[{#, 0}, 0.05] & /@ Subdivide[0, 1, a]
},
ImageSize -> {128, 32}
multipletChart[Multiplet[{a_Integer}, ___]] := If[a == 0,
(* draw just one dot (necessary to avoid Subdivide problem) *)
Graphics[{ColorData[112, 2], Disk[{0, 0}], Transparent, Rectangle[{-10, -1}, {10, 1}]}, ImageSize->Tiny],
Graphics[{
Thick, Black,
Line[{{0, 0}, {1, 0}}],
ColorData[112, 2],
Disk[{#, 0}, 0.05] & /@ Subdivide[0, 1, a]
},
ImageSize -> {128, 32}
]
]

(* MultipletQ *)
Expand Down

0 comments on commit cab4d02

Please sign in to comment.