I am collecting money with gnuplot, and currently I have managed to set the labels on the y axis as floating point values without decimals (not exponentials), but I want to be able to add a comma to the label but I cannot figure out how to do this .
Any ideas?
i.e. The current output gives me $ 2,500,000 - as you can see, the data is not grouped - I want to break it into thousands so that it looks like $ 25,000,000.
EDIT: My current setup
set format y '£%.0f'
, , ., :
set decimal locale set format y "%'g" plot 1000*x
- ytics (. ) :
set ytics ("5,000,000" 5000000, "10,000,000" 10000000, "15,000,000" 15000000, "20,000,000" 20000000, "25,000,000" 25000000) plot[0:3] 10000000*x