Note: This question is about AceFEM package for finite element analysis in Mathematica.
I would like to improve styling of color legend produced by default use of SMTShowMesh
. The main problem is that size of colorful rectangles cannot be changed and this looks bad when the main picture of the mesh is either very large or very small. Furthermore, text on the legend starts to overlap if FontSize
is increased enough.
(* This is a minimal example to setup mesh of 1 hexaxedral element. *)
<< AceFEM`;
SMTInputData[];
SMTAddDomain["A", "OL:SED3H1DFHYH1NeoHooke", {}];
SMTAddElement["A", {{0, 0, 0}, {1, 0, 0}, {1, 1, 0}, {0, 1, 0}, {0, 0, 1},{1, 0,1}, {1, 1, 1}, {0, 1, 1}}];
SMTAnalysis["NodeReordering" -> False];
(* Field values in nodes are randomly chosen. *)
field = RandomReal[{-1, 1}, SMTNoNodes]
Display mesh with chosen FontSize
. Text on legend is overlapped. How to fix this?
SMTShowMesh["Field" -> field, "Mesh" -> Gray, "Contour" -> True,
ImageSize -> 300, Axes -> True, LabelStyle -> 20,
"TextStyle" -> {FontSize -> 20, FontFamily -> "Arial"}]