Re: Simple formatting options
- To: mathgroup at smc.vnet.net
- Subject: [mg59346] Re: Simple formatting options
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sat, 6 Aug 2005 01:29:50 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 8/5/05 at 1:22 AM, danwolf80_no_spam_please_ at libero.it (Daniele
Lupo) wrote:
>How can I write numbers like 0.5 in the following form: .5, using
>only the fractional part, without the zero?
>I'd like to use this format to label my smith chart...
One way to do this would be StringDrop[ToString[.5],1] which could be used to label ticks in a plot as follows:
Plot[x, {x, 0, 1},
Frame -> True, Axes -> None, FrameTicks ->
{{#, StringDrop[ToString@#, 1]}&/@Range[0.1, 0.9, 0.2],
{#, StringDrop[ToString@#, 1]}&/@Range[0.1, 0.9, 0.2],
None, None}];
--
To reply via email subtract one hundred and four