MathGroup Archive 2008

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

Search the Archive

Re: plot problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93187] Re: plot problem
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 30 Oct 2008 02:03:17 -0500 (EST)
  • References: <ge9f1p$96g$1@smc.vnet.net>


Hi martin,

your first problem seems to be to make a plot with given units. Here is 

a simple example: we wannt to plot Sin[x] where the x axis has units of 

Pi and the y axis units of 1/10:

Plot[10 Sin[Pi x],{x,0,2}]

Now we add italic labels:

Plot[10 Sin[Pi x],{x,0,2},AxesLabel-> {StyleForm["Units of 

Pi",FontSlant->Italic],StyleForm["Units of 1/10",FontSlant->Italic]}]

hope this helps, Daniel





Martin Channon wrote:

> Hey folks, I'm new to Mathematica. I'm trying to set up a graph for the 

> hydrogen 2s state. I just can't get it to work. The code as I have it is:

> 

> 

> 

> This always generates errors. Part of the problem is that I don't know 

> how to specify units for the x and y axes. The x axis should be in units 

> of a (5.29*10^-11) and the y axis should be in units of 1/a.

> 

> I'd also like to know how to use FontForm in the context of Plot to 

> specify some characters italic. The label for the y axis should be 

> "Radial Distribution /P/" with P italic. Thanks.

> 





-- 



Daniel Huber

Metrohm Ltd.

Oberdorfstr. 68

CH-9100 Herisau

Tel. +41 71 353 8585, Fax +41 71 353 8907

E-Mail:<mailto:dh at metrohm.com>

Internet:<http://www.metrohm.com>




  • Prev by Date: Re: notation using # with exponents and &
  • Next by Date: Re: 3D Graphics in a Palette or Dialog
  • Previous by thread: plot problem
  • Next by thread: 3D Graphics in a Palette or Dialog