0

I'm currently using a couple lines in a C++ program, opening a pipe to gnuplot, to create a histogram from a simple data.txt file. I can't figure out how to remove the tag on the top right of the resulting png (or at the very least move it to the left).

FILE *gnuplotpipe = popen("gnuplot -p", "w");
            fprintf(gnuplotpipe, "set terminal png size 1000,800 \n  set output 'percolation_probability_test.png' \n set xlabel 'Probability for a tree to catch fire' \n set ylabel 'Percolation Probability' \n set title 'Percolation Probability over Probability for a Tree to catch Fire' \n set style data histogram \n set style histogram cluster gap 1 \n set style fill solid border -1 \n set boxwidth 0.9 \n plot 'data.txt' using 2:xticlabels(1) with histogram \n");
            fflush(gnuplotpipe);
            fprintf(gnuplotpipe,"exit\n");
    pclose(gnuplotpipe);

Output of above code

I've tried finding whether that label has an ID or similar but came up empty.

MSpiller
  • 3,500
  • 2
  • 12
  • 24
Enoro
  • 1

0 Answers0