Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10532
| From | Peter Pein <petsie@dordos.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Export points 3D plots |
| Date | 2012-06-18 09:51 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jrmtna$h8a$1@smc.vnet.net> (permalink) |
| References | <jrk2t0$8n2$1@smc.vnet.net> |
Am 17.06.2012 10:01, schrieb Mat' G.:
> Hello,
> Is it possible to export the points of 3D plot to use it later in, say,
> a density plot?
> Any help would be welcome. :-)
> Yours,
> Mat'
>
Hi,
usually the first element of a 3d-plot is a GraphicsComplex object with
a list of the used points as its first element. So
pl=Plot3D[Sinc[Sqrt[x^2 + y^2]], {x, -Pi, Pi}, {y, -Pi, Pi},
PlotRange->All, PlotPoints->50];
pts=pl[[1,1]];
should work.
Peter
P.S.: try
pts2 = SortBy[pts,
Through[{Round[Abs[#], Pi/100] &, Arg}[Complex @@ Most[#]]] &];
Show[MapIndexed[{Blend[{Red, Darker@Green, Blue}, #2[[1]]/
Length[pts2]], #1} &, Line /@ Partition[pts2, 2, 1]] //
Flatten // Graphics3D, BoxRatios -> {1, 1, 1/GoldenRatio}]
if you like
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Export points 3D plots "Mat' G\." <ellocomateo@free.fr> - 2012-06-17 08:01 +0000 Re: Export points 3D plots Peter Pein <petsie@dordos.net> - 2012-06-18 09:51 +0000
csiph-web