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


Groups > comp.graphics.apps.gnuplot > #2586

Re: controlling amount of xtics

From Ethan A Merritt <EAMerritt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: controlling amount of xtics
Date 2014-09-18 22:17 -0700
Organization made entirely of Lego
Message-ID <lvge8l$qp7$1@dont-email.me> (permalink)
References <9823b0ef-6c28-4118-9fbe-fb5ba9dbbcdf@googlegroups.com>

Show all headers | View raw


Kalin Kozhuharov wrote:

> Hello,
> 
> I often need long strings for xtics, like full timestamps; example:
> http://gamma.tar.bz/nGeigies/42.png code:
> https://github.com/thinrope/fixed_sensor_visualization/blob/master/timeplot.gpl
> 
> Depending on the time such plot is generated, the number of xtics is
> changing +/- 1 and when it is +1 it is too crowded.
> 
> Is there a way to say I want "no more than N xtics", without having to
> specify their position/label explicitly?
> 
> Or some other way to restrict too crowded labels?

The usual thing is to tilt the labels downward by 45°.
    set xtics rotate by -45 left


> Ideally gnuplot should take into consideration the rendered width of
> (at least) fixed labels and space them appropriately, but I know that
> is too hard in general.
> 
> Kalin.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

controlling amount of xtics Kalin Kozhuharov <me.kalin@gmail.com> - 2014-09-18 19:05 -0700
  Re: controlling amount of xtics Ethan A Merritt <EAMerritt@gmail.com> - 2014-09-18 22:17 -0700
    Re: controlling amount of xtics Kalin Kozhuharov <me.kalin@gmail.com> - 2014-09-24 07:21 -0700

csiph-web