You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For locales where decimal sign is ',' gnuplot produces incorrect results:
require 'torch'
require 'gnuplot'
locales = {'en_US.UTF-8', 'ru_RU.UTF-8'}
x = torch.linspace(-2*math.pi, 2*math.pi)
y = torch.sin(x)
for i = 1, #locales do
os.setlocale(locales[i])
gnuplot.pngfigure('gnuplot-test-' .. locales[i] .. '.png')
gnuplot.plot(y)
gnuplot.plotflush()
end
For en_US you will get correct results:
For ru_RU - incorrect:
The text was updated successfully, but these errors were encountered:
For locales where decimal sign is ',' gnuplot produces incorrect results:
For en_US you will get correct results:
For ru_RU - incorrect:
The text was updated successfully, but these errors were encountered: