Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1559
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Ingo Thies <ingo.thies@gmx.de> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Image or special files do not work on y2 axis? |
| Date | Sat, 29 Dec 2012 15:06:23 +0100 |
| Lines | 29 |
| Message-ID | <ak8bmvFf1e8U1@mid.individual.net> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net YFf/ecsfQP5vGxzd0R9xgA4lbd9rqmnnl0GRfmJSbYVvit+rdh4UY3vKobMAowQ3wX |
| Cancel-Lock | sha1:l6B+ytj68cxchDi4Hewj1iUnmWg= |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
| Xref | csiph.com comp.graphics.apps.gnuplot:1559 |
Show key headers only | View raw
Dear all, I am currently trying to trick a gradient fill below a curve by the following method: f(x)=-x*x+1. xmin=-1.;xmax=1. ymin=0.;ymax=1.2 set xrange [xmin:xmax];set cbrange [xmin:xmax] set y2range [0:1]#dummy yrange #set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" ) set palette file 'RGB_palettes/rainbow.gpf' u 1:2:3:4; set xrange [xmin:xmax];set cbrange [xmin:xmax] #set yrange [ymin:ymax]#actual yrange using y2 axis set yrange [0:*] unset colorbox unset y2tics; set ytics autofreq plot '++' using 1:2:1 axes x1y2 with image,\ f(x) axes x1y1 notitle w filledcurves below y1=ymax lc rgb "white",\ f(x) axes x1y1 t 'f(x)' w l lc rgb "#000000" While this works without problem for the "palette defined ..." method it fails for "palette file ...", with an error message "y range is invalid". However, if I exchange y1 and y2 axes it works. My guess: gnuplot can define file dummy files of the type '++' and similar properly only if axes x1y1 is used. Otherwise the palette specification fails. Did I found a bug here? Or is there a bug in the script above? IngO
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
Image or special files do not work on y2 axis? Ingo Thies <ingo.thies@gmx.de> - 2012-12-29 15:06 +0100
Re: Image or special files do not work on y2 axis? sfeam <sfeam@users.sourceforge.net> - 2012-12-29 14:15 -0800
Re: Image or special files do not work on y2 axis? Ingo Thies <ingo.thies@gmx.de> - 2012-12-30 11:12 +0100
Re: Image or special files do not work on y2 axis? sfeam <sfeam@users.sourceforge.net> - 2012-12-31 12:09 -0800
Re: Image or special files do not work on y2 axis? Ingo Thies <ingo.thies@gmx.de> - 2013-01-01 13:36 +0100
csiph-web