Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3637

Combining splot and plot

Newsgroups comp.graphics.apps.gnuplot
Date 2017-05-10 05:56 -0700
Message-ID <f7fc38f7-2081-4b6c-9f11-a32e0e4d6ecf@googlegroups.com> (permalink)
Subject Combining splot and plot
From phanlipo <casperniklas@gmail.com>

Show all headers | View raw


Dear all,

I would combine a splot of a matrix as a image with a normal plotted function.

My datafile 'Matrix.dat' has following content:

___________
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
___________

And I'm plotting with following commands:

___________
set terminal postscript portrait enhanced clip color "Helvetica" 15

set encoding utf8

set size square 

set output 'Spektrum.ps'

set view map

set yrange [-0.5:4.5]
set xrange [-0.5:4.5]

set palette rgbformulae 22,13,-36

splot 'Matrix.dat' matrix using 2:1:3 w image

plot x with lines
___________

A replot does not solve my problem. I would combine the two plots in one graphic.

Best,
phanlipo

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Combining splot and plot phanlipo <casperniklas@gmail.com> - 2017-05-10 05:56 -0700
  Re: Combining splot and plot Karl Ratzsch <mail.kfr@gmx.net> - 2017-05-10 16:50 +0200
    Re: Combining splot and plot phanlipo <casperniklas@gmail.com> - 2017-05-10 08:55 -0700
      Re: Combining splot and plot Karl Ratzsch <mail.kfr@gmx.net> - 2017-05-10 20:50 +0200
        Re: Combining splot and plot Gavin Buxton <gavinbuxton@gmail.com> - 2017-05-11 13:50 -0700

csiph-web