From b982fe5af13a4e88bece33f09bb7c319938a8eb9d3ea1fd007008c0e58cc2d30 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 9 Jan 2024 09:42:47 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=159 --- gnuplot-5.2.0-texi2info.patch | 39 +++++++++--------- gnuplot-doc.changes | 5 +++ gnuplot.changes | 5 +++ gnuplot.spec | 14 +++++-- webp_figures.gnu | 75 +++++++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+), 22 deletions(-) create mode 100644 webp_figures.gnu diff --git a/gnuplot-5.2.0-texi2info.patch b/gnuplot-5.2.0-texi2info.patch index c8f1818..c1cc120 100644 --- a/gnuplot-5.2.0-texi2info.patch +++ b/gnuplot-5.2.0-texi2info.patch @@ -1,6 +1,6 @@ --- gnuplot.texi -+++ gnuplot.texi 2020-07-17 09:17:43.019856719 +0000 -@@ -11599,8 +11599,7 @@ but ++++ gnuplot.texi 2024-01-09 09:29:57.128897341 +0000 +@@ -13570,8 +13570,7 @@ but @end example See also @@ -10,12 +10,14 @@ @node arrow, autoscale, angles, set-show @subsection arrow -@@ -23249,13 +23248,10 @@ Syntax: +@@ -26079,15 +26078,12 @@ Syntax: @{[no]enhanced@} @end example -@end itemizeif @example + @{fillchar @{solid|""@}@} + @{[no]attributes@} @{mono|ansi|ansi256|ansirgb@} @end example @@ -24,15 +26,16 @@ where and set the size of the text block. The default is 79 by 24. The last newline is printed only if `feed` is enabled. -@@ -23293,7 +23289,6 @@ See also e.g. the description at +@@ -26129,8 +26125,6 @@ See also e.g. the description at @uref{https://en.wikipedia.org/wiki/ANSI_escape_code#Colors,https://en.wikipedia.org/wiki/ANSI_escape_code#Colors } -@end itemizeif - Example: +- + The `attributes` option enables bold and italic text on terminals or + emulators that support the escape sequences @example - set term dumb mono size 60,15 aspect 1 -@@ -23667,8 +23662,6 @@ Preferred combinations are `medium norma +@@ -26475,8 +26469,6 @@ Preferred combinations are `medium norma With each of these drivers, a binary copy is required on a PC to print. Do not use `print`---use instead `copy file /b lpt1:`. @@ -41,7 +44,7 @@ @node excl, fig, epson_180dpi, complete_list_of_terminals @subsection excl -@@ -24370,8 +24363,6 @@ the environmental variable GNUPLOT_LUA_D +@@ -27170,8 +27162,6 @@ the environmental variable GNUPLOT_LUA_D All arguments will be provided to the selected script for further evaluation. E.g. 'set term lua tikz help' will cause the script itself to print additional help on options and choices for the script. @@ -50,7 +53,7 @@ @node mf, mp, lua, complete_list_of_terminals @subsection mf -@@ -25124,7 +25115,6 @@ terminals. It has no options." +@@ -27932,7 +27922,6 @@ terminals. It has no options." @c ?term km-tek40xx @cindex km-tek40xx @@ -58,7 +61,7 @@ @c ?commands set terminal selanar @c ?set terminal selanar @c ?set term selanar -@@ -25132,7 +25122,6 @@ terminals. It has no options." +@@ -27940,7 +27929,6 @@ terminals. It has no options." @c ?term selanar @cindex selanar @@ -66,15 +69,15 @@ @c ?commands set terminal sixeltek @c ?set terminal sixeltek @c ?set term sixeltek -@@ -25156,7 +25145,6 @@ limits plots to 16 simultaneous colors, +@@ -27972,7 +27960,6 @@ For use with xterm, xterm must be compil - Note that gnuplot also supports another sixel output terminal, sixelgd, + Note that gnuplot also supports another sixel output terminal, `sixelgd`, that offers more options and features." -@end itemizeif @c ?commands set terminal bitgraph @c ?set terminal bitgraph @c ?set term bitgraph -@@ -25164,7 +25152,6 @@ that offers more options and features." +@@ -27980,7 +27967,6 @@ that offers more options and features." @c ?term bitgraph @cindex bitgraph @@ -82,7 +85,7 @@ This family of terminal drivers supports a variety of VT-like terminals. `tek40xx` supports Tektronix 4010 and others as well as most TEK emulators. `vttek` supports VT-like tek40xx terminal emulators. -@@ -25718,7 +25705,6 @@ anti-aliasing, oversampling and full tra +@@ -28517,7 +28503,6 @@ anti-aliasing, oversampling and full tra deprecated. The `GDI backend` which uses the classic GDI API is deprecated and has been disabled in this version. @@ -90,7 +93,7 @@ `GDI+ backend` draws to the screen using the GDI+ Windows API. It supports full antialiasing, oversampling, transparency and custom dash patterns. -@@ -25748,7 +25734,6 @@ of an additional redraw after releasing +@@ -28547,7 +28532,6 @@ of an additional redraw after releasing `Line Styles...` allows customization of the line colors and styles. @@ -98,7 +101,7 @@ `Update wgnuplot.ini` saves the current window locations, window sizes, text window font, text window font size, graph window font, graph window font size, background color to the initialization file `wgnuplot.ini`. -@@ -25914,8 +25899,6 @@ This file is located in the user's appli +@@ -28713,8 +28697,6 @@ This file is located in the user's appli Line5=0 0 128 0 4 @end example @@ -107,7 +110,7 @@ @c ^

Text window options

These settings apply to the wgnuplot text-window only." -@@ -25952,7 +25935,6 @@ solid line in color mode, or a dashed li +@@ -28751,7 +28733,6 @@ solid line in color mode, or a dashed li line width is 1 pixel. If `Linestyle` is negative, it specifies the width of a SOLID line in pixels. Line1 and any linestyle used with the `points` style must be SOLID with unit width. @@ -115,7 +118,7 @@ See `graph-menu`." -@@ -26338,13 +26320,10 @@ later by `set term x11 [no]raise [no]per +@@ -29137,13 +29118,10 @@ later by `set term x11 [no]raise [no]per `-ctrlq ` closes window on ctrl-q rather than q @end example diff --git a/gnuplot-doc.changes b/gnuplot-doc.changes index b33bfb5..b54eb4b 100644 --- a/gnuplot-doc.changes +++ b/gnuplot-doc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 9 09:24:03 UTC 2024 - Dr. Werner Fink + +- Add missing doc/webp_figures.gnu fronm upstream git repo + ------------------------------------------------------------------- Tue Jan 9 08:36:10 UTC 2024 - Dr. Werner Fink diff --git a/gnuplot.changes b/gnuplot.changes index b33bfb5..b54eb4b 100644 --- a/gnuplot.changes +++ b/gnuplot.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 9 09:24:03 UTC 2024 - Dr. Werner Fink + +- Add missing doc/webp_figures.gnu fronm upstream git repo + ------------------------------------------------------------------- Tue Jan 9 08:36:10 UTC 2024 - Dr. Werner Fink diff --git a/gnuplot.spec b/gnuplot.spec index 2ad2aa5..7a678cd 100644 --- a/gnuplot.spec +++ b/gnuplot.spec @@ -94,6 +94,7 @@ Source0: https://downloads.sourceforge.net/project/gnuplot/gnuplot/%{vers Source1: https://downloads.sourceforge.net/project/gnuplot/gnuplot/%{version}/Gnuplot%{underscore}.pdf Source2: gnuplot-fr.doc.bz2 Source3: README.whynot +Source4: webp_figures.gnu # https://mirrors.ctan.org/macros/latex209/contrib/picins/picins.sty # That's a build requirement, not provided by Tex Live Source5: picins.sty @@ -158,10 +159,14 @@ autoreconf -fi %endif %endif +%if "%{flavor}" == "" mkdir bin ln -sf /bin/true bin/dvips ln -sf /bin/true bin/emacs + ln -sf /bin/true bin/kpsewhich + ln -sf /bin/true bin/texhash PATH=${PATH}:${PWD}/bin +%endif %configure \ --with-x \ @@ -203,9 +208,10 @@ autoreconf -fi %if "%{flavor}" == "doc" mv src/Makefile{,_INACESSIBLE} pushd docs/ - mkdir -p htmldocs - cp toc_entr.sty htmldocs/ - make GNUPLOT_EXE=%{_bindir}/gnuplot srcdir=. clean html pdf + cp -p %{S:4} webp_figures.gnu + make GNUPLOT_EXE=%{_bindir}/gnuplot srcdir=. clean + make GNUPLOT_EXE=%{_bindir}/gnuplot srcdir=. allterm.h allterm-ja.h + make GNUPLOT_EXE=%{_bindir}/gnuplot srcdir=. html pdf make srcdir=. gnuplot.texi patch -p0 < %{S:6} make srcdir=. info @@ -245,7 +251,7 @@ autoreconf -fi rm -vf tutorial/eg7.pdf rm -rvf demo/html install -m 0444 docs/*.info* %{buildroot}/%{_infodir}/ - install -m 0444 docs/htmldocs/* %{buildroot}/%{_docdir}/gnuplot/doc/html + install -m 0444 docs/html/* %{buildroot}/%{_docdir}/gnuplot/doc/html install -m 0444 docs/psdoc/*.pdf %{buildroot}/%{_docdir}/gnuplot/doc/ install -m 0444 docs/psdoc/*.ps %{buildroot}/%{_docdir}/gnuplot/doc/ install -m 0444 docs/psdoc/*.gpi %{buildroot}/%{_docdir}/gnuplot/doc/ diff --git a/webp_figures.gnu b/webp_figures.gnu new file mode 100644 index 0000000..38d8e3a --- /dev/null +++ b/webp_figures.gnu @@ -0,0 +1,75 @@ +# +# generate animations for inclusion with HTML help documents +# +set term webp animate delay 50 size 300,300 +set output './html/figure_spinning_d20.webp' + +unset border; unset tics; unset key; set view equal xyz +set margins 0,0,0,0 +set pm3d border linecolor "black" +do for [ang=1:360:2] { + set view 60, ang, 1.7 + splot 'icosahedron.dat' with polygons fc "gold" +} +unset output + +# This figure is already in the repository as a static illustration +# +# set term pngcairo size 300,300 +# set output './html/figure_static_d20.png' +# replot +# unset output + +reset + +# +# Convex hull used to mask a pm3d surface +# (webp because the svg version is 10x larger) +# +set term webp font "Calisto MT,12" noanimate size 600,400 +set output './html/figure_mask.webp' + +set view map +set palette rgb 33,13,10 +set xrange [-30:25] +set yrange [-30:25] + +set dgrid3d 100,100 gauss 5 +set pm3d explicit + +unset key +unset tics +unset colorbox +unset border + +set table $HULL +plot 'mask_pm3d.dat' using 1:2 convexhull with lines title "Convex hull" +unset table + +set multiplot layout 1,2 spacing 0.0 margins 0.05,0.95,0.0,0.85 +set title "Cluster of points\n defining the mask region" +splot 'mask_pm3d.dat' using 1:2:3 with pm3d, \ + 'mask_pm3d.dat' using 1:2:(0) nogrid with points pt 7 ps .5 lc "black" + +set pm3d interp 3,3 +set title "pm3d surface masked by\nconvex hull of the cluster" +splot $HULL using 1:2:(0) with mask, \ + 'mask_pm3d.dat' using 1:2:3 mask with pm3d + +unset multiplot + +# same thing as a png image for fallback if browser does not support webp +set term png font "Calisto MT,12" size 600,400 +set output './html/figure_mask.png' +set multiplot layout 1,2 spacing 0.0 margins 0.05,0.95,0.0,0.85 +set title "Cluster of points\n defining the mask region" +splot 'mask_pm3d.dat' using 1:2:3 with pm3d, \ + 'mask_pm3d.dat' using 1:2:(0) nogrid with points pt 7 ps .5 lc "black" +set pm3d interp 3,3 +set title "pm3d surface masked by\nconvex hull of the cluster" +splot $HULL using 1:2:(0) with mask, \ + 'mask_pm3d.dat' using 1:2:3 mask with pm3d +unset multiplot + +reset +