SharpPlot-Command sp.Heading
6 posts
• Page 1 of 1
SharpPlot-Command sp.Heading
Hello Dyalog APL specialists
The SharpPlot command
My Question: What should the sp.Heading command look like if the text heading is stored as a vector in the script as in the following example?
Thanks for the help in advance!
Greeting Leo
The SharpPlot command
sp.Heading ← 'This is the Heading'is working.
My Question: What should the sp.Heading command look like if the text heading is stored as a vector in the script as in the following example?
text ← 'This is the Heading'
sp.Heading ...... text ......... ???
Thanks for the help in advance!
Greeting Leo
- Leo
- Posts: 38
- Joined: Mon Sep 18, 2017 12:10 pm
Re: SharpPlot-Command sp.Heading
Hi Leo,
I think it is just this:
sp.Heading ← text
Regards,
Vince
I think it is just this:
sp.Heading ← text
Regards,
Vince
- Vince|Dyalog
- Posts: 413
- Joined: Wed Oct 01, 2008 9:39 am
Re: SharpPlot-Command sp.Heading
Hello Vince,
this command leads to a domain error
Regards
Leo
this command leads to a domain error
DOMAIN ERROR
ProfDunPlot[38] sp.Heading←Text
∧
Regards
Leo
- Leo
- Posts: 38
- Joined: Mon Sep 18, 2017 12:10 pm
Re: SharpPlot-Command sp.Heading
Hello Vince,
if you add the statement with the format symbol, then it works
Best regards and thanks
Leo
if you add the statement with the format symbol, then it works
[4] tex0←DPXYY[1;1] ⍝ Nested Martix
[38] sp.Heading←⍕tex0
Best regards and thanks
Leo
- Leo
- Posts: 38
- Joined: Mon Sep 18, 2017 12:10 pm
Re: SharpPlot-Command sp.Heading
Hi Leo
How about
If the heading is the first element of the array DPXYY then it's not a simple character vector, which is what sp.Heading should be .. DPXYY[1;1] is enclose of a simple character vector ..
Regards
Andy
How about
tex0←⊃DPXYY[1;1] ⍝ or txt0←(⊂1 1)⊃DPXYY or even tex0←⊃DPXX
If the heading is the first element of the array DPXYY then it's not a simple character vector, which is what sp.Heading should be .. DPXYY[1;1] is enclose of a simple character vector ..
Regards
Andy
-
AndyS|Dyalog - Posts: 257
- Joined: Tue May 12, 2009 6:06 pm
Re: SharpPlot-Command sp.Heading
Hello Andy,
I have tried your three suggestions. They all all worked in the ScharpPlot function for sp.Heading
Thanks for the tips and best regards
Leo
I have tried your three suggestions. They all all worked in the ScharpPlot function for sp.Heading
tex0 ← ⊃DPXYY [1;1] ⍝ Tipp 1
txt0 ← (⊂1 1) ⊃DPXYY ⍝ Tipp 2
tex0 ← ⊃DPXYY ⍝ Tipp 3
sp.Heading←tex1
Thanks for the tips and best regards
Leo
- Leo
- Posts: 38
- Joined: Mon Sep 18, 2017 12:10 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group