23 Jan 2014 04:00 PM |
|
Hi folks
I'm new to object oriented programming but have certainly learned to appreciate the utility of the new plot functions introduced in ver 8+. Once I produce a plot reference using (for example) p = plot(args), and then do a series of property modifications on it (i.e., p.title = 'string', etc), I end up with this really useful thing, namely the reference p that has all the properties and data in one place.
My question is this: once I close the plot window the plot is gone, I still have this plot reference in memory - is there an easy way to re-plot it? This would seem to me to be a useful way to store and then retrieve data, complete with all the properties settings from previous sessions. I realize I can save the current plot window to a graphics file, but that seems really limited compared to storing and then re-plotting the plot object itself, so that it can continue to be manipulated without having to essentially start over and call a new plot function.
Thanks for any advice -
|
|
|
|
Deleted User New Member
Posts:  
23 Jan 2014 05:23 PM |
|
Hi Gregory,
Actually, there is a feature request on our system to do that.
The only thing I can see that you can do is to save the object handle into a save file, then restore it, and then if you print the handle you can see all the properties that were used to plot the plot, but there is no way to simply get the window plot again. Something like this:
.f
p=PLOT(/test)
SAVE, /VARIABLES, FILENAME = 'plot_test.sav'
Then, when you double click in the save file IDL will open and the "p" variable is restore. If you then type:
print, p
you will the original properties of the plot. But that's all you can do.
Please, don't hesitate asking us about the status of that feature request anytime in the future.
Cheers,
fernando
|
|
|
|
Deleted User New Member
Posts:  
24 Jan 2014 08:08 AM |
|
Thank you Fernando,
It's nice to know I'm not crazy in wanting to do this, so I'll add my vote to that particular feature request. I had thought of a method to do it just as you describe, but that seemed cumbersome. BTW I'm a TDAS user (THEMIS Data Analysis Software) which you might have heard of. It uses pointers and plot properties in a very object-like way (but doesn't use the new IDL object-based graphics themselves). With this one feature, I could imagine the entire TDAS system being ported over to an IDL object-based approach that would have a much higher degree of flexibility and functionality ... and that would be great.
|
|
|
|
Deleted User New Member
Posts:  
24 Jan 2014 11:11 AM |
|
Hi Gregory,
Your last comments are very very intersting. I will be adding them into the Feature Request, if you don't mind. Our Product Management Team are always open to this kind of information and comments. Thank you.
I have also added your name to the feature request.
Cheers!
fernando
|
|
|
|
Deleted User New Member
Posts:  
11 Mar 2014 11:00 AM |
|
+1 for this feature request! I just ran into a similar scenario. I export the plot as a .png but I also want to be able to restore the data and use the data selection tool in the future. Specifically, I want to find the x value at specific y values using the handy GUI plot interface. Being able to replot directly from the stored object file would be perfect for this so I don't have to regenerate the entire plot from scratch (especially considering that many pieces of the source code are out of my control and may change).
|
|
|
|
Deleted User New Member
Posts:  
04 Jul 2014 03:26 AM |
|
We exported .isv files from many years using Itools. This feature is essential for publications and it should be nice to have this
support available in the new graphics functions entries.
|
|
|
|
Deleted User New Member
Posts:  
05 Feb 2015 10:48 AM |
|
Hi folks,
Just checking back in ~6 months later, and after the release of IDL 8.4, to see if this feature has been implemented. Any news?
|
|
|
|