update x-y ranges?
Leo Butler <[email protected]> Thu, 28 Nov 2024 14:05:39 -0600
| Newsgroups | gmane.comp.graphics.gnuplot.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am not sure if this is the right venue, please re-direct me if it is not. In the Maxima package draw [1], one finds a snippet of gnuplot code that goes like this: w filledcurves~a xy=~a,~a lc ~a axis ~a (the ~a are place holder for values, like %s in a printf template). According to git, this line was checked in on the first commit of the package 18 years ago. We got a bug report yesterday [2] that the part xy=.... is causing an error. I have attached the Gnuplot file generated by a trimmed down example extracted from that bug report. My questions are: 1. Was this syntax ever supported by gnuplot? If so, what did it do and how can the same effect be achieved in more recent gnuplots? 2. Assuming the syntax was supported, when was support removed? TIA, Leo [1] - https://sourceforge.net/p/maxima/code/ci/master/tree/share/draw/gnuplot.lisp#l902 [2] - https://sourceforge.net/p/maxima/bugs/4424/ _______________________________________________ gnuplot-beta mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
maxout2675.gnuplot
(text/plain, 1 KB)
set terminal GNUTERM size 600, 500
if(GPVAL_VERSION >= 5.0){set for [i=1:8] linetype i dashtype i; set format '%h'}
set zero 0.0
set datafile separator whitespace
set size 1.0, 1.0
set origin 0.0, 0.0
set obj 1 rectangle behind from screen 0.0,0.0 to screen 1.0,1.0
set obj 1 fc rgb '#ffffff' fs solid 1.0 noborder
set size noratio
set xrange [-4.0:0.0]
set yrange [-3.0:3.0]
set cbrange [*:*]
unset logscale x
unset logscale x2
unset logscale y
unset logscale y2
unset logscale cb
unset grid
set title ''
set xlabel ''
set x2label ''
set ylabel ''
set y2label ''
set border 15
set key top right
unset xzeroaxis
unset yzeroaxis
unset x2tics
set xtics nomirror
set xtics norotate border autofreq
unset y2tics
set ytics nomirror
set ytics norotate border autofreq
set cbtics autofreq
set colorbox
set cblabel ''
set palette rgbformulae 7,5,15
plot '/tmp/data2675.gnuplot' index 0 notitle w filledcurves fillstyle solid 0.1 xy=-1.0,0.0 lc rgb '#FFB6C1' axis x1y1,'/tmp/data2675.gnuplot' index 1 t '' w l lw 1 lt 1 lc rgb '#0000FF' axis x1y1
unset output
data2675.gnuplot
(text/plain, 2.1 KB)
0.0 -2.4492935982947064e-16 -0.02507208781817649 -0.22252093395631464 -0.09903113209758097 -0.43388373911755834 -0.2181685175319703 -0.6234898018587337 -0.3765101981412666 -0.7818314824680299 -0.566116260882442 -0.9009688679024193 -0.7774790660436858 -0.9749279121818236 -1.0000000000000002 -1.0 -1.2225209339563146 -0.9749279121818236 -1.4338837391175583 -0.900968867902419 -1.6234898018587338 -0.7818314824680297 -1.78183148246803 -0.6234898018587334 -1.900968867902419 -0.433883739117558 -1.9749279121818235 -0.22252093395631428 -2.0 1.2246467991473532e-16 -1.9749279121818235 0.2225209339563145 -1.900968867902419 0.43388373911755823 -1.78183148246803 0.6234898018587336 -1.6234898018587334 0.7818314824680299 -1.433883739117558 0.9009688679024191 -1.2225209339563143 0.9749279121818236 -0.9999999999999999 1.0 -0.7774790660436856 0.9749279121818236 -0.5661162608824418 0.9009688679024191 -0.3765101981412664 0.7818314824680298 -0.2181685175319702 0.6234898018587335 -0.09903113209758085 0.4338837391175581 -0.02507208781817638 0.2225209339563144 0.0 0.0 0.0 -2.4492935982947064e-16 -0.02507208781817649 -0.22252093395631464 -0.09903113209758097 -0.43388373911755834 -0.2181685175319703 -0.6234898018587337 -0.3765101981412666 -0.7818314824680299 -0.566116260882442 -0.9009688679024193 -0.7774790660436858 -0.9749279121818236 -1.0000000000000002 -1.0 -1.2225209339563146 -0.9749279121818236 -1.4338837391175583 -0.900968867902419 -1.6234898018587338 -0.7818314824680297 -1.78183148246803 -0.6234898018587334 -1.900968867902419 -0.433883739117558 -1.9749279121818235 -0.22252093395631428 -2.0 1.2246467991473532e-16 -1.9749279121818235 0.2225209339563145 -1.900968867902419 0.43388373911755823 -1.78183148246803 0.6234898018587336 -1.6234898018587334 0.7818314824680299 -1.433883739117558 0.9009688679024191 -1.2225209339563143 0.9749279121818236 -0.9999999999999999 1.0 -0.7774790660436856 0.9749279121818236 -0.5661162608824418 0.9009688679024191 -0.3765101981412664 0.7818314824680298 -0.2181685175319702 0.6234898018587335 -0.09903113209758085 0.4338837391175581 -0.02507208781817638 0.2225209339563144 0.0 0.0