Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2347
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Major and minor ticks artifact |
| Date | Sat, 15 Mar 2014 10:54:59 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 88 |
| Message-ID | <lg181h$su3$1@speranza.aioe.org> (permalink) |
| References | <levp7j$tvo$1@speranza.aioe.org> <bnhe21F5utsU1@mid.dfncis.de> <lg01bh$dlr$1@speranza.aioe.org> <lg0nl1$f7t$1@dont-email.me> |
| NNTP-Posting-Host | RYXWUwPSGYWrJViRnQ40Lw.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.graphics.apps.gnuplot:2347 |
Show key headers only | View raw
On 15.03.2014 06:17, sfeam wrote: > Janis Papanagnou wrote: > >> On 02.03.2014 20:10, Hans-Bernhard Bröker wrote: >>> On 02.03.2014 18:19, Janis Papanagnou wrote: >>>> I noticed an ugly artifact that at on place a minor tic is >>>> unnecessarily displayed, and even straight *besides* the major tic. >>>> This was with a png >>>> term definition set term png size 800,600 . If I change that >>>> definition >>>> to set term png size 800,599 the artifact disappears. It's, yet >>>> again, a work-around. >>>> >>>> Is that how gnuplot works and how experienced people "solve" such >>>> issues, or is there any better approach? >>> >>> How is anyone supposed to be able to answer that if you didn't even >>> start to describe what you actually did in gnuplot to get this >>> effect? >> >> I am sorry that I didn't expand on details of the code. I was hoping >> that such an observation - meanwhile I'd just call it a bug[*] - is >> well known, so that there's already some standard hint to that. (Has >> that really never been observed before? Hard to believe, but anyway.) >> >> What I did was defining a y-axis range with major tics=1 and minor >> tics=0.1 resolution, or, if you prefer actual code... >> >> set ytics 10 >> set mytics 2 >> set y2tics 1 >> set my2tics 10 >> >> The range of the y2 axis (where I observed the artifact) was defined >> as >> >> set y2r [0:6] > > I am going to guess that you have misinterpreted what you are seeing in > the plot. It is not an extra tic on any single axis. Instead the > problem is that you are plotting two set of tics on each axis > and since the end-points of the two axes do not match up, > neither do the tics. > > The crucial thing missing from the commands you show above is the "nomirror" > attribute. Without it the y tics are drawn on both the right and left sides, > the y2 tics are also drawn on both the right and left sides, and > hilarity results when ymin != y2man or ymax != y2max or both. > > Note that unless you do somethine to tie them together, the y and y2 > axes are scaled independently. I have to apologize again! I really should have posted the whole gnuplot program to not mislead the readers here. Actually I *have* the command set ytics nomirror in my code! That is a sufficient command IIUC? But, in addition, the two y-axis tics also always correlate; the ranges are choosen so that the y2 axis' tics are always a superset of the y axis. The y-range is of size 60 with major tics every 10 steps and minor tics every 5 units, defined as set ytics 10 set mytics 2 So, IIUC, I have implemented _two separate means_ to not make happen what you assumed. You can inspect the outcome at http://volatile.gridbug.de/ytics599.png ## looks ok http://volatile.gridbug.de/ytics600.png ## y2 artifact at y-value 1 and find the gnuplot definitions of the test program (for ok case "599") here http://volatile.gridbug.de/ytics Thanks. Janis > > Ethan > [...]
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-02 18:19 +0100
Re: Major and minor ticks artifact Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2014-03-02 20:10 +0100
Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-14 23:54 +0100
Re: Major and minor ticks artifact sfeam <sfeam@users.sourceforge.net> - 2014-03-14 22:17 -0700
Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-15 10:54 +0100
Re: Major and minor ticks artifact Karl <mail.kfr@gmx.net> - 2014-03-18 18:38 +0100
Re: Major and minor ticks artifact Hermann Peifer <peifer@gmx.eu> - 2014-03-20 07:10 +0100
Re: Major and minor ticks artifact Hermann Peifer <peifer@gmx.eu> - 2014-03-15 13:27 +0100
Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-15 23:02 +0100
Re: Major and minor ticks artifact Hermann Peifer <peifer@gmx.eu> - 2014-03-16 01:54 +0100
Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-21 05:52 +0100
Re: Major and minor ticks artifact Dan Luecking <LookInSig@uark.edu> - 2014-03-20 12:24 -0500
Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-21 05:54 +0100
csiph-web