MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: centering output of Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112022] Re: centering output of Manipulate
  • From: "David Park" <djmpark at comcast.net>
  • Date: Wed, 25 Aug 2010 06:04:01 -0400 (EDT)

You could use a combination of a Pane and adjusting the ImageSize of the
plot.

For a regular notebook:

CellPrint[ExpressionCell[
  Pane[Manipulate[
    Plot[a/x, {x, 0.1, 1}, PlotRange -> {1, 10}], {a, 1, 2}], 350],
  TextAlignment -> Center]] 

For printout:

CellPrint[ExpressionCell[
  Pane[Manipulate[Plot[a/x, {x, 0.1, 1}, PlotRange -> {1, 10},
     ImageSize -> 200], {a, 1, 2}], 260],
  TextAlignment -> Center]] 


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  



From: Alexei Boulbitch [mailto:alexei.boulbitch at iee.lu] 


Dear community,
I sometimes try to center the output of the operator Manipulate on the 
notebook page. Previously I did it using Menu/Format/TextAlignment/Center.
Today David Park posted a nice function suitable for these purposes. 
However, after the centering I can see only the left half of the output 
panel. In contrast,
usual (e.g. not wrapped by the Manipulate) graphics always admits 
centering.
This is an example:
CellPrint[ExpressionCell[
  Manipulate[Plot[a/x, {x, 0.1, 1}, PlotRange -> {1, 10}], {a, 1, 2}],
  TextAlignment -> Center]
             ]

Do you know the way to center the interactive graphics in general and 
Manipulate in particular in such a way that it
1) is visible completely centered within the cell on the screen
2) is visible completely centered horizontally on the page when printed 
(evidently not interactive in this case)
3) is visible completely centered horizontally on the page in the pdf 
file version (evidently not interactive also in this case)
??

Best, Alexei

-- 
Alexei Boulbitch, Dr. habil.
Senior Scientist
Material Development

IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 CONTERN
Luxembourg

Tel: +352 2454 2566
Fax: +352 2454 3566
Mobile: +49 (0) 151 52 40 66 44

e-mail: alexei.boulbitch at iee.lu

www.iee.lu

--

This e-mail may contain trade secrets or privileged, undisclosed or
otherwise confidential information. If you are not the intended
recipient and have received this e-mail in error, you are hereby
notified that any review, copying or distribution of it is strictly
prohibited. Please inform us immediately and destroy the original
transmittal from your system. Thank you for your co-operation.



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5391 (20100823) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






  • Prev by Date: Dynamic Text in Manipulate.
  • Next by Date: Re: How to copy-paste Mathematica code into a message
  • Previous by thread: centering output of Manipulate
  • Next by thread: scienceworld.wolfram.com