Message Boards Message Boards

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

ChromaticityPlot3D: specify initial rotation or coordinate

Posted 3 years ago

For ChromaticityPlot3D, I'd like to specify an initial rotation (or alternately, a different coordinate order). Here is what is generated by default:

Print[
  ChromaticityPlot3D[
   "RGB",
   "RGB",
   Appearance -> "VisibleSpectrum",
   PlotLabel -> Column[{"RGB x RGB", "Default rotation"}, Center, 0],
   AspectRatio -> 1,
   ImageSize -> {256, Automatic}
   ]
  ];

enter image description here

and what is desired (rotated by hand in this instance):

enter image description here

I have tried

ScalingFunctions -> {None, None, "Reverse"}, -- not permitted

and

Ticks -> {{0., 5., 10.}, {1., 0., -1., -2., -3.}, {1., 0., -1., -2.}}, -- order ignored

Is there a programmatic way to specify the initial view?

POSTED BY: Richard Frost
Posted 3 years ago

You can use the option ViewPoint

ChromaticityPlot3D[
    "RGB", "RGB", Appearance -> "VisibleSpectrum",
    PlotLabel -> Column[{"RGB x RGB", "Rotated 180\[Degree] around vertical"}, Center, 0],
    AspectRatio -> 1, ImageSize -> {256, Automatic},
    ViewPoint -> {1, -1.5, 2}
 ]

enter image description here

For ChromaticityPlot3D the default setting is {1, 1.5, -2}, with x (Red) as vertical.

POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract