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 #86872 is a reply to message #86870] Mon, 09 December 2013 10:32 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
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
>
[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: Sat Oct 11 00:57:08 PDT 2025

Total time taken to generate the page: 0.88893 seconds