[Jprogramming] plot from example in J7 GTK
bill lam
bbill.lam at gmail.com
Wed Feb 22 00:18:36 HKT 2012
The create could be amended as
create=: 3 : 0
wd DEMO
wd 'pshow;' NB. <<<<<<
grid=: ''conew'jzgrid'
show__grid 'celldata hdrrow hdrcol'
gplot=: conew 'jzplot'
PForm__gplot=: 'demo'
PFormhwnd__gplot=: 0". wd 'qhwndp' NB. <<<<<<
PId__gplot=: 'gplot'
)
The plot package need more work in order to work with gtkwd.
The keyboard input focus for grid seems buggy too.
I recommand you to set Debugwd_gtkwd_=: 1 to avoid infinite loop
problem when error occurs inside paint event.
Втр, 21 Фев 2012, Björn Helgason писал(а):
> I took this example
>
> http://www.jsoftware.com/jwiki/Grid/Examples#griddemo5.ijs
>
> Changed
>
> create=: 3 : 0
> wd DEMO
> wd 'pshow;'
>
> added
>
> require 'gui/gtkwd graphics/plot'
>
> It fails on
>
> demo_gplot_paint=: 3 : 0
> 'sbar' plot__gplot CELLDATA__grid
> )
>
> It will run like this
>
> demo_gplot_paint=: 3 : 0
> 'sbar' plot CELLDATA__grid
> )
>
> But the isigraphs are on top of each other and you can not change the grid
>
> If you do
>
> demo_gplot_paint=: 3 : 0
> 1
> )
>
> You can change the grid but it looks a bit strange
>
> --
> Björn Helgason, Verkfræðingur
> Fornustekkum II
> 781 Hornafirði,
> t-póst: gosinn at gmail.com
> gsm: +3546985532
> twitter: @flugfiskur
> http://groups.google.com/group/J-Programming
>
>
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
> /|_ .-----------------------------------.
> ,' .\ / | Með léttri lund verður |
> ,--' _,' | Dagurinn í dag |
> / / | Enn betri en gærdagurinn |
> ( -. | `-----------------------------------'
> | ) | (\_ _/)
> (`-. '--.) (='.'=) ♖♘♗♕♔♙
> `. )----' (")_(") ☃☠
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
More information about the Programming
mailing list