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

Home » Public Forums » archive » Save big plots into any file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Save big plots into any file [message #92277] Mon, 09 November 2015 18:51 Go to next message
lucesmm is currently offline  lucesmm
Messages: 26
Registered: October 2014
Junior Member
Hello all
I have a plotting routine that take 6 different files and plots them in an multigraphic window. Each plot have at least 10^6 points.
So when I try to do

p06.save, 'My Plot.emf'

the program never ends and I never have the file saved as I want to.

I was wondering if this is because the large amount of point in the plots, or because it is a multigraphic plot and I am only calling the save command to the last plot generated in the window.


Also , just to plot takes a long time, is this normal?

Thank you


Luz Maria
Re: Save big plots into any file [message #92279 is a reply to message #92277] Tue, 10 November 2015 07:12 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Monday, November 9, 2015 at 8:52:07 PM UTC-6, luc...@gmail.com wrote:
> Hello all
> I have a plotting routine that take 6 different files and plots them in an multigraphic window. Each plot have at least 10^6 points.

Certainly, you can test this, outside of your current, mulitgraphic workflow to try to answer the question:

p= PLOT(RANDOMN(1L, 1000000), layout=[1, 2, 1])
p2= PLOT(RANDOMN(1L, 1000000), layout=[1, 2, 2], /CURR)
tic
;p.symbol=4
p.save, 'test.png'
toc

For me, this took 60 seconds. If I actually plot the points (by adding p.symbol=4), then it takes 121 seconds.

You can then try to add plots to see how the time changes:

You can then add a second plot:
p= PLOT(RANDOMN(1L, 1000000), layout=[1, 2, 1])
p2= PLOT(RANDOMN(1L, 1000000), layout=[1, 2, 2], /CURR)
tic
;p.symbol=4 & p2.symbol =4
p.save, 'test.png'
toc

Without plotting the individual points, it takes 55 seconds (?!); plotting each point, it takes 175 seconds.

These simple tests will allow you to figure out where the problem may be, and help answer your questions.
Re: Save big plots into any file [message #92285 is a reply to message #92279] Tue, 10 November 2015 19:54 Go to previous message
lucesmm is currently offline  lucesmm
Messages: 26
Registered: October 2014
Junior Member
Hello Phillip
Thank yo for the recomendation, I tried and it looks like for each plot I added (using symbols) it was taking abour 100 seconds. so it kind of agrees with your little experiment.
I was alsoo trying to dave it as EMF instead of PNG, and I guess that was causing a lot of the delay .

regards,

Luz Maria
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Create ortho-rectified radiance image from HDF5 data
Next Topic: Data -vs- Time Add trend line

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

Current Time: Wed Oct 08 09:09:23 PDT 2025

Total time taken to generate the page: 0.00435 seconds