Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1633 > unrolled thread

Tic marks

Started byDieter Britz <dieterhansbritz@gmail.com>
First post2013-02-15 15:04 +0000
Last post2013-02-18 12:58 +0000
Articles 8 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Tic marks Dieter Britz <dieterhansbritz@gmail.com> - 2013-02-15 15:04 +0000
    Re: Tic marks Dieter Britz <dieterhansbritz@gmail.com> - 2013-02-15 15:06 +0000
      Re: Tic marks Christoph Bersch <usenet@bersch.net> - 2013-02-15 16:33 +0100
        Re: Tic marks Dieter Britz <dieterhansbritz@gmail.com> - 2013-02-18 09:39 +0000
          Re: Tic marks Dieter Britz <dieterhansbritz@gmail.com> - 2013-02-18 09:46 +0000
            Re: Tic marks Dieter Britz <dieterhansbritz@gmail.com> - 2013-02-18 10:13 +0000
              Re: Tic marks Christoph Bersch <usenet@bersch.net> - 2013-02-18 11:35 +0100
                Re: Tic marks Dieter Britz <dieterhansbritz@gmail.com> - 2013-02-18 12:58 +0000

#1633 — Tic marks

FromDieter Britz <dieterhansbritz@gmail.com>
Date2013-02-15 15:04 +0000
SubjectTic marks
Message-ID<kflipp$vq2$2@dont-email.me>
I have some data where the x-axis is years. The range is
[1989:2013].

I would like to have year numbers like 1990, 2000, 2010
with large tics at these numbers, but small tics for the
whole range, as I would get with

xtics 1989, 1, 2013

-- 
Dieter Britz

[toc] | [next] | [standalone]


#1634

FromDieter Britz <dieterhansbritz@gmail.com>
Date2013-02-15 15:06 +0000
Message-ID<kfliuf$vq2$3@dont-email.me>
In reply to#1633
On Fri, 15 Feb 2013 15:04:25 +0000, Dieter Britz wrote:

> I have some data where the x-axis is years. The range is [1989:2013].
> 
> I would like to have year numbers like 1990, 2000, 2010 with large tics
> at these numbers, but small tics for the whole range, as I would get
> with
> 
> xtics 1989, 1, 2013

There is another problem. I once asked here about colouring
a plot, and got a recipe, which works fine. However, it seems
to erase tic marks. For example, I have

set xtics 1990, 5, 2010
set ytics 0, 100, 300
set obj rect from graph 0, graph 0 to graph 1, graph 1 back \
    fc rgb '#FFEFD5' fillstyle solid 0.5

and the numbers come out on both axes, but no tic marks. Is
this an effect of the set obj line?
-- 
Dieter Britz

[toc] | [prev] | [next] | [standalone]


#1635

FromChristoph Bersch <usenet@bersch.net>
Date2013-02-15 16:33 +0100
Message-ID<kflkf8$ai0$1@dont-email.me>
In reply to#1634
Am 15.02.2013 16:06, schrieb Dieter Britz:
> On Fri, 15 Feb 2013 15:04:25 +0000, Dieter Britz wrote:
>
>> I have some data where the x-axis is years. The range is [1989:2013].
>>
>> I would like to have year numbers like 1990, 2000, 2010 with large tics
>> at these numbers, but small tics for the whole range, as I would get
>> with
>>
>> xtics 1989, 1, 2013
>
> There is another problem. I once asked here about colouring
> a plot, and got a recipe, which works fine. However, it seems
> to erase tic marks. For example, I have
>
> set xtics 1990, 5, 2010
> set ytics 0, 100, 300
> set obj rect from graph 0, graph 0 to graph 1, graph 1 back \
>      fc rgb '#FFEFD5' fillstyle solid 0.5
>
> and the numbers come out on both axes, but no tic marks. Is
> this an effect of the set obj line?

set tics front
set xtics 1990, 5, 2010 scale 1,1
set mxtics 5
set ytics 0, 100, 300
set obj rect from graph 0, graph 0 to graph 1, graph 1 back \
      fc rgb '#FFEFD5' fillstyle solid 0.5

This should solve both problems.

Christoph

[toc] | [prev] | [next] | [standalone]


#1645

FromDieter Britz <dieterhansbritz@gmail.com>
Date2013-02-18 09:39 +0000
Message-ID<kfsss8$scf$1@dont-email.me>
In reply to#1635
On Fri, 15 Feb 2013 16:33:41 +0100, Christoph Bersch wrote:

> Am 15.02.2013 16:06, schrieb Dieter Britz:
>> On Fri, 15 Feb 2013 15:04:25 +0000, Dieter Britz wrote:
>>
>>> I have some data where the x-axis is years. The range is [1989:2013].
>>>
>>> I would like to have year numbers like 1990, 2000, 2010 with large
>>> tics at these numbers, but small tics for the whole range, as I would
>>> get with
>>>
>>> xtics 1989, 1, 2013
>>
>> There is another problem. I once asked here about colouring a plot, and
>> got a recipe, which works fine. However, it seems to erase tic marks.
>> For example, I have
>>
>> set xtics 1990, 5, 2010 set ytics 0, 100, 300 set obj rect from graph
>> 0, graph 0 to graph 1, graph 1 back \
>>      fc rgb '#FFEFD5' fillstyle solid 0.5
>>
>> and the numbers come out on both axes, but no tic marks. Is this an
>> effect of the set obj line?
> 
> set tics front set xtics 1990, 5, 2010 scale 1,1 set mxtics 5 set ytics
> 0, 100, 300 set obj rect from graph 0, graph 0 to graph 1, graph 1 back
> \
>       fc rgb '#FFEFD5' fillstyle solid 0.5
> 
> This should solve both problems.
> 
> Christoph

Thanks, but the tic marks at the numbers are the same size as
all the others. Can they not be made bigger?

-- 
Dieter Britz

[toc] | [prev] | [next] | [standalone]


#1646

FromDieter Britz <dieterhansbritz@gmail.com>
Date2013-02-18 09:46 +0000
Message-ID<kfst8p$ubq$1@dont-email.me>
In reply to#1645
On Mon, 18 Feb 2013 09:39:20 +0000, Dieter Britz wrote:

> On Fri, 15 Feb 2013 16:33:41 +0100, Christoph Bersch wrote:
> 
>> Am 15.02.2013 16:06, schrieb Dieter Britz:
>>> On Fri, 15 Feb 2013 15:04:25 +0000, Dieter Britz wrote:
>>>
>>>> I have some data where the x-axis is years. The range is [1989:2013].
>>>>
>>>> I would like to have year numbers like 1990, 2000, 2010 with large
>>>> tics at these numbers, but small tics for the whole range, as I would
>>>> get with
>>>>
>>>> xtics 1989, 1, 2013
>>>
>>> There is another problem. I once asked here about colouring a plot,
>>> and got a recipe, which works fine. However, it seems to erase tic
>>> marks. For example, I have
>>>
>>> set xtics 1990, 5, 2010 set ytics 0, 100, 300 set obj rect from graph
>>> 0, graph 0 to graph 1, graph 1 back \
>>>      fc rgb '#FFEFD5' fillstyle solid 0.5
>>>
>>> and the numbers come out on both axes, but no tic marks. Is this an
>>> effect of the set obj line?
>> 
>> set tics front set xtics 1990, 5, 2010 scale 1,1 set mxtics 5 set ytics
>> 0, 100, 300 set obj rect from graph 0, graph 0 to graph 1, graph 1 back
>> \
>>       fc rgb '#FFEFD5' fillstyle solid 0.5
>> 
>> This should solve both problems.
>> 
>> Christoph
> 
> Thanks, but the tic marks at the numbers are the same size as all the
> others. Can they not be made bigger?

Found it out, scale 2,1. I should have known.

-- 
Dieter Britz

[toc] | [prev] | [next] | [standalone]


#1647

FromDieter Britz <dieterhansbritz@gmail.com>
Date2013-02-18 10:13 +0000
Message-ID<kfsurl$4on$1@dont-email.me>
In reply to#1646
On Mon, 18 Feb 2013 09:46:01 +0000, Dieter Britz wrote:

> On Mon, 18 Feb 2013 09:39:20 +0000, Dieter Britz wrote:
> 
>> On Fri, 15 Feb 2013 16:33:41 +0100, Christoph Bersch wrote:
>> 
>>> Am 15.02.2013 16:06, schrieb Dieter Britz:
>>>> On Fri, 15 Feb 2013 15:04:25 +0000, Dieter Britz wrote:
>>>>
>>>>> I have some data where the x-axis is years. The range is
>>>>> [1989:2013].
>>>>>
>>>>> I would like to have year numbers like 1990, 2000, 2010 with large
>>>>> tics at these numbers, but small tics for the whole range, as I
>>>>> would get with
>>>>>
>>>>> xtics 1989, 1, 2013
>>>>
>>>> There is another problem. I once asked here about colouring a plot,
>>>> and got a recipe, which works fine. However, it seems to erase tic
>>>> marks. For example, I have
>>>>
>>>> set xtics 1990, 5, 2010 set ytics 0, 100, 300 set obj rect from graph
>>>> 0, graph 0 to graph 1, graph 1 back \
>>>>      fc rgb '#FFEFD5' fillstyle solid 0.5
>>>>
>>>> and the numbers come out on both axes, but no tic marks. Is this an
>>>> effect of the set obj line?
>>> 
>>> set tics front set xtics 1990, 5, 2010 scale 1,1 set mxtics 5 set
>>> ytics 0, 100, 300 set obj rect from graph 0, graph 0 to graph 1, graph
>>> 1 back \
>>>       fc rgb '#FFEFD5' fillstyle solid 0.5
>>> 
>>> This should solve both problems.
>>> 
>>> Christoph
>> 
>> Thanks, but the tic marks at the numbers are the same size as all the
>> others. Can they not be made bigger?
> 
> Found it out, scale 2,1. I should have known.

One more question:
I want a line at y = 0, so I added

set xzeroaxis

to the code. But there is none. Do the above commands somehow
block a zero line?

-- 
Dieter Britz

[toc] | [prev] | [next] | [standalone]


#1648

FromChristoph Bersch <usenet@bersch.net>
Date2013-02-18 11:35 +0100
Message-ID<kft03h$btv$1@dont-email.me>
In reply to#1647
Am 18.02.2013 11:13, schrieb Dieter Britz:
>
> set xzeroaxis
>
> to the code. But there is none. Do the above commands somehow
> block a zero line?

Yes, the rectangle covers the zeroaxis, which does not have the option 
to be shifted to the front.

Use

set arrow from graph 0,first 0 to graph 1, first 0 nohead lt 0

Christoph

[toc] | [prev] | [next] | [standalone]


#1649

FromDieter Britz <dieterhansbritz@gmail.com>
Date2013-02-18 12:58 +0000
Message-ID<kft8i9$ipc$1@dont-email.me>
In reply to#1648
On Mon, 18 Feb 2013 11:35:16 +0100, Christoph Bersch wrote:

> Am 18.02.2013 11:13, schrieb Dieter Britz:
>>
>> set xzeroaxis
>>
>> to the code. But there is none. Do the above commands somehow block a
>> zero line?
> 
> Yes, the rectangle covers the zeroaxis, which does not have the option
> to be shifted to the front.
> 
> Use
> 
> set arrow from graph 0,first 0 to graph 1, first 0 nohead lt 0
> 
> Christoph

The problem was that the plot consists of points, many of which lie
on the zero line, which is why I wanted to lift this a little.
However, I got around this in a better way by inverting the scales in
the xtics line, e.g.

set xtics 1990, 5, 2015 scale -2,-1

which now gives me tic marks pointing down and out of the way. So
I don't need to lift the zero axis.

Thanks for your help!
-- 
Dieter Britz

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web