Search found 17 matches

by Nicolas|Dyalog
Thu Feb 24, 2022 6:36 pm
Forum: Language
Topic: SharpPlot graph into a Windows Form
Replies: 20
Views: 41235

Re: SharpPlot graph into a Windows Form

I'd need more specific descriptions of the problems to address them. - "The bitmap pixels do not scale into screen pixels" I don't understand this sentence. It seems to have a lot of underlying assumptions. Can you describe the incorrect behaviour and the expected correct behaviour, in terms of ...
by Nicolas|Dyalog
Sat Feb 19, 2022 1:29 pm
Forum: Language
Topic: SharpPlot graph into a Windows Form
Replies: 20
Views: 41235

Re: SharpPlot graph into a Windows Form

The undocumented SharpPlotViewer has an undocumented SharpPlotImage cousin. The former derives from a Form, the latter derives from an ImageBox. ⎕USING←',sharpplot.dll' sp←⎕NEW Causeway.SharpPlot sp.DrawBarChart ⊂1 3 2 'f'⎕WC'Form' 'f.g'⎕WC'NetControl' ('ClassName' 'Causeway.SharpPlotImage') f.g.Shar ...
by Nicolas|Dyalog
Tue Jan 25, 2022 1:08 pm
Forum: Language
Topic: How to Refresh SharpPlot with new Data ?
Replies: 2
Views: 11837

Re: How to Refresh SharpPlot with new Data ?

SharpPlot is a state machine. So if you call DrawLineGraph for a second time, it will draw a second chart on top of the first. The philosophy behind this is the ability to create arbitrarily complex charts. The behaviour that you were expecting would mean that SharpPlot can only draw a single chart ...
by Nicolas|Dyalog
Mon Feb 08, 2021 8:19 am
Forum: Language
Topic: SharpPlot tables
Replies: 3
Views: 7744

Re: SharpPlot tables

1. To disable YLabels, do : sp.SetYLabels⊂0⍴⊂'' You need to do this explicitly in the second table, because it was set for the first table (remember SharpPlot is a state machine). 2. Replace lines [52] and [53] with: sp.(Heading YCaption Subheading)←'Coordinates' '' '' sp.(HeadingStyle TableStyle)←Ca ...
by Nicolas|Dyalog
Mon Jan 04, 2021 3:36 pm
Forum: Language
Topic: SharpPlot, Formatting numbers, Arrangement of the labels
Replies: 8
Views: 12607

Re: SharpPlot, Formatting numbers, Arrangement of the labels

1. For advanced formatting, you should do it directly in APL, turning each scalar number into a single string. For example replace sp.DrawTable⊂Nr p_pt r_rt T_Tt As_A Ma with sp.DrawTable⊂2 3 4 5 6 7⍕¨¨Nr p_pt r_rt T_Tt As_A Ma 2. Replace sp.KeyStyle←KeyStyles.Boxed with sp.KeyStyle←KeyStyles.(Boxed+ ...
by Nicolas|Dyalog
Mon Aug 27, 2018 12:15 pm
Forum: Language
Topic: SharpPlot Table design
Replies: 4
Views: 9850

Re: SharpPlot Table design

1 - well done ! 2 - use SharpPlot.SetValueFont. The documentation doesn't state this, I'll fix it. sp.SetValueFont'Times' 10 System.Drawing.FontStyle.Regular System.Drawing.Color.Navy 3 - use TableStyle.UseHeaders sp.TableStyle←Causeway.TableStyles.(Shadowed+UseHeaders) ⍝ zeichnet Schatten unter das ...
by Nicolas|Dyalog
Thu Aug 02, 2018 10:51 am
Forum: Language
Topic: Chart with two Y-axis without grid-lines
Replies: 2
Views: 6965

Re: Chart with two Y-axis without grid-lines

The strict way to remove Y gridlines on the second graph is to reset the YAxisStyle sp.YAxisStyle←0 before the second call to sp.DrawLineGraph on line [43] However the cool thing you probably want to use is to synchronise the new Y axis tickmarks with the previous one by modifying the YAxisStyle: sp. ...
by Nicolas|Dyalog
Tue Jun 19, 2018 9:56 am
Forum: APL Chat
Topic: Markov Cluster algorithm
Replies: 7
Views: 13069

Re: Markov Cluster algorithm

For the image I've used python with networkx. It would be nice to use APL, i've never tried to generate graphics. I'm currently using Dyalog 16 for linux, would you be able to suggest some starting point? Network graphs are documented in https://sharpplot.com/NetworkMap.htm If you've never used ...
by Nicolas|Dyalog
Wed Feb 21, 2018 3:42 pm
Forum: Language
Topic: SharpPlot, tables within the graphic
Replies: 8
Views: 23600

Re: SharpPlot, tables within the graphic

Very nice chart ! Once it's finished, if you'd agree, I'd like to have a copy of the script so that I can use it as a SharpPlot demo. It's always nicer when it's genuinely useful. BTW Here's the solution : sp.SetXDatumLines⊂,ProfPara[1;2] sp.SetDatumLineTags⊂'XDMAX' All the best, Nic.
by Nicolas|Dyalog
Mon Feb 05, 2018 12:32 pm
Forum: Language
Topic: SharpPlot, tables within the graphic
Replies: 8
Views: 23600

Re: SharpPlot, tables within the graphic

Q1: after you've drawn the last linegraph, you can add a table with something like sp.TableStyle←Causeway.TableStyles.(Boxed+GridLines+Opaque) sp.SetTablePosition 0.1 0.3 ⍝ in previous chart coordinates sp.DrawTable⊂X Y1 Y2 You might have to decrease the ValueFont so that it takes less space Have a l ...