Message Boards Message Boards

Multiple labels within Manipulate?

Posted 10 years ago

I am using a nested frame within Manipulate to display a computed field + a graphic. Is it possible to use distinctly different labels for the two outputs (number and graphic)?

Manipulate[
 Column[{
   Cos[n + Log[n]],
   Graphics3D[Cylinder[{{0, 0, 0}, {0, 0, n}}, 1]]
   }],
 {n, 2, 20}, FrameLabel -> Style["Volume"]]

enter image description here

POSTED BY: Kaushik Mallick
3 Replies
Posted 10 years ago

Thanks for the suggestions. The above solution works. But I was hoping there would be way to apply multiple Framelabels in multiple frames. Is it even possible?

POSTED BY: Kaushik Mallick
Posted 10 years ago

Another variant:

Manipulate[
  Grid[{
    {
      N@Cos[n + Log[n]],
      Graphics3D[Cylinder[{{0, 0, 0}, {0, 0, n}}, 1]]
    },
      Text@Style[#, "Verdana"] & /@ {"Number", "Volume"}
    }, Frame -> All, Spacings -> {Automatic, 2}
   ],
  {n, 2, 20}
]

enter image description here

POSTED BY: Hans Milton

Something like this?

Manipulate[Column[{StringJoin["Value = ", ToString[Cos[n + Log[n]] // N]], Graphics3D[Cylinder[{{0, 0, 0}, {0, 0, n}}, 1]]}], {{n, 3}, 2, 20},
FrameLabel -> Style["Volume"]]

enter image description here

Cheers,

M.

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract