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


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

Re: Dynamically setting mxtics between two xtics

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Dynamically setting mxtics between two xtics
Followup-To comp.graphics.apps.gnuplot
Date 2012-01-12 13:01 -0800
Organization gnuplot development team
Message-ID <jenhn0$rdh$1@dont-email.me> (permalink)
References <171a69a5-1063-43b2-94e4-c498b855ed2e@a17g2000yqj.googlegroups.com>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | View raw


Satish Thareja wrote:

> I am trying to plot data samples via gnuplot( ver. 4.2.2).
> The data is collected with a frequency of 10 minutes and the graphs
> are generated dynamically after every data collection process.
> Gnuplot automatically adds xtics on the graph, but I am confused on
> how does it decide what interval to use.eg:
> 1. For smaller intervals xtics are positioned at 1 hour, 2 hour
> intervals
> 2. For data spanning from 1 to 5 days xtics are positioned at 12 hour
> intervals
> 3. For Further ahead xtics are positioned at 24 hour intervals
> 
> The problem comes when when we want to visualize the data using the
> mxtics( minor xtics ), I am not able to decide the number of mxtics to
> be inserted between two xtics.
> 
> In concise, is there a way so that mxtics are drawn on the graph for
> every data sample ( either as an option in gnuplot OR some way to find
> out the interval between the xtics to set the mxtics appropriately).

Placing a tic mark on the axis for every data point in the graph is
called a "rug plot" or "rug graph" in other plotting packages.

Gnuplot does not offer this as an separate plotting style, but you can
achieve the same effect by using, for example

   plot 'foo' using 1 : 2 : xticlabels("") : yticlabels("")

However this is not precisely what you asked for, since it sets the
xtics and ytics rather than xmtics and ymtics.

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


Thread

Dynamically setting mxtics between two xtics Satish Thareja <satishthareja@gmail.com> - 2012-01-11 23:06 -0800
  Re: Dynamically setting mxtics between two xtics Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-01-12 19:46 +0100
  Re: Dynamically setting mxtics between two xtics sfeam <sfeam@users.sourceforge.net> - 2012-01-12 13:01 -0800
  Re: Dynamically setting mxtics between two xtics Ingo Thies <ingo.thies@gmx.de> - 2012-01-13 10:50 +0100
    Re: Dynamically setting mxtics between two xtics scanty <satishthareja@gmail.com> - 2012-01-18 05:12 -0800
      Re: Dynamically setting mxtics between two xtics Ingo Thies <ingo.thies@gmx.de> - 2012-01-18 18:25 +0100
        Re: Dynamically setting mxtics between two xtics ab <ab.3942@googlemail.com> - 2012-01-19 00:43 -0800
          Re: Dynamically setting mxtics between two xtics scanty <satishthareja@gmail.com> - 2012-01-23 03:38 -0800
            Re: Dynamically setting mxtics between two xtics Ingo Thies <ingo.thies@gmx.de> - 2012-01-23 16:25 +0100

csiph-web