|
From: theozh <th...@gm...> - 2018-08-16 17:44:26
|
Since my program which generates the gnuplot code is written in Python, I finally can also use Python to get a screenshot of the gnuplot wxt terminal. It assumes that the window frame around the plot stays always the same, in my case (l,t,r,b)margins = (8,63,8,31) pixels. Unfortunately, one flaw is that I had to insert a waiting time because the gnuplot window is not coming to front immediately. Maybe somebody has a solution for this? See: https://stackoverflow.com/questions/51879113 With this as a base, I can implement something where I can give a dimension in mm or cm and get the screenshot on the clipboard scaled accordingly when copied into the final application (Word, PPT, LibreOffice, etc.). Maybe this is also useful to somebody else... |