2015-05-29 131 views
1

我努力試圖從數據文件1中繪製非均勻二進制矩陣,並在另一個數據文件的同一個網格上繪製另一個變量的輪廓。這兩個數據文件都是二進制矩陣形狀。GNUPLOT輪廓與pm3d從不同的數據文件

# CONTOUR SETTINGS 
    set contour surface 
    set cntrparam level discrete 0.3,0.067 
    # PRINT CONTOUR ON TABLE 
    set table 'tablefile_contour' 
    splot 'contour_variable_field_binary' binary with l lt -1 
    unset table 
    # FIELD SPLOT 
    set view map; 
    splot 'field_to_be_plotted_2D_binary' binary with pm3d,\ 
      'tablefile_contour' u 1:2:3 w p lt -1 

基本上,我一直在嘗試遵循一些在互聯網上捕食的食譜。 如果我試圖只繪製瑕疵,我會得到一張2D圖片。我想從'contour_variable_field_binary'文件中加上等值線,所以我將它繪製在一個表格文件上,然後將它與要繪製的字段一起繪製。我這樣做,我得到一個黑色的照片。 如何從另一個文件疊加等值線?任何線索?

回答

1

由於我的建議是有點太長了評論:

你試過繪製兩個原始文件一起?您可以禁用使用nocontour第一個文件的輪廓,並與nosurface禁用面的第二個圖:

set contour base 
set cntrparam level discrete 0.3,0.067 

set pm3d map 
splot 'field_to_be_plotted_2D_binary' binary with pm3d nocontour,\ 
     'contour_variable_field_binary' binary with l lt nosurface 

不能告訴,如果這個工程正常運行,因爲我有一個測試不是數據。

+0

Christoph,這不是你第一次爲gnuplot保存我的一天。這是揭示你的真實身份的時候,Gnuplotman。你無法隱藏自己背後的陰謀太久! – marco