MathGroup Archive 2005

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

Search the Archive

Re: Changing Plot Axis Displays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54733] Re: [mg54694] Changing Plot Axis Displays
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 28 Feb 2005 03:27:29 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Here is a solution where I have used several plot options that you may want
to adjust or exclude.

Needs["Graphics`Colors`"]

A = {{.1, .2, .3, .4, .5}, {.1, .2, .3, .4, .6}, {.1, .2, .3, .5, .7}, {.1,
.2, .5, .6, .8}};

ListPlot3D[A,
    AxesLabel -> {"Years", "Ratings", "rates"},
    AxesEdge -> {Automatic, {1, -1}, Automatic},
    Ticks ->
      {Table[{y, 5y}, {y, 1, 5}],
        MapThread[{#1, #2} &, {{1, 2, 3, 4}, {"A", "B", "C", "D"}}],
        Table[{r, IntegerPart[100r]}, {r, 0, 0.8, 0.2}]},
    BoxRatios -> {1, 1, 0.75},
    Background -> Linen,
    ImageSize -> 450];

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


From: plizak [mailto:plizak at gmail.com]
To: mathgroup at smc.vnet.net


I have a table that I want to plot, it's a list plot

A = {{.1,.2,.3,.4,.5}
     {.1,.2,.3,.4,.6}
     {.1,.2,.3,.5,.7}
     {.1,.2,.5,.6,.8} }

ListPlot3D[A, AxesLabel->{"Years", "Ratings", "rates"}

Q: I would like the "Ratings" axis to not be numbers 1,2,3
   and 4, but rather A, B, C, and D.  Is this possible in
   mathematica?

Q: Can I change the "rates" to be in Percent?  i.e instead of
   having the Z axis from 0 to 0.80, could I have the Z axis
   go from 0% to 80%?

Q: Can I offset the "Years" to be 5, 10, 15 and 20 as opposed
   to 1,2,3 and 4?



Range, Ranges, ListPlot




  • Prev by Date: Polygons on spheres
  • Next by Date: Re: Changing Plot Axis Displays
  • Previous by thread: Re: Changing Plot Axis Displays
  • Next by thread: Re: Changing Plot Axis Displays