Gnuplot - Korrektur der durchsichtigen 3D-Plotinterpolation

809
Arturo don Juan

Im Bild unten können Sie die Linien durch die interpolierte Fläche sehen. Wie kann ich das verhindern? Ich habe das Diagramm mit den folgenden Befehlen erstellt ("data.txt" enthält eine Reihe von Punkten, die die Flächensin (x ^ 2 + y ^ 2) / (x ^ 2 + y ^ 2) darstellen:

set pm3d interpolate 0,0 set dgrid3d 30,30 splot "data.txt" with lines 

enter image description here

1

2 Antworten auf die Frage

1
3DiAMP

Es gibt Möglichkeiten, wie Sie versuchen können, und prüfen, ob sie Ihren Bedürfnissen entsprechen

set pm3d depthorder 

oder

set hidden3d ... 

Weitere ausführliche Beispiele: gnuplot Demo-Skript: hidden2.dem

1
DrZoo

I'm no Gnuplot expert, but by looking at the documentation page 161 shows the set style fill command.

From the documentation it says:

The default fillstyle is empty. The solid option causes filling with a solid color, if the terminal supports that. The parameter specifies the intensity of the fill color. At a of 0.0, the box is empty, at of 1.0, the inner area is of the same color as the current linetype. Some terminal types can vary the density continuously; others implement only a few levels of partial fill. If no parameter is given, it defaults to 1.

In your case, I believe you want to the command that is along the line of set style fill transparent 1 or set style fill solid 1. You'd have to see how they both look and choose the one that is best. You could also mess with the alpha value and try something like 0.85 to see if it looks better than a completely solid fill.