[pstricks] Surface plot using PStricks/pst-3dplot

Herbert Voss Herbert.Voss at fu-berlin.de
Tue Jul 24 11:05:37 CEST 2007


Werner Grundlingh wrote:
> In an attempt to reproduce the landscape of Königsberg (now known as
> Kaliningrad) and ultimately something similar to the figure
>  http://www.britannica.com/eb/art-68671
> I generated a grid of three dimensional (x,y,z) points (see the
> konigsberg_3d_coor.txt attachment) and was able to plot it in Matlab
> using surf(X,Y,Z) (see the attachment matlab_konigsberg_grid.pdf). Is
> there a similar way to achieved this using PStricks and possibly
> pst-3dplot? In short, is it possible to produce similar plots to
> \psplotThreeD[...]{...} or \parametricplotThreeD[...]{...} as shown in
> the pst-3dplot package documentation where the 'functions' are 'data
> points'/'irregular surfaces'?
>
> I have tried using \fileplotThreeD{...}, but the input should then be
> specified in separate x-direction and y-direction files, which
> consequently doesn't allow for a plotstyle=polygon type plot. Hence,
> all faces are transparent and can't be coloured with a user-defined
> colour.

in this case it is easier to convert the matlab plot
into a PostScript vector file and read the coordinates
or alternatively to an eps Image which can then be
overwrite by other drawings.

pst-IIID is really experimental, but can plot 3d functions.
http://perce.de/LaTeX/pst-IIID/
The psPlot can be adapted to a fileplot, but this is
not really easy.

However, I am on vacation in France until mid of august.

Herbert



More information about the PSTricks mailing list