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

MathGroup Archive 2011

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

Search the Archive

Re: Putting Points and Lines into RegionPlot3D

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122574] Re: Putting Points and Lines into RegionPlot3D
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Wed, 2 Nov 2011 06:20:06 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <1842796.59091.1320060388589.JavaMail.root@m06>
  • Reply-to: drmajorbob at yahoo.com

David's package is well worth the price, if nothing else, as a collection  
of best-practice examples.

His documentation shows you how to do everything (pretty much) that you'll  
ever need to do in Mathematica, and look good doing it.

Bobby

On Tue, 01 Nov 2011 00:01:22 -0500, Brentt <brenttnewman at gmail.com> wrote:

> Thank you for your response.
>
> Is that this package?
> http://home.comcast.net/~djmpark/DrawGraphicsPage.html/
>
> So there is no simple way to do it without buying a add-on package?
>
> I'm OK with making my head spin. Guess, I'll have to go deeper into the
> docs.
>
> Thanks,
> Brentt
>
> On Mon, Oct 31, 2011 at 6:41 AM, David Park <djmpark at comcast.net> wrote:
>
>> Let's see: Graphics, Graphics3D, Epilog, Show, graphics level jumping
>> between primitives and Graphics/Graphics3D level, order of picking up
>> options. It's enough to confuse many users.
>>
>> With the Presentations application everything is treated as a graphics
>> primitive and you just draw one thing after another - in 2D or 3D. You  
>> put
>> options that affect an object in the statement that draws the object and
>> options that affect the overall appearance of the graphic at the end.
>>
>> << Presentations`
>>
>> origin = {0, 0, 0};
>> pBox = 1.5;
>> Draw3DItems[
>>  {RegionDraw3D[
>>    x^2 + y^2 + z^2 <= 1, {x, -pBox, pBox}, {y, -pBox,
>>    pBox}, {z, -pBox, pBox},
>>   PlotStyle -> Directive[Yellow, Opacity[0.2]],
>>    Mesh -> None],
>>  Line[{origin, {0, 1, 0}}]},
>>  NiceRotation,
>>  Axes -> True]
>>
>>
>> David Park
>> djmpark at comcast.net
>> http://home.comcast.net/~djmpark/
>>
>>
>>
>> From: Brentt [mailto:brenttnewman at gmail.com]
>>
>>
>> Hello,
>>
>>
>> How can one put points and lines into a 3D plot?
>>
>> Here is my non-working code for having a unit sphere with a line inside  
>> of
>> it going from the origin to 1 on the x-axis.
>>
>> origin = {0, 0, 0};
>> pBox = 1.5;
>> RegionPlot3D[
>>  x^2 + y^2 + z^2 <= 1, {x, -pBox, pBox}, {y, -pBox, pBox}, {z, -pBox,
>>  pBox}, PlotStyle -> Directive[Yellow, Opacity[0.2]], Mesh -> None,
>>  Epilog -> {Line[{origin, {0, 1, 0}}]}]
>>
>> Epilog seems to expect only 2D graphics object, which makes me think its
>> not the right option to use. But what option would I use? Is there an
>> available option? Plot3D has the same problem.
>>
>>


-- 
DrMajorBob at yahoo.com



  • Prev by Date: Re: Problems with DistributionFitTest
  • Next by Date: Re: Problems with DistributionFitTest
  • Previous by thread: Re: Coin Toss Sim
  • Next by thread: Re: Putting Points and Lines into RegionPlot3D