cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
lala
Level VII

Can JMP draw this kind of diagram?

 

I want JMP to do more.

Thanks!

䷀䷁䷂䷃䷄䷅䷆䷇䷈䷉䷊䷋䷌䷍䷎䷏䷐䷑䷒䷓䷔䷕䷖䷗䷘䷙䷚䷛䷜䷝䷞䷟䷠䷡䷢䷣䷤䷥䷦䷧䷨䷩䷪䷫䷬䷭䷮䷯䷰䷱䷲䷳䷴䷵䷶䷷䷸䷹䷺䷻䷼䷽䷾䷿

2024-04-28_18-06-39.png

1 ACCEPTED SOLUTION

Accepted Solutions
Craige_Hales
Super User

Re: Can JMP draw this kind of diagram?

The text angle, size, and font are specified with the same function.The text angle, size, and font are specified with the same function.

 

Craige

View solution in original post

8 REPLIES 8
Craige_Hales
Super User

Re: Can JMP draw this kind of diagram?

I think you are asking two different questions:

  1. does JSL have drawing commands that are needed to make this picture? (yes)
  2. does JMP have a platform, or could JSL be written, to make the semantic information this diagram represents?

This particular diagram is pretty, but perfectly organized so it probably doesn't encode anything interesting; the outer ring just counts from 0 to 31 on the left and 32 to 63 on the right. The inner blocks count from 63 to 0 from top to bottom.

Craige
lala
Level VII

Re: Can JMP draw this kind of diagram?

I just want to make this form of graphics on the line, don't worry about the text ranking order.
This is 64 characters.

 

Thanks Experts!

lala
Level VII

Re: Can JMP draw this kind of diagram?

In order to make A simple picture, can you use the 25 letters A-Y to draw a similar picture with JSL?

The circle of the outer ring and the distribution of 5*5 in the middle.The order of the letters is unlimited.

This one can only be done with expert help.

A-Y

Thanks Experts!

Craige_Hales
Super User

Re: Can JMP draw this kind of diagram?

You can. The inner square looks something like this

symbols = "abcdefghijklmnopqrstuvwxyz";
n = sqrt(25);
radius = sqrt(2) * n/2 + 2; 
i = 0;
for(x=1, x<=n, x+=1,
   for(y=1, y<=n, y+=1,
      i += 1;
      sym = substring(symbols, i, 1);
// - n/2 centers the x and y about 0,
// adding radius moves the center text( { x - n/2 + radius, y - n/2 + radius }, sym ); ) )

The outer ring looks something like this

for(i = 0, i<25, i+=1,
   sym = substr(symbols,i+1, 1)
   fraction = i / 25; // 0 <= fraction < 1
   x = radius * cos( fraction * 2 * pi() ); // cos and sin make unit circle   
   y =  radius * sin( fraction * 2 * pi() ); // coordinates, then scale with radius
// the scripting index has an example that rotates the text
   text( { x + radius, y + radius }, sym )
)

This assumes you'll make a graph with axes from 0 to 2*radius and you'll adjust the font size and you'll put this in the graphics script.

Craige
lala
Level VII

Re: Can JMP draw this kind of diagram?

Thank Craige!

sym = substring(symbols, i, 1);

substring?

Did not pass.

lala
Level VII

Re: Can JMP draw this kind of diagram?

I searched for rotates the text, only found this, not yet understand how to apply.

2024-04-29_22-36-50.png

Thanks Experts!

Craige_Hales
Super User

Re: Can JMP draw this kind of diagram?

The text angle, size, and font are specified with the same function.The text angle, size, and font are specified with the same function.

 

Craige
lala
Level VII

Re: Can JMP draw this kind of diagram?

I SEE

Thanks Experts!

2024-04-30_13-33-11.png