Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #848
| From | Ingo Thies <ingo.thies@gmx.de> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Dynamically setting mxtics between two xtics |
| Date | 2012-01-13 10:50 +0100 |
| Message-ID | <9nad3nFvm5U1@mid.individual.net> (permalink) |
| References | <171a69a5-1063-43b2-94e4-c498b855ed2e@a17g2000yqj.googlegroups.com> |
On 12.01.2012 08:06, Satish Thareja wrote: > 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). I am trying to understand what you want to do: You are asking for separate mxtics scales for each sample, or an mxtic for each data point? Both should be possible with some external processing and then writing the tics as arrows where ever you want. A similar thing has been done in this plot on Wikipedia (although it might have been made with a special software): http://upload.wikimedia.org/wikipedia/commons/b/ba/PlanckianLocus.png Here, the oblique tics and mtics of the color temperature must have been made by lines with given slopes, and I succeeded to reproduce a similar plot with gnuplot using arrows. Your task sounds much simpler since you only need vertical small arrows placed on the x axis or some parallel axis, and positions defined by your data. I have also written some algorithm to estimate the appropriate number of partitions of the tics intervals. As an example: If the xrange has a width of 10 units, than one might want xtics at 0, 2, 4..., and set mtics 4 (i.e. at 0.5 intervals), but if xscale covers 20, then xtics at 5-intervals and mtics at 1,0-intervals (i.e. set mtics 5) might look better. The algorithm outputs a gnuplot code fragment that contains the set *tics, set m*tics statements and can be loaded by a driver script. Two axes could be set this way using both x and x2 axis, but more than two simultaneous x axes, or tics positioned in some irregular way (see the color space plot above) would require them to be drawn as arrows. If you mean something entirely different, could you please give an example (maybe ASCII drawing or even a scanned hand drawing or so)? HTH, Ingo
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
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