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

MathGroup Archive 2007

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

Search the Archive

Re: Re: Re: Problems with PlotStyle in ListPointPlot3D

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81989] Re: [mg81856] Re: [mg81800] Re: [mg81750] Problems with PlotStyle in ListPointPlot3D
  • From: Syd Geraghty <sydgeraghty at mac.com>
  • Date: Mon, 8 Oct 2007 02:05:51 -0400 (EDT)
  • References: <20029506.1191395289827.JavaMail.root@m35> <200710031016.GAA22592@smc.vnet.net> <26970200.1191637441183.JavaMail.root@m35> <op.tzs7rlm3qu6oor@monster.gateway.2wire.net>

Thanks very much Bobby.

I see the error I made and much appreciate the input. The general  
rule is that if something does not work
check and recheck the documentation and examples in Help because the  
folks at Wolfram have invariably
got it right!

Again Thanks ... Syd


Syd Geraghty B.Sc., M.Sc.
sydgeraghty at mac.com
San Jose, CA

On Oct 6, 2007, at 9:22 PM, DrMajorBob wrote:

> This works:
>
> ListPointPlot3D[{{{0.75, 0.75, 0.75}}, {{.25, .25, .25}}},
>  PlotStyle -> {Directive[PointSize[0.05], Hue[.5]],
>    Directive[PointSize[0.05], Hue[1]]},
>  PlotRange -> {{0, 1}, {0, 1}, {0, 1}}]
>
> See the difference?
>
> Bobby
>
> On Fri, 05 Oct 2007 03:47:07 -0500, Syd Geraghty  
> <sydgeraghty at mac.com> wrote:
>
>> Hi Bob,
>>
>> I tried a number of alternatives and permutations to try and plot a
>> list of two points
>> with an associated list of Directives (per your input below).
>>
>> The most straightforward I thought would be
>>
>> ListPointPlot3D[{{0.75, 0.75, 0.75}, {.25, .25, .25}},
>>   PlotStyle -> {Directive[PointSize[0.05], Hue[.5]],
>>     Directive[PointSize[0.05], Hue[1]]},PlotRange -> {{0, 1}, {0, 1},
>> {0, 1}}]
>>
>> But neither it (nor the other things I tried) gave the desired result
>> of two different
>> coloured and sized points.
>>
>> I would appreciate the right way to do this for this trivial example.
>>
>> Thanks..... Syd
>>
>> Syd Geraghty B.Sc., M.Sc.
>> sydgeraghty at mac.com
>> San Jose, CA
>>
>> On Oct 3, 2007, at 3:16 AM, DrMajorBob wrote:
>>
>>> Use Directive:
>>>
>>> ListPointPlot3D[{{0, 0, 0}},
>>>   PlotStyle -> Directive[PointSize[0.02], Hue[1]]]
>>>
>>> or
>>>
>>> ListPointPlot3D[{{0, 0, 0}},
>>>   PlotStyle -> {Directive[PointSize[0.02], Hue[1]]}]
>>>
>>> In v6, the plot routines allow a List of things to plot and a
>>> corresponding List of directives. If there's only one Directive, it
>>> applies to all the "things"; if there's a List of directives, the
>>> first
>>> applies to the first thing, second to the second thing, etc.
>>>
>>> It's true that you only have one "thing" in your example (one  
>>> list of
>>> points) and, from that, one might guess that you wanted to apply
>>> all the
>>> directives to it; but that isn't the syntax now.
>>>
>>> Bobby
>>>
>>> On Wed, 03 Oct 2007 01:20:38 -0500, H Hogreve <hogreve at ifisr.org>
>>> wrote:
>>>
>>>> Apparently, it is not possible to invoke simultaneously both
>>>> options that determine the point size and the colour in PlotStyle
>>>> when using it in ListPointPlot3D.  Thus, while
>>>>
>>>>          ListPointPlot3D[{{0,0,0}}, PlotStyle->{PointSize[0.02]}]
>>>>
>>>> and
>>>>
>>>>          ListPointPlot3D[{{0,0,0}}, PlotStyle->{Hue[1]}]
>>>>
>>>> work correctly, the combined version
>>>>
>>>>         ListPointPlot3D[{{0,0,0}}, PlotStyle->{PointSize[0.02], Hue
>>>> [1]}]
>>>>
>>>> only displays the point with the desired size (or the desired
>>>> colour, if
>>>> using PlotStyle->{Hue[1],PointSize[0.02]} ). Sometimes, the  
>>>> combined
>>>> version does not even show a point at all, but the frame only,
>>>> giving me
>>>> the impression that in vers. 6.0 ListPointPlot3D is still a rather
>>>> unstable
>>>> command. Perhaps, however, there are other ways of setting the
>>>> point size and colour in ListPointPlot3D, so any hints will be very
>>>> welcome.
>>>>
>>>> Let me add that the 2D analogue
>>>>
>>>>     ListPlot[{{0,0}}, PlotStyle->{PointSize[0.02], Hue[1]}]
>>>>
>>>> works fine.
>>>>
>>>> Many thanks in advance,
>>>>
>>>> H. Hogreve,
>>>> IFISR
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> DrMajorBob at bigfoot.com
>>>
>>
>>
>>
>
>
>
> -- 
> DrMajorBob at bigfoot.com



  • Prev by Date: Re: Mathematica Numerical Integration and For Loop
  • Next by Date: Re: What is the purpose of the Defer Command?
  • Previous by thread: Re: Re: Re: Problems with PlotStyle in ListPointPlot3D
  • Next by thread: Trouble saving Version 6 notebook when Juniper SSL VPN is on