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

Home » Public Forums » archive » Exporting iPlot graphics to EPS files in vector format?
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
Exporting iPlot graphics to EPS files in vector format? [message #62308] Mon, 01 September 2008 08:56 Go to next message
Tatcher is currently offline  Tatcher
Messages: 7
Registered: September 2008
Junior Member
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')
Re: Exporting iPlot graphics to EPS files in vector format? [message #62529 is a reply to message #62308] Tue, 16 September 2008 13:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
Re: Exporting iPlot graphics to EPS files in vector format? [message #62530 is a reply to message #62308] Tue, 16 September 2008 12:53 Go to previous message
jelliott.ittvis is currently offline  jelliott.ittvis
Messages: 7
Registered: September 2008
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: very simple Index question~~~help~~~
Next Topic: My Last Day on the Job

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

Current Time: Wed Oct 08 15:21:32 PDT 2025

Total time taken to generate the page: 0.00493 seconds