Firtst you can test by typing
jpath '~Demos'
if it returns a path name like ..../addons/demos then most likely, it has
already set and you need not worry.
If that returns the same ~Demos , then if you use jconsole under window or
linux, type inside jconsole ( not jhs broweser),
xedit '~config/folders.cfg'
notepad or other editor will open a file, add the following line,
Demo ~addons/demos
save and restart J, and test the <jpath '~Demos'> again.
Assuming ~Demos is ok, in jconsole type (need internet connection)
laod 'pacman'
'update' jpkg ''
'install' jpkg 'ide/jhs graphics/plot graphics/afm demos/plot general/misc
math/misc'
shutdown jconsole. start JHS,
after connecting jijx, in the browser, type the following,
require 'plot numeric trig'
plot 10?10
load '~Demos/plot/plotdemos.ijs'
plotdemos 0
plotdef 'show';200 100
plotdemos 1
Пнд, 05 Дек 2011, Linda Alvord писал(а):
> Where are the instructions to do the following?
>
> Please add ~Demos pointing to ~addons/demos if that shortcut is un-available
> in your installation, other than that, the help section in jhelp should
> already give very clear procedures of how to use plot in jhs.
>
> All of a sudden
>
> ~home/gnuplot/binary/share/gnuplot/4.4/js/canvastext.js not found
>
> All of this seems right but 'home' shows up which I have never seen and do
> not know what the means.
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of bill lam
> Sent: Monday, December 05, 2011 12:57 AM
> To: [email protected]
> Subject: Re: [Jprogramming] JHS plot and addon problems in both JHS and GTK
>
> ~Demos should be added by users themselves, but in order to help noob, that
> shortcut was included in standard installation.
>
> Please add ~Demos pointing to ~addons/demos if that shortcut is
> un-available in your installation, other than that, the help section in
> jhelp should already give very clear procedures of how to use plot in jhs.
>
> Вск, 04 Дек 2011, Don Guinn писал(а):
> > Plot looking really good.
> >
> > A few problems I ran into. First, the demos use several definitions that
> > are created when J6 plot is loaded but not in J7. They are: sin, cos, step
> > and range.
> >
> > Second, for some reason I don't have ~Demos defined. I defined ~Demos to be
> > 'c:/j701/addons/graphics' but the load still failed. For some reason
> > plotdemos.ijs is in 'c:/js01/addons/graphics/plot/demo', not where the load
> > expects it to be. In addition, I have a directory in bin called '~Demos'
> > which contains a gtk directory. I probably need to start over from scratch
> > reloading all of J; however, the name '~Demos' bothers me. The first letter
> > being capitalized makes me think that it should be defined in
> > UserFolders_j_. But things supplied as part of J should be in
> > SystemFolders_j_ and there should be no assumptions as to the contents of
> > UserFolders_j_.
> >
> >
> > On Sun, Dec 4, 2011 at 12:49 AM, bill lam <[email protected]> wrote:
> >
> > > I guess your version of jhs was out-dated. The related message inside
> > > current jhelp reads,
> > >
> > > Use JAL to be sure following required addons are installed:
> > > <pre class="jcode">
> > > graphics/plot
> > > graphics/afm
> > > demos/plot
> > > general/misc
> > > math/misc
> > > </pre>
> > >
> > > Learn about plot with the following examples. Detailed info at the wiki.
> > > <pre class="jcode">
> > > require 'plot numeric trig'
> > > plot 10?10
> > > load '~Demos/plot/plotdemos.ijs' NB. more than 50 demos
> > > plotdemos 0
> > > plotdef 'show';200 100
> > > plotdemos 1
> > > plotdef 'show';600 300 NB. jhsshow width height
> > > plotdemos 3
> > > plotdef 'link';600 450 NB. jhslink
> > > plotdemos 10
> > > plotdef 'link';400 200
> > > plotdemos 25
> > > plotdef 'none';600 300 NB. create ~temp/plot.html without show or link
> > > plotdef 30
> > > plotdef 'show';600 300 NB. jhsshow
> > > plotdemos 54
> > > </pre>
> > >
> > > Вск, 04 Дек 2011, Fraser Jackson писал(а):
> > > > Note 'How do we load addons?'
> > > >
> > > > The instructions for plotting in JHS say
> > > >
> > > > Install JAL graphics/plot graphics/afm and demos/plot
> > > >
> > > > Does this mean install them and load them?
> > > >
> > > > It then suggests you learn from
> > > >
> > > > load '~addons/ide/jhs/jplotdemo.ijs' jplot
> > > >
> > > > What does this mean since it is clearly not a J sentence.
> > > >
> > > > When I attempt this a possible sentence from the line I get the message
> > > >
> > > > load '~addons/ide/jhs/jplotdemo.ijs'
> > > > not found: c:/users/fraser/j701/addons/ide/jhs/jplotdemo.ijs
> > > > |file name error: script
> > > > | 0!:0 y[4!:55<'y'
> > > >
> > > >
> > > > That file does not exist on my system.
> > > >
> > > > JVERSION
> > > > Engine: j701/2011-01-10/11:25
> > > > Library: 7.01.051
> > > > Platform: Win 32
> > > > Installer: j701a_win.exe
> > > > InstallPath: c:/users/fraser/j701
> > > >
> > > >
> > > > There seems to be a more general problem loading addons.
> > > >
> > > > load 'general/misc'
> > > > not found: C:\Users\Fraser\j701/general/misc/misc
> > > > |file name error: script
> > > > | 0!:0 y[4!:55<'y'
> > > >
> > > > I would like to get into helping test the graphics, but I need clear
> > > > instructions as to how to start, and a working addon system.
> > > >
> > > >
> > > >
> > > > ----------------------------------------------------------------------
> > > > 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
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> > ----------------------------------------------------------------------
> > 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
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm