MathGroup Archive 2005

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

Search the Archive

Re: rotate frametick labels

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58958] Re: [mg58920] rotate frametick labels
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 25 Jul 2005 01:12:12 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Carsten,

How about something like this.

Show[Graphics[
      {Rectangle[{0, 0}, {2, 1},
          Show[Graphics[RasterArray[{{Hue[0.5], Hue[1]}}]],
            AspectRatio -> Automatic, DisplayFunction -> Identity]],
        Text["some text", {0.5, -0.05}, {0, 0.7}, {0, 1}],
        Text["some more text", {1.5, -0.05}, {0, 0.7}, {0, 1}],
        Text["Text Labeled Raster Array", {1, 1.1}]
        }],
    PlotRange -> {{-0.1, 2.1}, {-0.5, 1.3}},
    AspectRatio -> Automatic,
    Background -> Linen,
    ImageSize -> 450
    ];

The labels might be better if they were at a slant, but then it takes some
finicky work to get them positioned correctly.

This kind of labeling isn't too great because it takes up a lot of space and
there might be a better way if we knew what the labeling actually was.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/


From: Carsten Siegmund [mailto:carsten.siegmund at em.uni-karlsruhe.de]
To: mathgroup at smc.vnet.net


Hi!

I like to plot a raster array but for its elements it does not make
sense to be described by numbers. Therefore I've labeled the frameticks
manually and tried to rotate the labels to avoid overwriting for large
arrays.

e.g.:

Show[Graphics[RasterArray[{{Hue[0.5], Hue[1]}}]],
   Frame -> True,
   FrameTicks -> {{{0.5, StyleForm["some text",
                                   FontVariations->{RotationAngle->90}]},
                   {1.5, StyleForm["some more text",
                                   FontVariations->{RotationAngle->90}]},
                  None,None,None}
]

I don't get any error messages but the plot looks the same as without
the use of StyleForm[...]. Any suggestions?

Thanks,
Carsten

[Mathematica 5.0, Windows XP Prof.]



  • Prev by Date: Re: Re: simple question about random
  • Next by Date: Re: Re: Re: Mathematica 5.2: The 64-bit and multicore release
  • Previous by thread: rotate frametick labels
  • Next by thread: Re: rotate frametick labels