Message Boards Message Boards

1 Reply
0 Total Likes
View groups...
Share this post:

How can we control print and export margins?

Posted 10 years ago

I have been doing some work with the Control Theory stuff, and I would like to be able to print the graphics. For example, BodePlot. I can get plots, but I have not found a way to control the margins. FrameMargins does not seem to be an option in BodePlot, Show, GraphicsColumn, . .

I can get plots like the one attached, but the bottom margin is too small for use.

Any idea on how to go about this?


POSTED BY: David Keith
Posted 10 years ago

I have come up with one method.

tfm = TransferFunctionModel[{{1/(s + 100)/(s + 10000)}}, s]

{mag, phase} = 
 BodePlot[tfm, PlotLabel -> {"Mag", "Phase"}, 
  ImageMargins -> {{{5, 5}, {5, 5}}, {{10, 10}, {10, 10}}}, 
  PlotLayout -> "List"]

bplt2 = GraphicsColumn[{mag, phase}, 
  ImageMargins -> {{20, 20}, {20, 10}}, 
  PlotLabel -> Style["Bode Plot", 20], ImageSize -> {8.5, 11} 72]

 Rasterize[bplt2, ImageResolution -> 100, ImageSize -> {8.5, 11} 72],ImageResolution->100]

Here BodePlot provides separate mag and phase graphics. They are combined with GraphicsColumn into a desirable image, and then exported as a rasterized PDF. The PDF appears to be at 300dpi rather than the 100 specified.

POSTED BY: David Keith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract