Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4828
| From | "Christopher O. Young" <cy56@comcast.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Alignment problem with Row[ ] |
| Date | 2011-09-08 09:28 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j4a1r6$429$1@smc.vnet.net> (permalink) |
I can't get the top of my difference table aligned with the top of the graph
the way I'd like to. I want to have the graph on the left and the difference
table starting at the top right corner of the graph. That way, I can like up
the differences with the steps in the graph.
Do I have to use Grid or GraphicsGrid to get this to work. Row[ ] seems to
be totally ignoring the Alignment -> {Left, Top} option here.
Thanks for any help.
Chris Young
cy56@comcast.net
DynamicModule[
{
f = x,
a = 0,
b = 6
},
Column[{ (* The input field for the function,
and fields for the range *)
InputField[Dynamic[f]],
InputField[Dynamic[a], Number],
InputField[Dynamic[b], Number],
Row[{ (* Graph on left, difference table on right *)
Column[{
Dynamic[
Plot[
f, {x, a, b},
PlotRange -> {{a, b}, {(f /. x -> a), (f /. x -> b)}},
AspectRatio -> Abs[(f /. x -> b) - (f /. x -> a)]/Abs [b - a],
GridLines -> {Range[a, b],
Range[f /. x -> a, f /. x -> b,
Sign[(f /. x -> b) - (f /. x -> a)]]},
GridLinesStyle -> Directive[LightGray, Dashed],
ImageSize -> Medium
] (* Plot *)
]
}], (* Column *)
Dynamic[
Row[ (* The difference table *)
Table[
Column[
Differences[f /. x -> Range[a, b], k],
ItemSize -> {3, 3}
],
{k, 0, Exponent[f , x] + 1}
],
Alignment -> Center
]
]
},
ImageSize -> {800, 400},
Alignment -> {Left, Top}
] (* Row *)
}] (* Column *)
]
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Alignment problem with Row[ ] "Christopher O. Young" <cy56@comcast.net> - 2011-09-08 09:28 +0000
csiph-web