Menu

pm3d map splot doesn't show data in upper Y range? Please help

Help
2014-10-24
2014-10-24
  • Memphis Ryns

    Memphis Ryns - 2014-10-24

    Dear all,

    I have a problem splotting a pm3d map of data, three columns devided by an empty line.

    The plot works so far, except that there is a white line at the upper Y range border, which should contain data.
    Gnuplot is 4.4 patchlevel 3

    script:

    !/bin/bash

    gnuplot -persist << EOF

    set term wxt enhanced
    set pm3d map explicit
    set palette negative rgb 30,31,32

    set xrange [-0.5:1]
    set yrange [122:124]
    set cbrange [:]

    splot "data.txt" u 1:2:3

    set term postscript enhanced color solid landscape
    set output "out.ps"
    replot
    set out

    output and datafile:
    https://www.dropbox.com/sh/mhr257b2tzw0dc3/AADypqjExiLhprggI2kGv_u4a

    Thanks a lot for your help!

     
  • Bastian Märkisch

    That behaviour is to be expected. The data at y=124.00151837(!) gets clipped since the the yrange is [122:124]. If you want it included the yrange needs to be extended (or you have to round the number of digits).

     
  • Ethan Merritt

    Ethan Merritt - 2014-10-24

    At which point you will need an additional command to shrink the axis itself back to the data range:

    In current gnuplot (4.6 or 5.0) you should use the command

    set yrange [*:*] noextend

    As I recall, the procedure in version 4.4 was more roundabout.
    I think it was
    set auto y
    set auto yfix

     

    Last edit: Ethan Merritt 2014-10-24

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.