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


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

Re: Combining splot and plot

Newsgroups comp.graphics.apps.gnuplot
Date 2017-05-10 08:55 -0700
References <f7fc38f7-2081-4b6c-9f11-a32e0e4d6ecf@googlegroups.com> <oev9b3$por$1@solani.org>
Message-ID <e3d0b4d9-32f1-4c0a-b98d-f764e1523753@googlegroups.com> (permalink)
Subject Re: Combining splot and plot
From phanlipo <casperniklas@gmail.com>

Show all headers | View raw


On Wednesday, May 10, 2017 at 4:50:13 PM UTC+2, Karl Ratzsch wrote:
> Am 10.05.2017 um 14:56 schrieb phanlipo:
> 
> > I would combine a splot of a matrix as a image with a normal plotted function.
> 
> 
> You mean next to each other or an inset or similar?
> 
> You can make additional, totally independent plots (2D or 3D) to the
> same canvas, check "help multiplot". For a simple case, use the "layout"
> option, or control the position of the (s)plots individually via "set
> size", "set origin" and/or "set margins".
> 
> 
> Combining 2D and 3D in the same plot (=same coordinate system) is not
> directly possible, obviously. Either use splot for the 2D plot, too, or
> use again multiplot and transform the coordinate systems by hand, so
> they land exactly on top of each other.
> 
> hth
> 
>   Karl

Thank you, I've used multiplot and it looks good. The plots should be combined in the same plot.

____________________________
#!/usr/bin/gnuplot

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

set multiplot

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

unset key
unset xtics
unset ytics
unset border

set size 0.835,0.835
set origin 0.088,0.093

plot x with lines

unset multiplot
__________________________

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next 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