11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.3 Maple Plotting Data Structures • 233> end proc:You can now put the sides and the top inside a PLOT3D structure todisplay them.> PLOT3D( yellowsides(1, 2, 3, 0.5),> redtop(1, 2, 3, 0.5),> STYLE(PATCH) );Using yellowsides and redtop you can create a three-dimensionalhistogram plot. Here is the histogram corresponding to z = 1/(x + y + 4),for 0 ≤ x ≤ 4 and 0 ≤ y ≤ 4.> sides := seq( seq( yellowsides(i, j, 1/(i+j+4), 0.75),> j=0..4), i=0..4):> tops := seq( seq( redtop( i, j, 1/(i+j+4), 0.75),> j=0..4 ), i=0..4 ):Histograms display well in a box axes. Axes are generated usingAXESSTYLE.> PLOT3D( sides, tops, STYLE(PATCH), AXESSTYLE(BOXED) );0.250.20.150.10.050123443210

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!