Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13480 > unrolled thread

Re: problems with plots aligning

Started byAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
First post2013-02-13 09:48 +0000
Last post2013-02-13 09:48 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re:  problems with plots aligning Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2013-02-13 09:48 +0000

#13480 — Re: problems with plots aligning

FromAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
Date2013-02-13 09:48 +0000
SubjectRe: problems with plots aligning
Message-ID<kffngh$7jt$1@smc.vnet.net>
Hi, Piotr,

There is a regular way using the ImagePadding, but I prefer doing it fast by hand.
Try this:

Manipulate[
 figA = Plot[Sin[x], {x, 0, 10}, Axes -> False, Frame -> True,
   ImageSize -> sz1];
 figB = Plot[Cos[x], {x, 0, 10}, Axes -> False, Frame -> True,
   AspectRatio -> 0.2, ImageSize -> sz2];
 figC = Plot[Sin[x], {x, 0, 5}, Axes -> False, Frame -> True,
   AspectRatio -> 0.2, ImageSize -> sz2];
 Column[{figA, Row[{figB, figC}]}],
 {sz1, 200, 500}, {sz2, 200, 500}
 ]

and play with the sliders until you get what you want. Then insert the corresponding values of the image sizes, sz1 and sz2, into the definitions of the images and evaluate without the Manipulate statement. For example, try this:

figA = Plot[Sin[x], {x, 0, 10}, Axes -> False, Frame -> True,
   ImageSize -> 434];
figB = Plot[Cos[x], {x, 0, 10}, Axes -> False, Frame -> True,
   AspectRatio -> 0.2, ImageSize -> 218];
figC = Plot[Sin[x], {x, 0, 5}, Axes -> False, Frame -> True,
   AspectRatio -> 0.2, ImageSize -> 218];
Column[{figA, Row[{figB, figC}]}]

Have fun, Alexei




Dear All,

I would like to ask if anybody know how to fix a following problem:

I need to plot 3 figures. The main one (figA) and two small figures under it (figB and figC). However, when I use GraphicsGrid command then the main figure is very small. Does anybody know how to align frames of this three figures?

figA = Plot[Sin[x], {x, 0, 10}, Axes -> False, Frame -> True];
figB = Plot[Cos[x], {x, 0, 10}, Axes -> False, Frame -> True, AspectRatio-> 0.2];
figC = Plot[Sin[x], {x, 0, 5}, Axes -> False, Frame -> True, AspectRatio -> 0.2];
GraphicsGrid[{{figA}, {figB}, {figC}}]

Regards,

Piotr


Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch@iee.lu



[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web