Re: Adding markers on the surface of a Plot3D?

*To*: mathgroup at smc.vnet.net*Subject*: [mg89348] Re: Adding markers on the surface of a Plot3D?*From*: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>*Date*: Sat, 7 Jun 2008 02:55:35 -0400 (EDT)*Organization*: The Open University, Milton Keynes, UK*References*: <g2b4o8$nm2$1@smc.vnet.net>

AES wrote: [snip] > [And would someone want to help me understand _why_ the > Show[ - - - - -] command (followed by a semicolon) no longer works, or > can no longer be used, as one of a sequence of multiple expressions > within a longer cell? And why it can't even have a semicolon following > it as the last line in a cell? I just can't envision the logic of why > this was a necessary (or optional?) interface design decision -- isn't > Show[---] an expression?] You may have not noticed, but the graphic engine has been completely redesigned in version 6.xx. Graphs are no longer side effects of plotting functions (these include Show as well); on the contrary, graphics are now first class objects. In other words, the graph is the output or result of a plot command. Since the semi-column, as previously in v5.2, prevents the result of an evaluation to be displayed ending a plot expression by a semi-column produces no output when evaluated. This behavior is expected and coherent with the whole behavior of Mathematica: plots are no longer treated as second class citizen and plot functions behave in exactly the same way as every other Mathematica expressions. Show[Plot[x^2, {x, 0, 3.5}], ListPlot[{1, 4, 9}]] Show[Plot[x^2, {x, 0, 3.5}], ListPlot[{1, 4, 9}]]; Print[Show[Plot[x^2, {x, 0, 3.5}], ListPlot[{1, 4, 9}]]] Print[Show[Plot[x^2, {x, 0, 3.5}], ListPlot[{1, 4, 9}]]]; Plot[Sin[x], {x, 0, 2*Pi}] Plot[Sin[x], {x, 0, 2*Pi}]; Print[Plot[Sin[x], {x, 0, 2*Pi}]] Print[Plot[Sin[x], {x, 0, 2*Pi}]]; Regards, -- Jean-Marc