Gnuplot - Исправление прозрачной интерполяции трехмерного графика

762
Arturo don Juan

На рисунке ниже вы можете видеть линии через интерполированную поверхность. Как я могу предотвратить это? Я создал график с помощью следующих команд («data.txt» содержит набор точек, представляющих поверхность sin (x ^ 2 + y ^ 2) / (x ^ 2 + y ^ 2):

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

Gnuplot - Исправление прозрачной интерполяции трехмерного графика

1

2 ответа на вопрос

1
3DiAMP

Есть способы, которые вы можете попробовать, и проверить, соответствуют ли они вашим потребностям

set pm3d depthorder 

или же

set hidden3d ... 

Более сложные примеры: демонстрационный скрипт gnuplot: 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.

Похожие вопросы