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
}
|
|
|
Re: Problems saving/exporting FG [message #92607 is a reply to message #92604] |
Thu, 21 January 2016 14:26   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Thursday, January 21, 2016 at 5:56:08 PM UTC, Helder wrote:
> 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
> }
Hi,
I just tested this on another machine and got no problem:
IDL> !version
{
"ARCH": "x86_64",
"OS": "Win32",
"OS_FAMILY": "Windows",
"OS_NAME": "Microsoft Windows",
"RELEASE": "8.5.1",
"BUILD_DATE": "Nov 14 2015",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}
Either this is a 8.5->8.5.1 issue or the different hardware gives different results (what *I guess* should not happen when using software rendering...).
Cheers,
Helder
|
|
|
Re: Problems saving/exporting FG [message #93556 is a reply to message #92607] |
Thu, 18 August 2016 05:07  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Thursday, January 21, 2016 at 11:26:43 PM UTC+1, Helder wrote:
> On Thursday, January 21, 2016 at 5:56:08 PM UTC, Helder wrote:
>> 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
>> }
>
> Hi,
> I just tested this on another machine and got no problem:
> IDL> !version
> {
> "ARCH": "x86_64",
> "OS": "Win32",
> "OS_FAMILY": "Windows",
> "OS_NAME": "Microsoft Windows",
> "RELEASE": "8.5.1",
> "BUILD_DATE": "Nov 14 2015",
> "MEMORY_BITS": 64,
> "FILE_OFFSET_BITS": 64
> }
>
> Either this is a 8.5->8.5.1 issue or the different hardware gives different results (what *I guess* should not happen when using software rendering...).
>
> Cheers,
> Helder
It's been 7 months since I posted this and so far I haven't found a solution. The problem got worst and worst, to the point that more than 90% of my graphics exports showed the error. I've reported this at Harris and they gave me a temporary fix that is working great so far. The trick is to run IDL in Windows 7 compatibility mode.
I have a few posts with code to show the error on my (very very slowly growing) idl-blog:
http://idl.marchetto.de/problems-exporting-fg-graphics/
http://idl.marchetto.de/problems-exporting-fg-graphics-2/
http://idl.marchetto.de/problems-exporting-fg-graphics-tempo rary-solution/
I hope it helps, because it was really frustrating.
Cheers,
Helder
|
|
|