Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Scaling Plot inside Row

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87855] Re: Scaling Plot inside Row
  • From: Albert Retey <awnl at arcor.net>
  • Date: Fri, 18 Apr 2008 07:12:17 -0400 (EDT)
  • References: <fu9frs$cdh$1@smc.vnet.net>

Alexey Popkov wrote:
> Hello,
> I am trying to control size of a Plot inside a Row that contains also
> some TableForm with selectable text. This Row is an output from my
> complicated program so I use Print[] to print it as output. I have
> tried the following (this is an example):
> 
> plot=Plot[Sin[x],{x,0,6 Pi}];
> matrix=TableForm[Table[10 i+j,{i,4},{j,3}]];
> Print[Row[{plot,matrix},"\t"]]
> 
> All is fine but the plot is scaled down. I have tried to use
> Graphics[plot,ImageSize->1] but it does not work.
> How can I control size of the plot in the output?

ImageSize expects the size in pixels as value, setting it to 1 usually 
gives rather small pictures :-). The following works as expected for me:

plot = Plot[Sin[x], {x, 0, 6 Pi}, ImageSize -> 300];
matrix = TableForm[Table[10 i + j, {i, 4}, {j, 3}]];
Print[Row[{plot, matrix}, "\t"]]

hth,

albert


  • Prev by Date: Re: Re: Re: Reduce and Indeterminate
  • Next by Date: Re: Product command with matrices
  • Previous by thread: Scaling Plot inside Row
  • Next by thread: Re: Scaling Plot inside Row