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

make xtics stay on top of every plot

3,735 views
Skip to first unread message

Matthias Pospiech

unread,
Jan 11, 2010, 6:37:26 AM1/11/10
to
In my plots, especially bar plots the xtics are always overpainted by
the bars. How can I achieve that the xtics are always on top of every plot?

Matthias

Stefan Nowy

unread,
Jan 11, 2010, 7:22:41 AM1/11/10
to
Hello!

Matthias Pospiech wrote:
> In my plots, especially bar plots the xtics are always overpainted by
> the bars. How can I achieve that the xtics are always on top of every plot?

use multiplot to plot an empty graph over the ones with your bars.

HTH
Stefan

Christoph Bersch

unread,
Jan 11, 2010, 9:30:29 AM1/11/10
to
Matthias Pospiech schrieb:

> In my plots, especially bar plots the xtics are always overpainted by
> the bars. How can I achieve that the xtics are always on top of every plot?

set style fill solid
set grid front # affects also the drawing order of the tics
unset grid
plot abs(sin(x)) with boxes


I guess introducing a 'set xtics front' (analogous to 'set border
front') could make sense.

Christoph

Grzegorz Zięba

unread,
Jan 11, 2010, 11:28:17 AM1/11/10
to
Matthias Pospiech wrote:


After plot command use

set grid
unset grid

--
Grzegorz Zięba

Matthias Pospiech

unread,
Jan 11, 2010, 1:26:55 PM1/11/10
to
Christoph Bersch schrieb:

> Matthias Pospiech schrieb:
>> In my plots, especially bar plots the xtics are always overpainted by
>> the bars. How can I achieve that the xtics are always on top of every
>> plot?
>
> set style fill solid
> set grid front # affects also the drawing order of the tics
> unset grid
> plot abs(sin(x)) with boxes
>
That however removes my grid.

How do I get the grid back?
And the grid should be in the back not in the front.
Only the tics shall be in the front.

Matthias

Matthias Pospiech

unread,
Jan 11, 2010, 2:06:13 PM1/11/10
to
Stefan Nowy schrieb:
What is the easiest way to plot an empty graph?

Matthias

Karl Ratzsch

unread,
Jan 11, 2010, 3:44:01 PM1/11/10
to

Matthias Pospiech wrote:

> What is the easiest way to plot an empty graph?
>
> Matthias


plot 1/0

sfeam

unread,
Jan 11, 2010, 6:03:54 PM1/11/10
to
Christoph Bersch wrote:

gnuplot has supported "set tics {front|back}" since the original release
of version 4.2 back in 2007. What you can't do is set the front/back
property of x separately from y.

Christoph Bersch

unread,
Jan 12, 2010, 4:24:04 AM1/12/10
to
sfeam schrieb:

> Christoph Bersch wrote:
>
>> I guess introducing a 'set xtics front' (analogous to 'set border
>> front') could make sense.
>
> gnuplot has supported "set tics {front|back}" since the original release
> of version 4.2 back in 2007. What you can't do is set the front/back
> property of x separately from y.

Ok, I didn't know that.
It seems that it is not possible to set different front|back properties
for the grid and the tics.

'set grid front' also puts the tics to front, this is documented. 'set
tics front' also affects the layer settings of the grid. Is this
intended? It not documented.

set grid back
set tics front
set style fill solid
plot abs(sin(x)) with boxes

Christoph

0 new messages