Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 541 Bytes
--
-- (C) Copyright 2017 Pavel Tisnovsky
--
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License v1.0
-- which accompanies this distribution, and is available at
-- http://www.eclipse.org/legal/epl-v10.html
--
-- Contributors:
-- Pavel Tisnovsky
--
require("gnuplot")
x = torch.linspace(-1,1,120)
xy = torch.ger(x,x)
z = torch.sin(xy*4.0*math.pi)
gnuplot.pngfigure("plot10.png")
gnuplot.imagesc(z, 'color')
gnuplot.plotflush()
gnuplot.close()