2

So, here I am trying to plot heatmaps in gnuplot. I have a matrix-formatted text file (with row and column headers), and the command I am using to plot it is

plot "file.txt" matrix rowheaders columnheaders using 1:2:3 w image notitle

The output is this graph: enter image description here

Obviously, the X and Y labels are useless like this. I believe the problem here is that gnuplot is extracting all labels from the file and plotting them. How would I go about reducing the amount of clutter in here, e.g. plotting every 10th label or so?

Thanks in advance.

4
  • You cannot reduce the number of labels plotted with rowheaders columnnheaders. Do you really need them? Looks to me like you can use normal numerical labels. Commented May 16, 2016 at 11:41
  • Well, no, I don't really require them to be there. Oh well, I'll just remove them completely. Thanks for clearing things up for me. Commented May 16, 2016 at 11:58
  • On a somewhat (un)related note, is it possible to change the color coding scale to something more logarithmic? Commented May 16, 2016 at 12:00
  • 1
    Use set logscale cb. Commented May 16, 2016 at 12:50

1 Answer 1

1

Or just make the picture resolution bigger... for instance like 1920,1080 or bigger... like this:

set term pngcairo size 1920,1080

or make the tics numbers like 1000000 smaller and make a label to show that the numbers written on the tics are 1000000 bigger... or both:)

Sorry for my english...

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.