Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10509 > unrolled thread
| Started by | "Mat' G\." <ellocomateo@free.fr> |
|---|---|
| First post | 2012-06-17 08:01 +0000 |
| Last post | 2012-06-18 09:51 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | "Mat' G\." <ellocomateo@free.fr> |
|---|---|
| Date | 2012-06-17 08:01 +0000 |
| Subject | Export points 3D plots |
| Message-ID | <jrk2t0$8n2$1@smc.vnet.net> |
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'
[toc] | [next] | [standalone]
| From | Peter Pein <petsie@dordos.net> |
|---|---|
| Date | 2012-06-18 09:51 +0000 |
| Message-ID | <jrmtna$h8a$1@smc.vnet.net> |
| In reply to | #10509 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web