Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread Hauke Rehr
for a more general solution, NB. if you don’t need any other settings in x, and y is complex Plot =: 'aspect 1; itemcolor blue,white' plot (,: |.&.+.) Plot 0.5*_1^3%~i.7 Am 10.02.21 um 04:10 schrieb Hauke Rehr: > 'aspect 1; itemcolor blue,white' plot (,: (_1^1r6)&*) 0.5*_1^3%~i.7 -- --

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread Hauke Rehr
If you don’t mind the breaks in the lines: 'aspect 1; itemcolor blue,white' plot (,: (_1^1r6)&*) 0.5*_1^3%~i.7 Am 10.02.21 um 02:44 schrieb Devon McCormick: > Yes, I suspect this is at the root of the problem. "Plot" probably sizes > the frame based on the range of values of each axis. > > O

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread Devon McCormick
These illustrate that there is some sort of rectangularization going on: 'title Skinny Tall Plot' plot tall=. 0 1j100 1j200 1j300 1j400 0.5j500 _1j500 _1j400 _1j300 _0.5j200 _0.5j100 0 'title Skinny Wide Plot' plot wide=. 0j0 100j1 200j1 300j1 400j1 500j0.5 500j_1 400j_1 300j_1 200j_0.5 100j

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread Devon McCormick
Yes, I suspect this is at the root of the problem. "Plot" probably sizes the frame based on the range of values of each axis. On Tue, Feb 9, 2021 at 8:29 PM bill lam wrote: > The hexagon has vertices on x axis but the flat side on y axis. the > distance between opposite vertices is longer than

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread bill lam
Right, there seems something wrong. I would use a more naive way to measure. print 2 copies on paper, overlap them together and then rotate 1 of them to check if they match exactly. On Wed, Feb 10, 2021, 9:27 AM Devon McCormick wrote: > I'm only plotting to PDF. What I did to "measure" it was

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread bill lam
The hexagon has vertices on x axis but the flat side on y axis. the distance between opposite vertices is longer than the distance between opposite sides. On Wed, Feb 10, 2021, 9:13 AM Ric Sherlock wrote: > I enlarged the plot window, took a screenshot and then measured the > distance between _0

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread Devon McCormick
I'm only plotting to PDF. What I did to "measure" it was to bring a screenshot into a paint program, cut off the top (horizontal) side, add perpendicular lines at each corner, rotate it 60 degrees then paste it back onto the original picture, lining it up with the top right edge. This is all show

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread Ric Sherlock
I enlarged the plot window, took a screenshot and then measured the distance between _0.8 to 0.8 on the two axes using an on-screen ruler, the Y-axis distance is about a centimetre longer than the X-axis distance. On Wed, Feb 10, 2021 at 1:52 PM bill lam wrote: > I think it's ok to have differen

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread bill lam
I think it's ok to have different axis length, but the unit of each axis should have the same physical length. Is this a bug in qt output only? Did you try output to pdf and then print it out on paper, and measure the length of each side of the hexagon using a ruler? On Wed, Feb 10, 2021, 7:42 AM

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread Devon McCormick
Well, on my screen the hexagon looks too tall and the y-axis has extremes of (_0.4, 0.4) whereas the x-axis goes from _0.5 to 0.5, so it does not look properly regular. On Tue, Feb 9, 2021 at 4:19 PM 'Bo Jacoby' via Programming < programm...@jsoftware.com> wrote: > Devon - 'aspect 1' plot 0.5*_1

Re: [Jprogramming] Aspect ratio of plot

2021-02-09 Thread 'Bo Jacoby' via Programming
Devon - 'aspect 1' plot 0.5*_1^3%~i.7 looks perfect! Den tirsdag den 9. februar 2021 03.12.52 CET skrev Devon McCormick : Hauke - you are correct.  A hexagon can be thought of as six equilateral triangles. Bo - you are correct only for an unscaled hexagon.  See how "'aspect 1' plot 0.5*_