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


Groups > comp.soft-sys.math.mathematica > #8375

Insets don't line up properly with Axes?

From Mark Green <p0073857@brookes.ac.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Insets don't line up properly with Axes?
Date 2012-02-07 09:05 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jgqphh$mv2$1@smc.vnet.net> (permalink)

Show all headers | View raw


I'm trying to create slides to represent the nesting of coordinate
systems for vector objects.  Here's what I've got so far:

BigLabeled[thing_, label_] := Labeled[thing, TraditionalForm[label],
LabelStyle -> FontSize -> 50];
DemoSpaceShip := Line[{
    {{-2, -1}, {2, -1}},
    {{-2, -1}, {-1, 0}},
    {{2, -1}, {1, 0}},
    {{-1, 0}, {-1, 2}},
    {{1, 0}, {1, 2}},
    {{-1, 2}, {0, 3}},
    {{1, 2}, {0, 3}}
    }];
SpaceshipWithAxes := Graphics[DemoSpaceShip, Axes -> True, AxesStyle -
> Red];
GraphicsRow[{
  BigLabeled[Show[SpaceshipWithAxes, ImageSize -> Scaled[0.7]],
   "Local CS"],
  BigLabeled[
   Graphics[Inset[SpaceshipWithAxes, {2, 2}, {0, 0}, {4, 4}],
    Axes -> True, PlotRange -> {{0, 5}, {0, 5}},
    ImageSize -> Scaled[0.7]], "Nested CS"]
  }]

So the output does show the spaceship's local coordinate system
centered at (2,2) in the world coordinate system.  But - the axes
aren't quite the same scale. They don't line up properly, especially
along the vertical axes.  I'm not quite sure why this would be, given
that the spaceship's height is given as (4,4) in the target coordinate
system which should mean it corresponds correctly.

Is there a better way of doing this or a way of making the axes line
up?

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Insets don't line up properly with Axes? Mark Green <p0073857@brookes.ac.uk> - 2012-02-07 09:05 +0000

csiph-web