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


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

Combining splot and plot

X-Received by 10.157.20.102 with SMTP id h93mr2654808oth.5.1494420995699; Wed, 10 May 2017 05:56:35 -0700 (PDT)
X-Received by 10.157.31.68 with SMTP id x4mr123716otx.19.1494420995669; Wed, 10 May 2017 05:56:35 -0700 (PDT)
Path csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!c26no340558itd.0!news-out.google.com!m134ni764itb.0!nntp.google.com!c26no340551itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Wed, 10 May 2017 05:56:35 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=134.169.85.17; posting-account=dedIcwoAAABmOdEI-O6rB4FSB_rWQNqf
NNTP-Posting-Host 134.169.85.17
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <f7fc38f7-2081-4b6c-9f11-a32e0e4d6ecf@googlegroups.com> (permalink)
Subject Combining splot and plot
From phanlipo <casperniklas@gmail.com>
Injection-Date Wed, 10 May 2017 12:56:35 +0000
Content-Type text/plain; charset=UTF-8
Xref csiph.com comp.graphics.apps.gnuplot:3637

Show key headers only | 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 | Unroll thread


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