splot with labels ignores ranges?

Help
2008-09-08
2013-02-10
  • D. Scott Katzer

    D. Scott Katzer - 2008-09-08

    Hi,

    I'm using the 4.2 patchlevel 2 binary on Windows 2000.

    I'm trying to plot data from a file, using splot and "set view map" to color the data points.  That works as I expect.  When I also try to plot the z value as a label on top of the data point, that works as I expect except there apparently is no way to restrict the labels so that they aren't plotted outside of the axis limits.

    I'm using the postscript color enhanced terminal

    The data file has data with x extending from 0 to 150, and y extending from 200 to 2000.  I define the data ranges for this plot as follows:

    xmin = 0
    xmax = 50
    ymin = 300
    ymax = 750
    zmin = 1762
    zmax = 2265

    I've tried:
    splot [xmin:xmax] [ymin:ymax] [zmin:zmax] FN1 using 2:5:1 with points pt 7 ps 4 lc palette,\       FN1 using (xmin<$2<xmax ? $2 : 1/0):(ymin<$5<ymax ? $5 : 1/0):1:1 with labels font "Helvetica, 8"

    and

    splot [xmin:xmax] [ymin:ymax] [zmin:zmax] FN1 using 2:5:1 with points pt 7 ps 4 lc palette
    splot [xmin:xmax] [ymin:ymax] [zmin:zmax] FN1 using 2:5:1:1 with labels font "Helvetica, 8"

    and

    splot [xmin:xmax] [ymin:ymax] [zmin:zmax] FN1 using 2:5:1 with points pt 7 ps 4 lc palette,\ [xmin:xmax] [ymin:ymax] [zmin:zmax] FN1 using 2:5:1:1 with labels font "Helvetica, 8"

    But nothing seems to work to restrict the labels to the boundary of the plot.  Thanks for any pointers.

    Cheers,
    Scott.

     
    • Ethan Merritt

      Ethan Merritt - 2008-09-10

      It's a bug.  Fixed in 4.2.4, which will be out "real soon now".

      For the moment, you can probably plot your labels with "plot" rather than "splot".

       

Log in to post a comment.