Mathematica 9 is now available
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 Ticks to Rationals

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60732] Re: Changing Ticks to Rationals
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Mon, 26 Sep 2005 01:36:09 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 9/25/05 at 5:45 AM, kristophs.post at web.de (kristoph) wrote:

>Is it possible to change the ticks in an Histogram to rationals?
>For example: Changing 2.5 to 5/2 and so on. Thanks for help.

Yes, just use the FrameTicks option. For example,

In[1]:=
data = Table[2.5*Random[], {100}]; 
In[2]:=
Histogram[data, Frame -> True, Axes -> None, 
   FrameTicks -> {Range[5]/2, Automatic, None, None}]; 
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Changing Ticks to Rationals
  • Next by Date: Re: Changing Ticks to Rationals
  • Previous by thread: Re: Changing Ticks to Rationals
  • Next by thread: Re: Changing Ticks to Rationals