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

Home » Public Forums » archive » EPS output from functional graphic 'LARGE' size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: EPS output from functional graphic 'LARGE' size [message #90462 is a reply to message #90460] Tue, 03 March 2015 09:35 Go to previous messageGo to previous message
Haojie Xu is currently offline  Haojie Xu
Messages: 5
Registered: March 2015
Junior Member
On Tuesday, March 3, 2015 at 10:12:48 AM UTC-7, Chris Torrence wrote:
> On Monday, March 2, 2015 at 9:00:05 PM UTC-7, Haojie Xu wrote:
>> Hi there,
>>
>> I use IDL functional graphic to create eps file inserted to latex
>> but however, I found the size of eps file is way too large.
>> say,
>> IDL> x = [0:100:0.1]
>> IDL> pl = plot(x,sin(x),'-b')
>> IDL> pl.Save,'test_sin.eps'
>>
>> it ends up with a file like 46Megabytes file.
>> For pdf output file, it seems okay, reasonable size but I found preview has some issue to opensome pdf output file from IDL.
>>
>> Is there any suggestion that I can use functional graphics to produce elegant eps file?
>>
>>
>> Thanks
>> H
>
> Hi H,
>
> It looks like it is defaulting to "bitmap" format instead of "vector". I don't know why. When I run your commands I get a tiny EPS file (only about 24 KB). Try forcing it to use vector:
>
> pl.Save,'test_sin.eps',bitmap=0
>
> Cheers,
> Chris
> ExelisVIS

Hi Chris,

Yes, you are right. I use bitmap = 1 for default because I use some symbols in labels or titles,i.e., $M_{\odot}$, which is required to add this flag to show correctly on vector eps and pdf.

To avoid this, maybe I can use some function like 'TEXTOIDL' to produce the string I need and then put it on whatever I want.

Sounds ok?(I have not text this idea yet ) or maybe other elegant way?

Best,
H
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Function fitting in IDL
Next Topic: Semi-transparent filled contours with direct graphics

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

Current Time: Wed Oct 08 13:54:49 PDT 2025

Total time taken to generate the page: 0.00199 seconds