|
From: Lutz M. <lut...@gm...> - 2015-07-01 21:19:25
|
Hello, I was browsing the gnuplot website looking for some color palettes, and I noticed that the demo illustrating pm3d colors seems to be broken: http://gnuplot.sourceforge.net/demo/pm3dcolors.html In the first demo all 9 palettes are the same, which matches neither their title nor the little code snippet on the right. Best, Lutz |
|
From: tmacchant <tma...@ya...> - 2015-07-02 01:37:59
|
>In the first demo all 9 palettes are the same, which matches neither their title nor the little code snippet on the right. Confirmed. I have run load 'pm3dcolors.dem' and gotten a screenshot on gnuplot 5. <http://gnuplot.10905.n7.nabble.com/file/n19584/pm3dcolors.png> Palettes changes as expected. Therefore gnuplot itself works correctly. The demo on the web page might be auto generated. Something was wrong in the process. Anyway the web page should be revised. I do not have any write access to the web page. Perhaps those who have write access will revises the demo page. Tatsuro -- View this message in context: http://gnuplot.10905.n7.nabble.com/pm3dcolors-demo-broken-tp19583p19584.html Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |
|
From: tmacchant <tma...@ya...> - 2015-07-02 05:49:07
|
In the last post I have generated the plot in wxt terminal. That worked correctly However, as in written web site I have re-generate it using set terminal png transparent nocrop enhanced size 450,320 font "arial,8" set output 'pm3dcolors.1.png' load 'C:\Programs\gp510-64\demo\pm3dcolors.dem' set output <http://gnuplot.10905.n7.nabble.com/file/n19585/pm3dcolors.png> This is the same as on the web site. Is this a png terminal bug? Is this better to be filed into bug ticket? Tatsuro -- View this message in context: http://gnuplot.10905.n7.nabble.com/pm3dcolors-demo-broken-tp19583p19585.html Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |
|
From: sfeam <sf...@us...> - 2015-07-02 06:12:07
|
On Wednesday, 01 July 2015 10:24:49 PM tmacchant wrote: > In the last post I have generated the plot in wxt terminal. > That worked correctly > > However, as in written web site I have re-generate it using > > set terminal png transparent nocrop enhanced size 450,320 font "arial,8" > set output 'pm3dcolors.1.png' > load 'C:\Programs\gp510-64\demo\pm3dcolors.dem' > set output > > <http://gnuplot.10905.n7.nabble.com/file/n19585/pm3dcolors.png> > > This is the same as on the web site. > > Is this a png terminal bug? The web site is generated using the pngcairo terminal. The png (libgd) terminal by default creates a file with indexed colors, 245 colors maximum. This is not enough to create multiple smooth palettes. To create files with full 24-bit RGB color you must say set term png truecolor ... > Is this better to be filed into bug ticket? > Tatsuro I do not think there is a bug here. Ethan |
|
From: Daniel J S. <dan...@ie...> - 2015-07-02 06:16:08
|
On 07/02/2015 12:24 AM, tmacchant wrote: > In the last post I have generated the plot in wxt terminal. > That worked correctly > > However, as in written web site I have re-generate it using > > set terminal png transparent nocrop enhanced size 450,320 font "arial,8" > set output 'pm3dcolors.1.png' > load 'C:\Programs\gp510-64\demo\pm3dcolors.dem' > set output > > <http://gnuplot.10905.n7.nabble.com/file/n19585/pm3dcolors.png> > > This is the same as on the web site. > > Is this a png terminal bug? Possibly, but I don't think so. It may be that libgd is limited in terms of colors. In term/gd.trm is stated: /* TODO: how to recover from a multiplot with two colour pm3d maps? They must use the same palette! Or palette size must be restricted to certain number of colours---a new user's option */ There is an immediate solution, which is to add the option truecolor, i.e., set term png truecolor works for me. > Is this better to be filed into bug ticket? If you wish. Dan |
|
From: Petr M. <mi...@ph...> - 2015-07-07 12:54:35
|
>> set terminal png transparent nocrop enhanced size 450,320 font "arial,8" >> set output 'pm3dcolors.1.png' >> load 'C:\Programs\gp510-64\demo\pm3dcolors.dem' >> set output >> >> <http://gnuplot.10905.n7.nabble.com/file/n19585/pm3dcolors.png> >> >> This is the same as on the web site. >> >> Is this a png terminal bug? > > Possibly, but I don't think so. It may be that libgd is limited in > terms of colors. In term/gd.trm is stated: > > /* TODO: how to recover from a multiplot with two colour pm3d maps? > They must use the same palette! Or palette size must be > restricted to certain number of colours---a new user's option > */ Old time ago, "gd" was a library for gif files only, so limited to 256 colours, and thus the reason for adding "set palette maxcolors" in gnuplot (very old "new user's option"). I think there might have been an error message like "no more available colours". Do you think that it is worth to add such a message, saying also "use option truecolor", and removing (I think mine) old TODO? --- PM |
|
From: Tatsuro M. <tma...@ya...> - 2015-07-02 06:35:03
|
----- Original Message ----- > From: sfeam > To: gnuplot-betat > Cc: tmacchant > Date: 2015/7/2, Thu 15:09 > Subject: Re: pm3dcolors demo broken > > On Wednesday, 01 July 2015 10:24:49 PM tmacchant wrote: >> In the last post I have generated the plot in wxt terminal. >> That worked correctly >> >> However, as in written web site I have re-generate it using >> >> set terminal png transparent nocrop enhanced size 450,320 font > "arial,8" >> set output 'pm3dcolors.1.png' >> load 'C:\Programs\gp510-64\demo\pm3dcolors.dem' >> set output >> >> <http://gnuplot.10905.n7.nabble.com/file/n19585/pm3dcolors.png> >> >> This is the same as on the web site. >> >> Is this a png terminal bug? > > The web site is generated using the pngcairo terminal. > > The png (libgd) terminal by default creates a file with > indexed colors, 245 colors maximum. This is not enough > to create multiple smooth palettes. To create files with > full 24-bit RGB color you must say > > set term png truecolor ... > >> Is this better to be filed into bug ticket? >> Tatsuro > > I do not think there is a bug here. > > Ethan Ok. I have confirmed that truecolor option resolve the issue on png terminal. And it is not a bug. > The web site is generated using the pngcairo terminal. I have believed so but In the page http://gnuplot.sourceforge.net/demo/pm3dcolors.html Click herefor minimal script to generate this plot And clicked here. There described. # set terminal png transparent nocrop enhanced size 450,320 font "arial,8" # set output 'pm3dcolors.1.png' g(x)=x GPFUN_g = "g(x)=x" splot g(x) So I tried to generate the plot by set terminal png transparent nocrop enhanced size 450,320 font "arial,8" set output 'pm3dcolors.1.png' The image downloaded from the web site and generated the above setting using gnuplot 5.1 is almost the same. As far as this image, the image created by png terminal with the above option but not pngcairo terminal. Anyway the page should be revised. Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2015-07-06 01:26:09
|
----- Original Message ----- > From: Tatsuro MATSUOKA > To: Merritt Ethan ; gnuplot-beta > Cc: > Date: 2015/7/2, Thu 15:34 > Subject: Re: pm3dcolors demo broken > > ----- Original Message ----- > >> From: sfeam >> To: gnuplot-betat >> Cc: tmacchant >> Date: 2015/7/2, Thu 15:09 >> Subject: Re: pm3dcolors demo broken >> >> On Wednesday, 01 July 2015 10:24:49 PM tmacchant wrote: >>> In the last post I have generated the plot in wxt terminal. >>> That worked correctly >>> >>> However, as in written web site I have re-generate it using >>> >>> set terminal png transparent nocrop enhanced size 450,320 font >> "arial,8" >>> set output 'pm3dcolors.1.png' >>> load > 'C:\Programs\gp510-64\demo\pm3dcolors.dem' >>> set output >>> >>> <http://gnuplot.10905.n7.nabble.com/file/n19585/pm3dcolors.png> >>> >>> This is the same as on the web site. >>> >>> Is this a png terminal bug? >> >> The web site is generated using the pngcairo terminal. >> >> The png (libgd) terminal by default creates a file with >> indexed colors, 245 colors maximum. This is not enough >> to create multiple smooth palettes. To create files with >> full 24-bit RGB color you must say >> >> set term png truecolor ... >> >>> Is this better to be filed into bug ticket? >>> Tatsuro >> >> I do not think there is a bug here. >> >> Ethan > Ok. I have confirmed that truecolor option resolve the issue on png terminal. > And it is not a bug. > >> The web site is generated using the pngcairo terminal. > > > I have believed so but > > In the page > http://gnuplot.sourceforge.net/demo/pm3dcolors.html > > > Click herefor minimal script to generate this plot > > > And clicked here. > > > There described. > # set terminal png transparent nocrop enhanced size 450,320 font > "arial,8" > # set output 'pm3dcolors.1.png' > g(x)=x > GPFUN_g = "g(x)=x" > splot g(x) > > So I tried to generate the plot by > set terminal png transparent nocrop enhanced size 450,320 font > "arial,8" > set output 'pm3dcolors.1.png' > > The image downloaded from the web site and generated the above setting using > gnuplot 5.1 > is almost the same. > > As far as this image, the image created by png terminal with the above option > but not pngcairo terminal. > > Anyway the page should be revised. > Tatsuro > I have confirmed that the page http://gnuplot.sourceforge.net/demo/pm3dcolors.html is updated with pngcairo. Thanks! Tatsuro |