Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Changing Plot Axis Displays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54736] Re: Changing Plot Axis Displays
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Mon, 28 Feb 2005 03:27:41 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 2/27/05 at 1:29 AM, plizak at gmail.com (plizak) wrote:


>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} }

>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?

One way to accomplish what you want would be as follows:

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

xticks = ({#1, 5*#1} & ) /@ Range[5]; 
yticks = Transpose[{Range[4], {A, B, C, D}}]; 
ListPlot3D[100*data, 
   AxesLabel -> {"Years", "Ratings", "rates"}, 
   Ticks -> {xticks, yticks, Automatic}]; 
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Exporting output cells to .eps
  • Next by Date: Re: Memory Leak in Mathematica?
  • Previous by thread: Re: Changing Plot Axis Displays
  • Next by thread: Re: Changing Plot Axis Displays