|
From: KH.Moriyama <khm...@gm...> - 2016-11-18 10:35:35
Attachments:
gp5.0.5-pointnumber-nover.patch.gz
|
Hi. I am a long user of gnuplot but new to this ML. I want to inform about my patch. (the attached) It adds a functionality "pointnumber" or "pn", which puts points along a line drawn by "linespoints" by given number of points. The result is similar to "pointinterval". But, it is more convenient because user can directly give the number of points appearing along a line without knowing the exact number of data points that makes the line. The position starting to put points is moved randomly to avoid overstruck points. A negative number for the point number works as same as pointinterval, put spaces in the line at points. It returns error in case both "pi" and "pn" are specified. I hope it is useful for everyone. mori <khm...@gm...> |
|
From: Ethan A M. <sf...@us...> - 2016-11-18 21:04:12
|
On Friday, 18 November, 2016 19:35:22 KH.Moriyama wrote: > Hi. > I am a long user of gnuplot but new to this ML. > I want to inform about my patch. (the attached) Could I ask you to upload your patch to the tracking page on SourceForge? https://sourceforge.net/p/gnuplot/patches/ I will have a look at it in more detail, but as a first comment I think that randomizing the point placement is not a good idea. It makes the points jump around when you replot, zoom, or scroll. Also the output of a script would not be exactly reproducible. Ethan > > It adds a functionality "pointnumber" or "pn", which puts points > along a line drawn by "linespoints" by given number of points. > The result is similar to "pointinterval". > But, it is more convenient because user can directly give > the number of points appearing along a line without > knowing the exact number of data points that makes the line. > > The position starting to put points is moved randomly to avoid > overstruck points. > A negative number for the point number works as same as > pointinterval, put spaces in the line at points. > It returns error in case both "pi" and "pn" are specified. > > I hope it is useful for everyone. > > mori <khm...@gm...> |
|
From: KH.Moriyama <khm...@gm...> - 2016-11-19 05:54:50
Attachments:
gp5.0.5-pointnumber-nover.patch.gz
|
Hi, Ethan, Thanks for reply. > Could I ask you to upload your patch to the tracking page on > SourceForge? > > https://sourceforge.net/p/gnuplot/patches/ Sorry, I do not know how to upload a file there. But, you can use the attached patch in anyway at your convenience. I attach a modified patch to this mail for fix of the error message in case of conflict with pointinterval, and the description about "set ..." that was actually not correct. > I will have a look at it in more detail, but as a first comment > I think that randomizing the point placement is not a good idea. > It makes the points jump around when you replot, zoom, or scroll. > Also the output of a script would not be exactly reproducible. Yes. I agree about that problem. Maybe a better way is to add another parameter to set the offset of the starting points or automatically change the location of starting points according to the number of lines plotted simultaneously. It seemed a little complicated. The present way with the random number was simpler and so far (for many years) I and some of my friends did not have practical inconvenience. mori |
|
From: KH.Moriyama <khm...@gm...> - 2017-01-28 10:47:55
|
Hi. It is a very late reply to Nov. 19 mail about a patch for "pointnumber". I modified the patch so that it does not use random number to move the offset of the first point. and i uploaded the patch to the Sourceforge patch page. best regards :-) ------- KH.Moriyama <khm...@gm...> Blog: http://whoraibo.hatenablog.com/ +81-(0)80-3386-0618 (japan) +82-(0)10-2999-2246 (korea) On Sat, Nov 19, 2016 at 2:54 PM, KH.Moriyama <khm...@gm...> wrote: > Hi, Ethan, > > Thanks for reply. > > > Could I ask you to upload your patch to the tracking page on > > SourceForge? > > > > https://sourceforge.net/p/gnuplot/patches/ > > Sorry, I do not know how to upload a file there. But, you can > use the attached patch in anyway at your convenience. > I attach a modified patch to this mail for fix of the error message > in case of conflict with pointinterval, and the description > about "set ..." that was actually not correct. > > > I will have a look at it in more detail, but as a first comment > > I think that randomizing the point placement is not a good idea. > > It makes the points jump around when you replot, zoom, or scroll. > > Also the output of a script would not be exactly reproducible. > > Yes. I agree about that problem. > Maybe a better way is to add another parameter to set the > offset of the starting points or automatically change > the location of starting points according to the number of lines > plotted simultaneously. It seemed a little complicated. > The present way with the random number was simpler and so far > (for many years) I and some of my friends did not > have practical inconvenience. > > mori > > |