3

I am plotting several heatmaps using Gnuplot. However, I am not not using group plot in Gnuplot as I have decided to do this better in Latex with individual heatmaps obtained. What I need now from Gnuplot is a plot/figure with only colorbox (nothing but colorbox). Is there any way to do it in Gnuplot?

3
  • So you want to plot N heat map without colorbox and one colorbox (without heat map)? Commented Jun 11, 2016 at 9:10
  • @TomSolid: exactly Commented Jun 11, 2016 at 9:10
  • Take a look at these examples (gnuplot.sourceforge.net/demo/pm3dcolors.html) of defining palette. Sure, you have to know the absolute minima and maxima of the heatmaps. Commented Jun 11, 2016 at 9:13

1 Answer 1

3

Eg. if your heatmaps are from 5-12:

unset key
set view map
set style data pm3d
set style function pm3d
set xtics  norangelimit 1
unset ytics
unset ztics
set title "Colorbox for heatmaps" 
set xrange [ 5.0000 : 12.0000 ] noreverse nowriteback
unset colorbox
splot (x-5)/(12-5)

enter image description here

OR if you want it to be vertical:

set size ratio 3
unset key
set view map
set style data pm3d
set style function pm3d
unset xtics
set ytics norangelimit 1
unset ztics
set title "Colorbox for heatmaps" 
set yrange [ 5.0000 : 12.0000 ] noreverse nowriteback
unset colorbox
splot (y-5)/(12-5)

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.