Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

number size in gnuplot

1,075 views
Skip to first unread message

bakhtia...@gmail.com

unread,
Jul 15, 2010, 8:30:32 AM7/15/10
to
Hello all

I am plotting some data and I'd like to make the values (the numbers)
for X and Y bigger. Otherwise when I put this figure in a latex file
then it appears that the values on X and Y axis are too small to read.
Any idea how I can change this size?

A prompt response will be highly appreciated!

Cheers,
Reza

geep

unread,
Jul 15, 2010, 9:20:46 AM7/15/10
to

Hi,
Not sure I understand the question properly.
Anyway... if you have the X and Y values in 2 columns in a file data.txt
Then plotting "normally" could be:
plot "data.txt" using 1:2 with lines

You can easily make the values of X and Y bigger by multiplying like this:
plot "data.txt" using ($1*5):($2*5) with lines
This makes the values 5 times bigger.
Is that want you want?

Cheers,
Peter

bakhtia...@gmail.com

unread,
Jul 15, 2010, 1:04:40 PM7/15/10
to
On Jul 15, 3:20 pm, geep <g...@boursomail.com> wrote:

> On Thu, 15 Jul 2010 05:30:32 -0700, bakhtiari.r...@gmail.com wrote:
> > Hello all
>
> > I am plotting some data and I'd like to make the values (the numbers)
> > for X and Y bigger. Otherwise when I put this figure in a latex file
> > then it appears that the values on X and Y axis are too small to read.
> > Any idea how I can change this size?
>
> > A prompt response will be highly appreciated!
>
> > Cheers,
> > Reza
Hi,

Thanks for your reply!

What I want to know, it's not this issue. When I plot, at the end it
label X and Y with some number e.g X= -10, 5, 0, 5,10 (depends on data
range, ticks etc) but in any case you have some number appears on your
X and Y axis. I want to change the size of these numbers NOT the
scale of figure.

I hope I have been more clear now!

geep

unread,
Jul 15, 2010, 4:04:41 PM7/15/10
to
On Thu, 15 Jul 2010 10:04:40 -0700, bakhtia...@gmail.com wrote:

>
> What I want to know, it's not this issue. When I plot, at the end it
> label X and Y with some number e.g X= -10, 5, 0, 5,10 (depends on data
> range, ticks etc) but in any case you have some number appears on your X
> and Y axis. I want to change the size of these numbers NOT the scale of
> figure.
>
> I hope I have been more clear now!
> Reza

Hi again,
You can specifiy the font size of the numbers shown against the x and y
axis tics.
To specify the default font size 6:
set xtics font ',6'
set ytics font ',6'
or with a specific font - Helvetica & Courier are installed on my PC:
set xtics font 'Helvetica,6'
set ytics font 'Courier,6'
Cheers,
Peter


0 new messages