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

Home » Public Forums » archive » Font size appearance in function graphics PNG and EPS output
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: Font size appearance in function graphics PNG and EPS output [message #86873 is a reply to message #86872] Mon, 09 December 2013 11:20 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, December 9, 2013 11:32:49 AM UTC-7, Paul van Delst wrote:
> Hi Chris,
>
>
>
> Excellent, thanks. The "HEIGHT=500.0/96" tip is also useful - despite
>
> the strange line plotting.
>
>
>
> The EPS files are included inside LaTeX (and, in some cases, Word)
>
> documents. I've never tried embedding PDFs inside those (since the final
>
> result is to create a PDF for distro) but I'll give it a shot.
>
>
>
> cheers,
>
>
>
> paulv
>
>
>
> p.s. Schedule for 8.3.1 release?
>
>
>
> On 12/09/13 12:50, Chris Torrence wrote:
>
>> Hi Paul,
>
>>
>
>> Well, there are a couple of things going on. The PNG assumes that
>
>> your
>
> screen is 96 dots-per-inch, and scales the fonts accordingly. Since EPS
>
> is a vector format on a "piece of paper", you need to set your EPS width
>
> to match the PNG image width. Something like this:
>
>> p.save, 'test.eps', HEIGHT=500.0/96 ; height in inches However, there
>
>> is something wrong with our postscript code where it
>
> doesn't draw the plot lines correctly, so this isn't going to work, even
>
> in IDL 8.3.
>
>>
>
>> I'm not sure if you have to use EPS, but as a possible workaround,
>
>> you
>
> could use PDF output instead. If you do try PDF, you just need to make
>
> sure that you set the "paper" width to be the same as the png image.
>
> Something like this:
>
>>
>
>> x = DINDGEN(100)
>
>> y = (x/10.0d0)^2
>
>> p = PLOT(x,y, $
>
>> XTITLE='X axis title', $
>
>> YTITLE='Y axis title', $
>
>> TITLE ='Test plot title', $
>
>> FONT_SIZE=10)
>
>> p.save, 'test.png', HEIGHT=500
>
>> p.save, 'test.pdf', HEIGHT=500.0/96 ; height in inches
>
>>
>
>> I have logged the EPS issues as bug IDL-68997, and marked it for IDL
>
> 8.3.1. Sorry about the bug...
>
>>
>
>> -Chris
>
>> ExelisVIS
>
>>

Hi Paul,
One other tip - if you aren't trying to edit the EPS files, but you are just embedding them, then you might be better off just going straight to a bitmap file:
p.save, 'test.png', BORDER=10, RESOLUTION=600 ; dots-per-inch
PNG is a pretty efficient file format, so your files won't be too large. You could even cut the resolution down to 300 depending upon the journal requirements.
I also tend to use the BORDER keyword when creating bitmap output. That way I don't have to worry about too much whitespace around the outside of my plots. But that is optional.

Cheers,
Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changing the symbol, color, etc., of "mean" indicator in box plots
Next Topic: Controlling axis labels in IDL plots?

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

Current Time: Sun Oct 12 05:47:45 PDT 2025

Total time taken to generate the page: 0.64067 seconds