Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*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 1999

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

Search the Archive

units in graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18166] units in graphics
  • From: "Stephan Heiss" <Heiss at eicn.ch>
  • Date: Sat, 19 Jun 1999 23:54:28 -0400
  • Organization: sunrise communications ag
  • Sender: owner-wri-mathgroup at wolfram.com

How can i get a printed graphics with units equal to a fixed value in
centimeters  ?.

Here is an example with 2 cm units : (72 points = 1 inch and 1 inch = 2.54
cm)

          larg=2 Pi 20

          gr = Plot[Sin[x],{x,-Pi,Pi}, ImageSize ->
{1,1/2}Round[(72*larg)/25.4],  AspectRatio->Automatic  ]

The problem is that Mathematica adds a border around the graphics.
On the graphics above, the plot limits are not (-\[Pi];+\[Pi]) but (-3.3,
3.3) and we cannot get the amount of margin that is used, because it depends
of the ticks labels, the plot label, ...

Here is a worser example :

        Plot[ 10^5 x^2, {x,-2,2}, Frame->True, Axes->None,  ImageSize->40 72
/25.4]

A bad solution is to draw only graphics without frame and guess that the
images size is 1.05 times the specified plot range.
This is not perfect but seems to work.

Stephan Heiss
Heiss at eicn.ch




  • Prev by Date: Re: Dealing with submatrices
  • Next by Date: RE: How to plot more curves on one graph
  • Previous by thread: Re: Plotting discontinuous lines
  • Next by thread: Mathematica 2.2 on iMac?