Robin
Robin

Reputation: 5

Can we rotate a 3-d png file that is ouput by gnuplot?

So, when we do something like: 'splot sin(x)*cos(y)' and we can rotate the ouput.

But if we do: 'set terminal png'

'set output "a.png"'

'splot sin(x)*cos(y)'

Then, is it possible to rotate the "a.png" file?

Thanks.

Upvotes: 0

Views: 211

Answers (1)

Christoph
Christoph

Reputation: 48390

No, you cannot rotate a png file as if you were in interactive mode.

To display a 3D data set on a flat screen, any program must calculate a 2D projection in order to show the data. This projection is then rasterized, i.e. converted to pixels in order to be saved as png.

Already with the projection you loose all 3D information which would be necessary to perform any kind of 3D manipulation, besides that png looses even more information by the rasterization.

Gnuplot doesn't support any special data format which would be necessary to manipulate the 3D view later with a viewer.

Upvotes: 1

Related Questions