Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-19 Thread bill lam
J does have a gnuplot addon available for over 10 years if my memory serves me. Ср, 19 июл 2017, Rudolf Sykora написал(а): > On 17 July 2017 at 19:10, chris burke wrote: > > There is no obvious workaround, so you might have to accept the current > > behaviour. > > Eventually, I decided to edit t

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-19 Thread Rudolf Sykora
On 17 July 2017 at 19:10, chris burke wrote: > There is no obvious workaround, so you might have to accept the current > behaviour. Eventually, I decided to edit the postscript file to get the dashed-line effect, and also to obtain axes' labels with mixed symbol/italic/normal/subscript characters

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread bill lam
IIRC plot penstyle is not implemented using gl2 penstyle command. Those dash and dot are simulated using line segments. On Jul 17, 2017 9:13 PM, "Rudolf Sykora" wrote: > Hello, > > changing penstyle in a plot, I found it does not do the expected: > > --- > load 'plot numeric' > > nst

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread chris burke
There is no obvious workaround, so you might have to accept the current behaviour. The code needs fixing by someone reasonably familiar with J. I probably don't have time in the next few days, but perhaps someone else on the forum can jump in. On Mon, Jul 17, 2017 at 8:24 AM, Rudolf Sykora wrote

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread Rudolf Sykora
On 17 July 2017 at 16:42, chris burke wrote: >> Should this behave this way? > > No, it really should not. However, the line pattern calculation is based on > numbers of points, so it will shrink the step size as the number of points > increases, see linepattern in > jsoftware.com/websvn/wsvn/publ

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread chris burke
> Should this behave this way? No, it really should not. However, the line pattern calculation is based on numbers of points, so it will shrink the step size as the number of points increases, see linepattern in jsoftware.com/websvn/wsvn/public/trunk/graphics/plot/source/base/util/putil.ijs . On

[Jprogramming] unexpected behaviour of penstyles in plot

2017-07-17 Thread Rudolf Sykora
Hello, changing penstyle in a plot, I found it does not do the expected: --- load 'plot numeric' nsteps =. 50 xs =. steps _2 2, nsteps pd 'reset' pd 'type line' pd 'penstyle 0' pd xs pd 'penstyle 1' pd -xs pd 'show' --- If nsteps is 5, you can see the second line is d