« Return to Thread: gnuplot tics
yes, i already did that, but then xtics dont have the names that i need, respectively the ones thet are written in my data file...Thomas Sefzick wrote:you are requesting xtics explicitly:
fprintf(pipe, "plot 'data.d' using 1:xtic(1) t col, '' u 2 ti col, '' u 3 ti col, '' u 4 ti col\n");
remove "xtic(1)" from the "plot" command and there should be no xtics anymore.rihii wrote:Hello everyone, i have read many threads in forums, but havent found my answer yet.
The problem is that GNUPLOT is plotting my xtics, that are in my data file, but i dont need that...
Im calling gnuplot from C via pipes.
CODE:
void plotBox(FILE *pipe)
{
fprintf(pipe, "set grid\n"); // show grid
// fprintf(pipe, "show grid\n");
fprintf(pipe, "set boxwidth 0.9 relative\n");
fprintf(pipe, "set style fill solid 1.00 border lt -1\n");
fprintf(pipe, "set key outside right top vertical\n"); // show legend
fprintf(pipe, "set style data histograms\n"); // plot data in histograms
fprintf(pipe, "set style histogram clustered\n");
fprintf(pipe, "set datafile missing '-'\n");
fprintf(pipe, "set ytics 0,1\n");
fprintf(pipe, "set xtics border in scale 0,0 nomirror rotate by -45 autojustify\n");
fprintf(pipe, "set xtics norangelimit font ',13'\n");
fprintf(pipe, "set xtics ()\n");
fprintf(pipe, "set title 'boxiishi' \n");
// fprintf(pipe, "set yrange [ 0.00000 : 300000. ] noreverse nowriteback\n");
// fprintf(pipe, "i = 22\n");
fprintf(pipe, "plot 'data.d' using 1:xtic(1) t col, '' u 2 ti col, '' u 3 ti col, '' u 4 ti col\n");
// fprintf(pipe, "plot 'data.d' using 2 ti col, '' u 3 ti col, '' u 4 ti col\n");
}
and this is what i get.
I havent found my answer anywhere, so i posted here :)
« Return to Thread: gnuplot tics
| Free embeddable forum powered by Nabble | Forum Help |