spgram: fixing fprintf argument ordering for gnuplot output
/*
- * Copyright (c) 2008 - 2018 Joseph Gaeddert
+ * Copyright (c) 2007 - 2018 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -446,7 +446,7 @@ int SPGRAM(_export_gnuplot)(SPGRAM() _q,
fprintf(fid,"set xlabel 'Frequency [%cHz]'\n", unit);
fprintf(fid,"set xrange [%f:%f]\n", g*(_q->frequency-0.5*_q->sample_rate), g*(_q->frequency+0.5*_q->sample_rate));
fprintf(fid,"plot '-' u ($1*%f+%f):2 w %s lt 1 lw 2 lc rgb '#004080'\n",
- plot_with, g*(_q->sample_rate < 0 ? 1 : _q->sample_rate), g*_q->frequency);
+ g*(_q->sample_rate < 0 ? 1 : _q->sample_rate), g*_q->frequency, plot_with);
}
// export spectrum data
