Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9752 > unrolled thread

Re: Controlling scale of Graphics on paper

Started byAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
First post2012-04-23 09:45 +0000
Last post2012-04-26 09:26 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Controlling scale of Graphics on paper Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2012-04-23 09:45 +0000
    Re: Controlling scale of Graphics on paper Joseph Gwinn <joegwinn@comcast.net> - 2012-04-26 09:26 +0000

#9752 — Re: Controlling scale of Graphics on paper

FromAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
Date2012-04-23 09:45 +0000
SubjectRe: Controlling scale of Graphics on paper
Message-ID<jn38bm$g8l$1@smc.vnet.net>
I would like to use Mathematica to make printed templates of various 

kinds.  



In one use, a complicated shape is generated mathematically and 

displayed using Graphics or Show, the plot is printed on paper, the 

paper is glued to a piece of wood, which is cut and drilled to the lines 

and center-points.  This requires the ability to control the on-paper 

scale factor, so that a length of 1.0 in a line ends up being one inch 

(or one centimeter) on paper.  



I assume that this is possible, but have not found anything relevant in 

the online documentation.  What I have done is used Mathematica to make 

dolls of machine parts; in this case it was sufficient that all be in 

the same scale, which was achieved using ImageSize->72*6 directives, but 

ImageSize doesn't speak directly to the issue of scale on paper.



It may be that ImageSize->{w,h} can be used, but there is some math 

required.



So, my question is how best to achieve a specified scale on paper.  



TIA,



Joe Gwinn



Dear Joe,



There had been once a discussion on this subject here, though I have no reference to it. The outcome consists in the relation: 

  1 cm = 35.7744 pts. Then if you need to specify the size of your graphics say, 10 cm x 15 cm, you could do the following:



Plot[Sin[x],{x,-π,π},ImageSize→35.7744*{10,15},AspectRatio→1]



Have fun, Alexei





Alexei BOULBITCH, Dr., habil.

IEE S.A.

ZAE Weiergewan,

11, rue Edmond Reuter,

L-5326 Contern, LUXEMBOURG



Office phone :  +352-2454-2566

Office fax:       +352-2454-3566

mobile phone:  +49 151 52 40 66 44



e-mail: alexei.boulbitch@iee.lu







[toc] | [next] | [standalone]


#9808

FromJoseph Gwinn <joegwinn@comcast.net>
Date2012-04-26 09:26 +0000
Message-ID<jnb4ci$5cn$1@smc.vnet.net>
In reply to#9752
In article <jn38bm$g8l$1@smc.vnet.net>,
 Alexei Boulbitch <Alexei.Boulbitch@iee.lu> wrote:

> I would like to use Mathematica to make printed templates of various 
> 
> kinds.  
> 
[snip]
> 
> So, my question is how best to achieve a specified scale on paper.  
> 
> 
> 
> TIA,
> 
> 
> 
> Joe Gwinn
> 
> 
> 
> Dear Joe,
> 
> 
> 
> There had been once a discussion on this subject here, though I have no 
> reference to it. The outcome consists in the relation: 
> 
>   1 cm = 35.7744 pts. Then if you need to specify the size of your graphics 
>   say, 10 cm x 15 cm, you could do the following:
> 
> 
> 
> Plot[Sin[x],{x,-π,π},ImageSize→35.7744*{10,15},AspectRatio→1]

Thanks. By the way, the above renders correctly only if interpreted as 
UTF-8.


I tried: 

Plot[Sin[x], {x,-Pi,+Pi}, ImageSize->35.7744*{10,15}, AspectRatio->1]", 

and the X and Y axes have different scale factors. Nor do I get a delta 
of 1 on either axis being one centimeter on paper (8.5" by 11"), or one 
inch if ImageSize->72*6 (for one dimension being 6").  I'm wondering if 
AspectRatio->Automating will cause X and Y scale factors to be equal.  
Yves Klett suggests use of PlotRange as well. These will be tried.

I'm guessing that three different things will all have to be set 
correctly and self-consistently to achieve a fixed and uniform scale on 
paper.

Joe Gwinn

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web