> I still couldn't find the equivalent of xticklabels

Ok. Figured it out.  The description of xlabel in jwiki is wrong - It is
not "datapoint" (based on the error message, it should be "one label per
tic position").
xlabel* c [#none ] x labels (one label per datapoint)
It works wonderfully.  Thank you very much for the package!

thank you.

Maurice

On Sun, Mar 12, 2023 at 5:53 PM More Rice <mrmorer...@gmail.com> wrote:

> Thank you, Rob.  I (could easily find and) read those links before
> my initial ques email. I'll give you the longer story.
>
> I had issue reconciling what I read from 2 sources:
>
> A. From calculus.pdf, page 7 - more than 1 plot types are given to the
> plot verb as its x argument:
>
> load 'plot'
> PLOT=:’stick,line’&plot
> PLOT t;h
>
> B. From the Plot/Verbs page (https://code.jsoftware.com/wiki/Plot/Verbs),
> it said they should be separated by semicolons. Then, where does the comma
> come from?
>
> So, I thought the documentation was no longer up-to-date.  And the
> following experiments caused me further confusion:
>
> 'stick,line ; yrange _2 2 ; xtic 1p1 3' plot _2p1 2p1 ; 'sin'  NB. works
>
> 'yrange _2 2 ; xtic 1p1 3 ; stick,line' plot _2p1 2p1 ; 'sin'  NB. doesn't
>
> |option not found: stick,line: signal
>
> | signal'option not found: ',j
>
>
> I read some more this morning, and did more experiments.  It seems
> 'stick,line' belongs to the type option, and by default (only in the
> beginning of x), plot assumes type's value string (and the comma is
> actually optional). If we need to put them aside from the beginning of x,
> we seem to have to explicitly use the type option keyword.
>
> 'yrange _2 2 ; xtic 1p1 3 ; type stick,line' plot _2p1 2p1 ; 'sin'  NB.
> works
>
>
> This for pointing me back to the jwiki for a second look to figure this
> out.
>
> That said, I still couldn't find the equivalent of xticklabels (
> https://www.mathworks.com/help/matlab/ref/xticklabels.html) in J yet.
> Not yet implemented?
>
>
> thank you.
>
> Maurice
>
> On Sun, Mar 12, 2023 at 3:02 AM 'robert therriault' via Programming <
> programm...@jsoftware.com> wrote:
>
>> Hi Maurice,
>>
>> With respect to finding the documentation on the wiki, have you looked at
>> https://code.jsoftware.com/wiki/Plot and in particular
>> https://code.jsoftware.com/wiki/Plot/Options
>>
>> A lot of the fine tuning of Plot seems to be done through pd. The
>> Development section of the plot page may also give you some useful
>> information.
>>
>> My apologies if you have already looked at them and found them wanting,
>> but when you said you did not find the doc in the wiki, I just wanted to be
>> sure that you were aware of these.
>>
>> Cheers, bob
>>
>> > On Mar 11, 2023, at 22:07, More Rice <mrmorer...@gmail.com> wrote:
>> >
>> > Hi,
>> >
>> > some questions, if I may ...
>> >
>> > 1. plot can't handle asymptote (or "not in domain" issue) right at the
>> > boundary in its domain?
>> >
>> > install 'all'
>> >
>> > load 'plot trig numeric'
>> >
>> > plot _5 5 ; '%' NB. ok
>> >
>> > plot _5 0 ; '%' NB. Bad
>> >
>> > |NaN error: plotfintvl
>> >
>> > | bakproj=.({:"1 zvals),~"0 1(}."1 zvals) -(}."1 secant)*"1 intsize
>> >
>> > plot 0 5 ; '%' NB. Bad
>> >
>> > |NaN error: plotfintvl
>> >
>> > | fwdproj=.({."1 zvals),"0 1(}:"1 zvals) +(}:"1 secant)*"1 intsize
>> >
>> > plot  0 10; '%:'  NB. ok
>> >
>> > plot _1 10; '%:'  NB. Bad
>> >
>> > |domain error: plotsubd
>> >
>> > | mtone1=.
>> > (<./@:((((i.&0)@:(2&(<:/\)))>.((i.&0)@:(2&(>:/\))))"1))@(1&{::)"1 d
>> >
>> > JVERSION
>> >
>> > Engine: j903/j64avx2/windows
>> >
>> > Release-b: commercial/2022-01-28T04:09:50
>> >
>> > Library: 9.03.08
>> >
>> > Qt IDE: 1.9.5s/5.15.2(5.15.2)
>> >
>> > Platform: Win 64
>> >
>> > Installer: J903 install
>> >
>> > InstallPath: c:/users/myself/software/j903
>> >
>> > Contact: www.jsoftware.com
>> >
>> >
>> >
>> > 2. I'm trying to control plot's y-scale and x-/y-tick labels. I don't
>> see
>> > its doc in jwiki nor calculus.pdf.  So, I tried scrolling through
>> > Help|Studio|Showcase...|plot to see if they're possible; but still
>> > nothing.  For example, instead of a numeric value, I want to do 0, +/-
>> > 1p1, +/- 2p1, etc.  Can it be done?
>> >
>> >
>> > 3. While looking for solution to #2, I stumbled upon a bug:
>> > Help|Studio|Showcase...|isigraph.  Repeatedly pressing F12 till you see
>> > 'Screen Roller' (yes, ignore Paint Demo and just hit another F12).  Once
>> > you reach this stage, Paint Demo will relaunch if you try to exit the
>> > window. In the end, I've to kill the jqt to get out of the demo.
>> >
>> >
>> > thanks
>> >
>> >
>> > Maurice
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to