Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: How to make large graphics object fit within a plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105307] Re: How to make large graphics object fit within a plot?
  • From: Vince Virgilio <blueschi at gmail.com>
  • Date: Fri, 27 Nov 2009 06:29:02 -0500 (EST)
  • References: <hej3p8$d70$1@smc.vnet.net>

On Nov 25, 6:18 am, "Nasser M. Abbasi" <n... at 12000.org> wrote:
> I am trying to add a disk at some location on top of an existing plot. So I
> use Epilog to add the disk.
>
> But it seems if the disk is larger than the plot image size, it gets chopped
> off.  I wanted the whole disk to show.
>
> I tried increasing ImagePadding for the plot, and also ImageMargins, but
> this did not help.
>
> Here is what I tried
>
> Plot[Sin[x], {x, 0, 10}, AspectRatio -> Automatic,
>   Epilog -> {Disk[{5, 0}, 2]}]

Nasser,

Use Plot option PlotRangePadding:

Plot[Sin[x], {x, 0, 10}, AspectRatio -> Automatic,
   Epilog -> {Disk[{5, 0}, 2]}, PlotRangePadding -> 1]

Vince Virgilio


  • Prev by Date: Re: Formal Concept Analysis
  • Next by Date: BarChart3D Axes Label Problem
  • Previous by thread: Re: How to make large graphics object fit within a plot?
  • Next by thread: computing expectations for probability distributions in mathematica