Save big plots into any file [message #92277] |
Mon, 09 November 2015 18:51  |
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   |
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  |
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
|
|
|