{"action":"closed","issue":{"url":"https://api.github.com/repos/torch/gnuplot/issues/17","repository_url":"https://api.github.com/repos/torch/gnuplot","labels_url":"https://api.github.com/repos/torch/gnuplot/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/torch/gnuplot/issues/17/comments","events_url":"https://api.github.com/repos/torch/gnuplot/issues/17/events","html_url":"https://github.com/torch/gnuplot/issues/17","id":129477912,"number":17,"title":"Using gnuplot's multiplot","user":{"login":"thelinuxmaniac","id":722415,"avatar_url":"https://avatars.githubusercontent.com/u/722415?v=3","gravatar_id":"","url":"https://api.github.com/users/thelinuxmaniac","html_url":"https://github.com/thelinuxmaniac","followers_url":"https://api.github.com/users/thelinuxmaniac/followers","following_url":"https://api.github.com/users/thelinuxmaniac/following{/other_user}","gists_url":"https://api.github.com/users/thelinuxmaniac/gists{/gist_id}","starred_url":"https://api.github.com/users/thelinuxmaniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelinuxmaniac/subscriptions","organizations_url":"https://api.github.com/users/thelinuxmaniac/orgs","repos_url":"https://api.github.com/users/thelinuxmaniac/repos","events_url":"https://api.github.com/users/thelinuxmaniac/events{/privacy}","received_events_url":"https://api.github.com/users/thelinuxmaniac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-28T15:04:50Z","updated_at":"2016-03-08T10:38:48Z","closed_at":"2016-03-08T10:38:48Z","body":"Hi,\r\nI want to put multiple gnuplot.imagesc() plots in a single image file. So I try to do it as follows but it doesn't work. Only the last plot is appears in the image. It seems that gnuplot.imagesc() flushes everything set using gnuplot.raw()\r\n\r\n\r\n```\r\nrequire 'gnuplot'\r\n\r\nx1 = torch.rand(10,10)\r\nx2 = torch.rand(10,10)\r\n\r\ngnuplot.setterm('png')\r\ngnuplot.pngfigure('test.png')\r\ngnuplot.raw('set multiplot layout 1,2')\r\n\r\ngnuplot.imagesc(x1, 'color') -- first subplot\r\ngnuplot.title('x1')\r\n\r\ngnuplot.imagesc(x2, 'color') -- second subplot\r\ngnuplot.title('x2')\r\n\r\ngnuplot.raw('unset multiplot')\r\ngnuplot.plotflush()\r\n```\r\n\r\n\r\n![test](https://cloud.githubusercontent.com/assets/722415/12648129/c35950d0-c5d8-11e5-9ee3-bb24e316eb09.png)"}}