Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

The ideas here are to allow 3D plotting commands such as plot3d to handle a `size` option similarly to how 2D plotting commands do so, and for the plots:-display command to also handle it for 3D plots.

The size denotes the dimensions of the inlined plotting window, and not the relative lengths of the t
hree axes.

I'd be interested in any new problems introduced with this, eg. export, etc.


# Using ToInert/FromInert
# This might go in an initialzation file.
  if __ver>=18.0 and __ver<=2019.2 then
    if :-has(:-op([5,2,2,2,1],__KK),:-_Inert_PARAM(__NN)) then
      :-print("3D size patch done");
      :-print("3D size patch not appropriate; possibly already done");
    end if;
    :-print(sprintf("3D size patch not appropriate for version %a"),__ver);
  end if;
  :-print("3D size patch failed");
end try:

"3D size patch done"


P := plot3d(sin(x)*y^2, x=-Pi..Pi, y=-1..1, size=[150,150],
            font=[Times,5], labels=["","",""]):

plots:-display(P, size=[300,300], font=[Times,10]);

# inherited from the contourplot3d (the plot3d is unset).
  plots:-contourplot3d(sin(x)*y^2, x=-Pi..Pi, y=-1..1,
                       thickness=3, contours=20, size=[800,800]),
  plot3d(sin(x)*y^2, x=-Pi..Pi, y=-1..1, color="Gray",
         transparency=0.1, style=surface)

# Some options should still act as 2D-plot-specific.
try plot3d(sin(x)*y^2, x=-Pi..Pi, y=-1..1, legend="Q");
    print("Not OK");
if StringTools:-FormatMessage(lastexception[2..-1])
   ="the legend option is not available for 3-D plots"
then print("OK"); else print("Not OK"); error; end if; end try;




If this works fine then it might be a candidate for inclusion in an initialization file, so that it's
automatically available.

Dear all, 

I did these commands in Maple:


W:=<<w11 | w12>, <w21 | w22>>

v:= (W.x)


Then, the answer was this:

Vector[column](8, [x1, 0, 0, x1, x2, 0, 0, x2])

What I expected was this: