Skip to content

Commit

Permalink
Updated viewPoint handling in WordVec.wl
Browse files Browse the repository at this point in the history
  • Loading branch information
micheledinelli committed May 12, 2024
1 parent 55e2b7a commit 5988e65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WordVec.wl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ vecs = Normal@NetExtract[net, "Weights"];
word2vec = AssociationThread[words -> vecs];
fontSize = 12;
randomSeed = 83;
viewPoint = {1,1,1}
viewPoint = {1.3, -2.4, 2}


Main[] := createDemo[]
Expand Down Expand Up @@ -266,8 +266,8 @@ plotEmbeddings[words_, OptionsPattern[{ExportMode -> False}]] := Module[
Axes -> True, (* Show axes *)
AxesLabel -> {"PC1", "PC2", "PC3"}, (* Label axes *)
AxesStyle -> Directive[Black, Bold], (* Style the axes *)
ViewPoint -> Dynamic[viewPoint],
ImageSize -> Large (* Set image size *)
ImageSize -> Large, (* Set image size *)
ViewPoint -> Dynamic[viewPoint] (* Dynamically adjust the view point *)
];

If[exportMode,
Expand Down

0 comments on commit 5988e65

Please # to comment.