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
Re: Problems saving/exporting FG [message #92607 is a reply to message #92604] Thu, 21 January 2016 14:26 Go to previous messageGo to previous message
Helder Marchetto is currently offline  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
[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: Sun Oct 12 10:39:17 PDT 2025

Total time taken to generate the page: 0.32057 seconds