Problems saving/exporting FG [message #92604] |
Thu, 21 January 2016 09:56  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
Hi,
I'm having problems saving my FG graphics. I get blanked out text in my saved plots. To test this I ran this code:
pro idlOutputProblem
outDir='C:\myOutputDir\testSoftware\'
curve = sin(!pi*4*findgen(361)/360.0)
for i=0,9 do begin
hm_test1 = plot(curve, '3r+-', xtitle='x Axis', ytitle='y Axis', dimensions=[600,600], title='x-y plot', window_title='Drift Plot: x vs y')
hm_test2 = plot(curve, '3r+-', xtitle='x Axis', ytitle='y Axis', dimensions=[600,600], title='x-y plot')
hm_test3 = plot(curve, '3r+-', xtitle='x Axis', ytitle='y Axis', dimensions=[600,600])
hm_test4 = plot(curve, '3r+-', xtitle='x Axis', ytitle='y Axis')
hm_test5 = plot(curve)
hm_test1.save, outDir+'test1_'+string(i,format='(i02)')+'.png'
hm_test2.save, outDir+'test2_'+string(i,format='(i02)')+'.png'
hm_test3.save, outDir+'test3_'+string(i,format='(i02)')+'.png'
hm_test4.save, outDir+'test4_'+string(i,format='(i02)')+'.png'
hm_test5.save, outDir+'test5_'+string(i,format='(i02)')+'.png'
hm_test1.close
hm_test2.close
hm_test3.close
hm_test4.close
hm_test5.close
endfor
end
The result I got shows a strange distribution. Here is an array with "1s" where the plot output is bad and "0s" where the plot output is as expected:
0 1 1 0 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 1
I put things inside a post to show what I mean with good and bad output: http://idl.marchetto.de/problems-exporting-fg-graphics/
Any suggestions where the problem might come from?
Notice that I have tried this with software and hardware rendering without any significant change i the results.
This also happens when I use image() or other FG functions.
Cheers,
Helder
IDL> !version
{
"ARCH": "x86_64",
"OS": "Win32",
"OS_FAMILY": "Windows",
"OS_NAME": "Microsoft Windows",
"RELEASE": "8.5",
"BUILD_DATE": "Jul 7 2015",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}
|
|
|