MathGroup Archive 2006

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

Search the Archive

RE: Controlling axes labels in 3D plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68930] RE: [mg68898] Controlling axes labels in 3D plots
  • From: Luiz Melo <luiz.melo at polymtl.ca>
  • Date: Wed, 23 Aug 2006 07:16:03 -0400 (EDT)
  • References: <NDBBJGNHKLMPLILOIPPOCEPJFBAA.djmp@earthlink.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi David, consider the example:

ListPlot3D[Table[y Sin[y /x], {y, -1, 1, .05}, {x, Pi/12, Pi/3, Pi/60}],
    MeshRange -> {{Pi/12, Pi/3}, {-1, 1}},
    PlotRange -> {{Pi/12, Pi/3}, {-1, 1}, {-1, 1}}, Mesh -> True,
    ColorFunction -> Hue, ViewPoint -> {-2.450, -0.770, 0.910},
    AxesLabel -> {"This is the x axis", "This is the y axis",
        "This is the z axis"}, Boxed -> False, MeshStyle -> {GrayLevel[.2]},
    TextStyle -> {FontFamily -> "Times", FontWeight -> "Plain",
        FontSize -> 14}, AxesEdge -> {{-1, -1}, {-1, -1}, {-1, 1}},
    FaceGrids -> {{1, 0, 0}, {0, 1, 0}}, ImageSize -> 600];

As you can see, the result of this is that all the three labels have been
printed horizontally. I would like to rotate the (x,y,z) label (~80Deg
anticlockwise, ~20Deg clockwise, ~95Deg anticlockwise) in order to have each
text parallel to its respective axis. The magnitude of each rotation is
probably tied to the parameters of the ViewPoint used, but I don't have the
slightest clue on how to do that. It would be nice if the label were not very
far from its axis as well. Thank you.
Luiz



Selon David Park <djmp at earthlink.net>:

> Luiz,
>
> Do you have a specific example plot you could include in a posting. One that
> illustrates the problem.
>
> Mathematica graphics is somewhat bad, because although one can exert tight
> control on anything that appears within a Frame or bounding box, one loses
> precise control on the various labels that appear outside the bounding box.
>
> There may be solutions but they may be specific to the case and one would
> have to see what that case is.
>
> David Park
> djmp at earthlink.net
> http://home.earthlink.net/~djmp/
>
> From: Luiz Melo [mailto:luiz.melo at polymtl.ca]
To: mathgroup at smc.vnet.net
>
> Hi MathGroup,
> It is possible to control the position and the direction of the axes labels
> in a
> 3D plot? The label must stay parallel to its axis, whatever the value of the
> "ViewPoint" used. Any help or hint, please. Thanks in advance.
> Cheers,
> Luiz
>
>
>
> --
> Luiz Melo
> École Polytechnique de Montréal
> Département de Génie Physique
> C.P.6079, succ. Centre-ville
> Montréal (QC) Canada
> H3C 3A7
> Tél (514)340-4711-7454
> Fax (514)340-3218
>
>
>


  • Prev by Date: Where Style Sheets are located
  • Next by Date: RE: Controlling axes labels in 3D plots
  • Previous by thread: RE: Controlling axes labels in 3D plots
  • Next by thread: RE: Controlling axes labels in 3D plots