Re:
- To: mathgroup at smc.vnet.net
- Subject: [mg54335] Re:
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Thu, 17 Feb 2005 10:30:52 -0500 (EST)
- References: <200502161935.OAA19110@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On 16 Feb 2005, at 20:35, Wolf, Hartmut wrote: > >> -----Original Message----- >> From: Bruce Colletti [mailto:vze269bv at verizon.net] To: mathgroup at smc.vnet.net >> Sent: Tuesday, February 15, 2005 3:51 AM >> Subject: [mg54335] [mg54279] [mg54248] Missing Graphics >> >> Re Mathematica 5.1. >> >> This code displays (as intended) five versions of g (first two >> are same): >> >> g = Plot3D[Sin@x Cos@y, {x, -PI, PI}, {y, -PI, PI}]; >> >> Scan[Show@#@g &, {SurfaceGraphics, Graphics, ContourGraphics, >> DensityGraphics}]; >> >> However, when DisplayFunction->Identity is added to Plot3D, >> only the SurfaceGraphics plot appears. Why don't the others? >> >> Thankx. >> >> Bruce >> >> > > Bruce, > > it's not the SurfaceGraphics which appears -- that would be queer -- > yet > the Graphics, which is ok, see: > > In[10]:= Options[#[g], DisplayFunction] & /@ > {SurfaceGraphics, Graphics, ContourGraphics, DensityGraphics} > >> From In[10]:= > Options::"optnf": DisplayFunction is not a known option for - Graphics > - > > Out[10]= > {{DisplayFunction -> Identity}, {}, {DisplayFunction -> Identity}, > {DisplayFunction -> Identity}} > > > As DisplayFunction is no option for Graphics it cannot be retained; in > fact no option of g is retained. If you look at > > In[13]:= Options[g] > > you'll indeed note that none of those would make sense after the > conversion of g to a 2D object. > > > -- > Hartmut Wolf > > Hartmut is as usual right but the way the explanation is expressed is confusing. DisplayFunction is certainly an option for Graphics and indeed: Options[Plot[x^2, {x, -1, 1}], DisplayFunction] {DisplayFunction :> $DisplayFunction} but not for Graphics objects that result by converting Graphics3D or SurfaceGraphics objects: Options[Graphics[Plot3D[x^2 + y^2, {x, -1, 1}, {y, -1, 1}]], DisplayFunction] DisplayFunction is not a known option for Graphics {} As stated literally this message actually looks false! Andrzej Kozlowski Chiba, Japan http://www.akikoz.net/andrzej/index.html http://www.mimuw.edu.pl/~akoz/
- References:
- [no subject]
- From: "Wolf, Hartmut" <Hartmut.Wolf@t-systems.com>
- [no subject]