comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problems saving/exporting FG
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problems saving/exporting FG [message #92604] Thu, 21 January 2016 09:56 Go to previous message
Helder Marchetto is currently offline  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
}
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: FREE to use
Next Topic: Calling Supermongo in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:35:25 PDT 2025

Total time taken to generate the page: 0.11723 seconds