Created: Dec 3 2017 at 19:58:11
Windows 7
Hello DyalogAPL'er
The SharpPlot example by Nicolas Delcros
NicolasExample
⍝ Quelle: Nicolas Delcros-Dyalog'17-Hesingor
⍝ 1. Set Frame
⎕USING←',sharpplot.dll' ',system.drawing.dll'
sp←⎕NEW Causeway.SharpPlot(800 600)
⍝ 2. Set Parameters
sp.Heading←'My Chart'
sp.LineGraphStyle←Causeway.LineGraphStyles.GridLines
⍝ 3. Draw
data←+\¯40+?100⍴100
sp.DrawLineGraph⊂data
⍝ 4. Output(to file or stream)
System.Drawing.Imaging.ImageFormat.Png
sp.SaveImage'D:\mychart.png'[aplcode]
ends with the following errors:
Png
LENGTH ERROR
NicolasExample[18] sp.SaveImage'D:\mychart.png'
∧
For this feature and for SharpPlot programming following questions:
1. What are the lines for
System.Drawing.Imaging.ImageFormat.Png
sp.SaveImage'D:\mychart.png'
2. What should the two lines look like for the above function to run without errors?
3. Is there any description for the implementation of SharpPlot - C # in SharpPlot - DyalogAPL Commands?
4. How must e.g. the C # command
sp = new SharpPlot (PaperSize.Landscape (PaperSize.A5));be rewritten for DyalogAPL?
Many thanks in advance for your help!
Leo