help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fonts on pdf plots do not match screen (XP, 3.2.4)


From: Keith Grider
Subject: Re: Fonts on pdf plots do not match screen (XP, 3.2.4)
Date: Fri, 3 Dec 2010 17:02:20 -0600

Tatsuro,

Thanks for the pointer. This is very useful. 

I wondered why the gnuplot window was so dumb. With this, I get the gnuplot toolbar. I am guessing this will come in handy later.

When I did add the line:
putenv('GNUTERM', 'wxt');

to my octaverc file, I then got the gnuplot window to display using the fonts that were showing up in the pdf file. 

To this I also added the other 2 lines that Bob suggested to the octaverc file as well:
set(0,"defaultaxesfontname","arial");
set(0,"defaultaxesfontsize",10);

Now, I get the same behavior I was getting in Linux.

Thanks!

Keith

2010/12/3 Tatsuro MATSUOKA <address@hidden>
Hello

I cannot figure out the origin correctly.


For pdf print, it uses pdfcairo terminal on the gnuplot.
I do not know, on your linux, which terminal is used to generate pdf.
Please open the both pdf file (generated by octave for windows ) and see the properties.

If it is generated by the pdfcairo, you can find a descriptio of 'cairo 1.8.8
(http://cairographics.org)' in the creator field.
In the Octave on cygwin, I found 'cairo 1.8.10 (http://cairographics.org)'

On screen, octave for windows uses the windows terminal of the gnuplot.
Please try 'wxt' terminal.  It uses the cairo libraries to draw figures.

You can use it by writing,
putenv('GNUTERM', 'wxt');
in the startup file.

For the startup file, please the octave manual.

Another option
If you have the ghostscript or adobe acrobat, please try to print in ps device and convert it to the
pdf format. I do not know it gives you what you want.

Regards

Tatsuro
--- keithspg  wrote:

>
> I am certain this is a windows issue, but I am trying to get a colleague onto
> Octave for data analysis and want his plots to look similar to mine
> generated from Linux.
>
> I have noticed that the fonts used when generating a pdf of a plot are not
> the same as what gnuplot shows. Under linux they appear the same. In
> Windows, not so much. I grabbed the latest 3.2.4 windows installer and
> installed that to my machine. The plots are generated on screen and it looks
> like helvetica/arial is used for all text on the plot. Wnen I generate a
> pdf, it appears to use TNR. How can I get the font to be similar to on
> screen when I generate the pdfs?
>
> The code I am using:
> > x=(1:10);
> > y=(20:-2,1);
> > plot(x,y)
> > title("Plot of Bob")
> > print bob.pdf
>
> The on screen (gnuplot) looks great, The pdf uses a significantly different
> font.
>
> KeithG
> --
> View this message in context:
>
http://octave.1599824.n4.nabble.com/Fonts-on-pdf-plots-do-not-match-screen-XP-3-2-4-tp3071701p3071701.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
--------------------------------------
Learn more about HIV/AIDS - Red Ribbon Campaign 2010
http://pr.mail.yahoo.co.jp/redribbon/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]