| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hej! It's my first entry in this newsgroup and I hope you can help me. I found the code below on David Fannings homepage to export iPlot windows in EPS files. But I like to export the EPS file in vector instead of bitmap format in order to get "scaleable" and smooth graphics. Any ideas if this is possible or which keyword I have to change? NAME DESCRIPTION TYPES SHOW_EXECUTION_UI SOURCE ITEM_ID DESTINATION FILENAME VARIABLE SCALE_FACTOR I am looking forward to hear from you. Christian Example code: idTool=itgetcurrent(tool=oTool) ; First disable the Export wizard dialog. void = oTool->DoSetProperty('Operations/File/Export', 'SHOW_EXECUTION_UI', 0) ; Export the entire window. void = oTool->DoSetProperty('Operations/File/Export', 'SOURCE', 1) void = oTool->DoSetProperty('Operations/File/Export', 'FILENAME', 'plot.eps') void = oTool->DoAction('Operations/File/Export') |
|
#2
| |||
| |||
| You can do it from iplot or plot, but in different ways: plot: In program, I haven't found a way to do it from iplot, but you can do it from the plot procedure. The way to do it there is: set_plot, 'PS' device, filename='plot.eps', /encapsulated plot, sin(2*!pi*findgen(101)/100) device, /close set_plot, 'WIN' ; or set_plot, 'X' if you are on a unix- ish machine 'WIN' for a windows machine iplot: However to do it from iplot the best way to export a vector .eps file is from the iplot window. File > Export... Then select 'To a File', click 'next' twice, change the file type to .eps, click on the 'Graphics Format' field, and pull down to 'Vector'. Then finish and you should be good to go. Both ways work. However, for plots using the shade_surf procedure, it doesn't work as hot in plot, for that iplot is much better. -- Josh Elliott ITT Visual Information Solutions |
|
#3
| |||
| |||
| jelliott.ittvis@gmail.com writes: > Both ways work. However, for plots using the shade_surf procedure, it > doesn't work as hot in plot, for that iplot is much better. Even though I retired from this newsgroup, I didn't turn the malarkey meter off. I am a HUGE fan of having ITTVIS input into this newsgroup (and always have been), but I dare say there might be the slightest degree of bias toward newfangled (and, not to mention, overly complex) technologies among some of the younger members of the corps. I would take this sentence with a huge grain of salt. :-) Cheers, David P.S. Let's just say I've already incorporated this example into my talk next month at the IDL User's Group meeting, which I have entitled 'Confessions of a Direct Graphics Junkie.' I'll take questions afterward. :-) -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.dfanning.com/ Sepore ma de ni thui. ("Perhaps thou speakest truth.") |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.