Re: [Jprogramming] plot: units ratio

2022-03-23 Thread R.E. Boss
Am I the only one who has this "easy solution"? pd 'reset' pd <"1 y pd 'aspect ',":%~/(>./-<./)"1 y pd 'show' R.E. Boss -Original Message- From: Programming On Behalf Of Hauke Rehr Sent: dinsdag 22 maart 2022 19:57 To: programm...@jsoftware.co

Re: [Jprogramming] plot: units ratio

2022-03-22 Thread Raul Miller
On Tue, Mar 22, 2022 at 2:57 PM Hauke Rehr wrote: > There is some value in convenience, and this question > didn’t come up for the first time. It’s not to be expected > to be the last time either unless an easy solution is provided. ... > [I don’t know the available 'pd' commands too well >

Re: [Jprogramming] plot: units ratio

2022-03-22 Thread Hauke Rehr
There is some value in convenience, and this question didn’t come up for the first time. It’s not to be expected to be the last time either unless an easy solution is provided. Taking the “white pixels” approach, there could be something like pd 'crop xmin xmax ymin ymax' NB. or 'borders' in

Re: [Jprogramming] plot: units ratio

2022-03-22 Thread Raul Miller
On Tue, Mar 22, 2022 at 2:16 PM Devon McCormick wrote: > I think you will find very similar behavior in other plotting packages like > Excel and R. Scaling by the points plotted is the easy, simple thing to do. > Maybe I could partially implement my own wish for a fixed-frame that could > be

Re: [Jprogramming] plot: units ratio

2022-03-22 Thread Devon McCormick
I think you will find very similar behavior in other plotting packages like Excel and R. Scaling by the points plotted is the easy, simple thing to do. Maybe I could partially implement my own wish for a fixed-frame that could be applied to separate plots by plotting a fixed set of white points

Re: [Jprogramming] plot: units ratio

2022-03-22 Thread Raul Miller
On Tue, Mar 22, 2022 at 5:50 AM Martin Kreuzer wrote: > Thanks ... And I did some tests this morning: > > Plotted the *bisector (3rd, 1st quadrant) and *sin using > > pd 'xrange _1 1' > pd 'yrange _1.1 1.1' > and > pd 'aspect xx' with these values: xx= 0.866 | 1.0 | 1.155 > >

Re: [Jprogramming] plot: units ratio

2022-03-22 Thread Martin Kreuzer
Thanks ... And I did some tests this morning: Plotted the *bisector (3rd, 1st quadrant) and *sin using pd 'xrange _1 1' pd 'yrange _1.1 1.1' and pd 'aspect xx' with these values: xx= 0.866 | 1.0 | 1.155 Results: aspect: 0.866 | 1.0 | 1.155

Re: [Jprogramming] plot: units ratio

2022-03-22 Thread Hauke Rehr
do they? looks all good to me Am 21.03.22 um 22:47 schrieb Elijah Stone: (A side note: does anyone know why when I post REPL session transcriptions, they become misaligned?) -- -- mail written using NEO neo-layout.org

Re: [Jprogramming] plot: units ratio

2022-03-21 Thread Devon McCormick
I think a lot of plot programs take the dimensions of the plot from the values being plotted. I've sometimes wished for some kind of "frame" option to allow us to force the dimensions to avoid this variability. It's especially annoying when you compare separate plots of similar but different

Re: [Jprogramming] plot: units ratio

2022-03-21 Thread Elijah Stone
(A side note: does anyone know why when I post REPL session transcriptions, they become misaligned?) On Mon, 21 Mar 2022, Elijah Stone wrote: On Mon, 21 Mar 2022, Martin Kreuzer wrote: [I'm writing under the influence of a (so long) mild attack of big C, so beg your pardon if reads a bit

Re: [Jprogramming] plot: units ratio

2022-03-21 Thread Elijah Stone
On Mon, 21 Mar 2022, Martin Kreuzer wrote: [I'm writing under the influence of a (so long) mild attack of big C, so beg your pardon if reads a bit incoherently in places.] Sad to hear that. Hope you get better soon. When plotting a unit circle (using pd commands and options) I got

Re: [Jprogramming] plot: units ratio

2022-03-21 Thread Raul Miller
0.9 is a pretty close approximation for %:0.75 (less than 4% off). 0.9%%:0.75 1.03923 Thanks, -- Raul On Mon, Mar 21, 2022 at 2:41 PM Devon McCormick wrote: > > I did some experiments with drawing hexagons and decided a ratio of 0.9 > worked best:

Re: [Jprogramming] plot: units ratio

2022-03-21 Thread Devon McCormick
I did some experiments with drawing hexagons and decided a ratio of 0.9 worked best: https://code.jsoftware.com/wiki/NYCJUG/HexagonAspects . On Mon, Mar 21, 2022 at 10:48 AM Raul Miller wrote: > On Mon, Mar 21, 2022 at 7:18 AM Martin Kreuzer > wrote: > > The option 'aspect' which was suggested

Re: [Jprogramming] plot: units ratio

2022-03-21 Thread Raul Miller
On Mon, Mar 21, 2022 at 7:18 AM Martin Kreuzer wrote: > The option 'aspect' which was suggested as a remedy (using a value of > 0.866, which -for reasons unknown to me- is suspiciously close to > -:%:3) has probably more to do with the aspect of the plotted grid > (and if so, in a weird way, at

[Jprogramming] plot: units ratio

2022-03-21 Thread Martin Kreuzer
Dear all - [I'm writing under the influence of a (so long) mild attack of big C, so beg your pardon if reads a bit incoherently in places.] When plotting a unit circle (using pd commands and options) I got disappointed again as it looked like a ballon from last weeks birthday party. I