I am writing an small note including limits for undergraduate students, and indeed I need some figures inside it. By default, Maple outputs (plots of functions or surfaces) can be manipulated in such a way you can change plots widths and also height.
Is there a way (maybe a code) in which we can order machine to make the plot in my desire size? I have not met such this situation while working Maple. Thanks!
For 2-D plots the
sizeoption can be used. That is accepted by theplots:-displaycommand, which can be wrapped around any 2-D plot (or sequence of same).Eg,
See the help page for the plot,options topic, which has an entry for this.
For 3-D plots there are a couple of related approaches. Note that an unconstrained 3-D plot gets rendered using in a square region, using the minimum of the height and width. So in practice it usally looks best to keep the two dimensions equal.
One undocumented but relatively easy way is to extract the
ROOTsubstructure from a 2-D plot (created using thesizeoption), and then adding it into the PLOT3D structure. (Note that theplots:-displaycommand will not know how to handle such a result, so tailoring with the ROOT substructure is best left as a final step prior to rendering.) Eg,Another way is to insert a PlotComponent and set its height and width, and then make the 3-D plot its
value. Those steps can be done either using the mouse and menus, or programmatically.If you really want to get fancy you can write code (or a re-usable procedure) which constructs and embeds the PlotComponent on demand. See here. I consider that advanced usage.
You question is about Maple programming rather than mathematics, and is more suitable for www.stackoverflow.com or www.mapleprimes.com the Maplesoft user forum.