Re: Re: Problems with PlotStyle in ListPointPlot3D
- To: mathgroup at smc.vnet.net
- Subject: [mg81856] Re: [mg81800] Re: [mg81750] Problems with PlotStyle in ListPointPlot3D
- From: Syd Geraghty <sydgeraghty at mac.com>
- Date: Fri, 5 Oct 2007 04:47:07 -0400 (EDT)
- References: <20029506.1191395289827.JavaMail.root@m35> <200710031016.GAA22592@smc.vnet.net>
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
>
- References:
- Re: Problems with PlotStyle in ListPointPlot3D
- From: DrMajorBob <drmajorbob@bigfoot.com>
- Re: Problems with PlotStyle in ListPointPlot3D