Re: Plotting Equations that Bifurcate

2020-11-04 Thread Alex Tweedly via use-livecode

Hi,

gmSetCustomMarker is the first gm Library handler called in the demo app 
- so it sounds like the library isn't being downloaded or set up properly.


I found one combination of browser and laptop here where the 
.livecodescript file is displayed as though it were a text file, rather 
than being downloaded! No idea why !!


So, I've uploaded a ZIP archive. Visit 
https://www.tweedly.org/lcms.lc/GraphMaker again, and use the archive 
link to download the zip fie and decompress it. Then open the demo app 
in the IDE.


In the IDE, you could set a breakpoint in 'openstack' on card 1 of the 
demo app, and verify that the library is being properly found in the 
'start using tt' line, e.g. by checking the stacksinuse just after it.


If the library is properly loaded, then the "can't find handler 
gmSetCustomMarker" problm should disappear.


Cool - I'll go take a look at CoupDeGraph.

I've been wondering how you handle multi-bifurcating functions - but 
that'll be a separate email (after I've looked at CoupDeGraph :-)


Alex.

On 04/11/2020 18:09, Roger Guay via use-livecode wrote:

Hi Alex,

Thanks for your continued interest in my little project. I have succeeded in 
implementing a multiple polygon approach, but it ain’t elegant as they say!

I seem to recall that I learned a lot from your GraphMaker some time ago, but 
as I try to review your latest on your website, I run into repeated errors 
about “can’t find handler gmSetCustomMarker”. I can’t seem to make any headway 
to resolve this. Am I supposed to do something with the “Library”? I could not 
find instructions anywhere.

Meanwhile, I should explain further that I am trying to expand on a stack that 
I built 2 or 3 years ago called CoupDeGraph which you can find in the Example 
Stacks of LiveCode. Put simply, I am currently trying to expand on CoupDeGraph 
to be able to handle double-valued equations.

Again, thanks for your help

Roger


On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode 
 wrote:

On 31/10/2020 02:28, Roger Guay via use-livecode wrote:


Lots of clever ideas here, Alex, but I think you’re missing the point of what I 
ultimately want to do. I'm building a plotting program for which I want to plot 
any equation including those that have multiple values of y for a given x. An 
equation might branch at any point and might even have multiple branches both 
of which are unknown before plotting.

Of course, there’s always the possibility that I’m not fully comprehending your 
suggestions??? What does NB stand for? Are you suggesting creating a new 
polygon every time a branch is detected? That just might work?!

Hi Roger. You're right - I missed the point; I jumped to the assumption that 
you were asking about a fairly small, specific issue - so leapt too quickly to 
a code sample. But before I address the general question(s), let me get the 
little points out of the way :-)

NB - sorry, kind of common usage in British English. Actually, it's from a Latin phrase - 
"Nota Bene" - meaning "note well". So basically just 'take note of'.

"a new polygon every branch" - yes, perfectly possible. Also possible is what I 
did in the first case of the code sample -  a new 'sequence of points' for each branch, 
and then stitch those together (with blank lines between) into a single polygon; but 
that's, for now, a detail.

The essence of the problem is that your app will (somehow) develop a number of 
'sequences of *data* points' - and then those need to be translated into 
equivalent sets of *display* points (by either a plotting library, or by your 
own code) to allow it to be displayed appropriately.

There are at least two possible plotting libraries that might do what you want 
(or do something close enough that they could be useful). By coincidence, they 
were both discussed at the San Jose LC conference in 2019.If you have access to 
the video / papers from that you might already have some of the info you need; 
I don't know if the conference papers are ever put out for more general usage 
later.

Option A. Monte described a wrapper for the JSPlot library. It's a very 
powerful library capable of many kinds of graphs / plots, and very quick and 
capable. The most obvious downside is that it needs to be used within a browser 
widget - but well worth looking at it if you can.

Option B. I did a library called "GraphMaker" - a pure-Livecode plotting 
library. It is (I think) fairly easy to use - but that may not be the case for someone 
else coming to it new. I know it can handle this case of bifurcating plots (using 
multiple sequences of data points). The conference slides were a decent, if very brief, 
introduction; the lengthier documentation was, maybe, not quite complete. However, it 
does come with a demo app that uses the library to draw a variety of graph types. Main 
advantage is it's pure LC, and hopefully easy to use - both in understanding and in ease 
of integration into an app (you just create a suitable group to 

Re: Plotting Equations that Bifurcate

2020-11-04 Thread Roger Guay via use-livecode
PlotPurri and Plotpular 

R

> On Nov 4, 2020, at 5:01 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> The plot sickens…
> 
> Bob S
> 
> 
> On Nov 4, 2020, at 3:58 PM, Mark Wieder via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> On 11/4/20 3:37 PM, Jerry Jensen via use-livecode wrote:
> Neil DeGraph Tyson?
> On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Oooh, I like it! How about VanDeGraph?
> 
> The Graph is Always Greener.
> 
> --
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-11-04 Thread Bob Sneidar via use-livecode
The plot sickens…

Bob S


On Nov 4, 2020, at 3:58 PM, Mark Wieder via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 11/4/20 3:37 PM, Jerry Jensen via use-livecode wrote:
Neil DeGraph Tyson?
On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Oooh, I like it! How about VanDeGraph?

The Graph is Always Greener.

--
Mark Wieder
ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-11-04 Thread Mark Wieder via use-livecode

On 11/4/20 3:37 PM, Jerry Jensen via use-livecode wrote:

Neil DeGraph Tyson?


On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode 
 wrote:

Oooh, I like it! How about VanDeGraph?


The Graph is Always Greener.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-11-04 Thread Roger Guay via use-livecode
I was thinking of taking a tangent approach. How about PlotDuJour?

> On Nov 4, 2020, at 3:37 PM, Jerry Jensen via use-livecode 
>  wrote:
> 
> Neil DeGraph Tyson?
> 
>> On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode 
>>  wrote:
>> 
>> Oooh, I like it! How about VanDeGraph?
>> 
>> Roger
>> 
>>> On Nov 4, 2020, at 3:03 PM, scott--- via use-livecode 
>>>  wrote:
>>> 
>>> I assume the expanded version will be called SedanDeGraph.
>>> —
>>> Scott
>>> 
 On Nov 4, 2020, at 10:09 AM, Roger Guay via use-livecode 
  wrote:
 
 Hi Alex,
 
 Thanks for your continued interest in my little project. I have succeeded 
 in implementing a multiple polygon approach, but it ain’t elegant as they 
 say!
 
 I seem to recall that I learned a lot from your GraphMaker some time ago, 
 but as I try to review your latest on your website, I run into repeated 
 errors about “can’t find handler gmSetCustomMarker”. I can’t seem to make 
 any headway to resolve this. Am I supposed to do something with the 
 “Library”? I could not find instructions anywhere. 
 
 Meanwhile, I should explain further that I am trying to expand on a stack 
 that I built 2 or 3 years ago called CoupDeGraph which you can find in the 
 Example Stacks of LiveCode. Put simply, I am currently trying to expand on 
 CoupDeGraph to be able to handle double-valued equations.
 
 Again, thanks for your help
 
 Roger
 
> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> On 31/10/2020 02:28, Roger Guay via use-livecode wrote:
> 
>> Lots of clever ideas here, Alex, but I think you’re missing the point of 
>> what I ultimately want to do. I'm building a plotting program for which 
>> I want to plot any equation including those that have multiple values of 
>> y for a given x. An equation might branch at any point and might even 
>> have multiple branches both of which are unknown before plotting.
>> 
>> Of course, there’s always the possibility that I’m not fully 
>> comprehending your suggestions??? What does NB stand for? Are you 
>> suggesting creating a new polygon every time a branch is detected? That 
>> just might work?!
> 
> Hi Roger. You're right - I missed the point; I jumped to the assumption 
> that you were asking about a fairly small, specific issue - so leapt too 
> quickly to a code sample. But before I address the general question(s), 
> let me get the little points out of the way :-)
> 
> NB - sorry, kind of common usage in British English. Actually, it's from 
> a Latin phrase - "Nota Bene" - meaning "note well". So basically just 
> 'take note of'.
> 
> "a new polygon every branch" - yes, perfectly possible. Also possible is 
> what I did in the first case of the code sample -  a new 'sequence of 
> points' for each branch, and then stitch those together (with blank lines 
> between) into a single polygon; but that's, for now, a detail.
> 
> The essence of the problem is that your app will (somehow) develop a 
> number of 'sequences of *data* points' - and then those need to be 
> translated into equivalent sets of *display* points (by either a plotting 
> library, or by your own code) to allow it to be displayed appropriately.
> 
> There are at least two possible plotting libraries that might do what you 
> want (or do something close enough that they could be useful). By 
> coincidence, they were both discussed at the San Jose LC conference in 
> 2019.If you have access to the video / papers from that you might already 
> have some of the info you need; I don't know if the conference papers are 
> ever put out for more general usage later.
> 
> Option A. Monte described a wrapper for the JSPlot library. It's a very 
> powerful library capable of many kinds of graphs / plots, and very quick 
> and capable. The most obvious downside is that it needs to be used within 
> a browser widget - but well worth looking at it if you can.
> 
> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting 
> library. It is (I think) fairly easy to use - but that may not be the 
> case for someone else coming to it new. I know it can handle this case of 
> bifurcating plots (using multiple sequences of data points). The 
> conference slides were a decent, if very brief, introduction; the 
> lengthier documentation was, maybe, not quite complete. However, it does 
> come with a demo app that uses the library to draw a variety of graph 
> types. Main advantage is it's pure LC, and hopefully easy to use - both 
> in understanding and in ease of integration into an app (you just create 
> a suitable group to contain the graph, set its rect properly and pass in 
> all the point data along with various 

Re: Plotting Equations that Bifurcate

2020-11-04 Thread Jerry Jensen via use-livecode
Neil DeGraph Tyson?

> On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Oooh, I like it! How about VanDeGraph?
> 
> Roger
> 
>> On Nov 4, 2020, at 3:03 PM, scott--- via use-livecode 
>>  wrote:
>> 
>> I assume the expanded version will be called SedanDeGraph.
>> —
>> Scott
>> 
>>> On Nov 4, 2020, at 10:09 AM, Roger Guay via use-livecode 
>>>  wrote:
>>> 
>>> Hi Alex,
>>> 
>>> Thanks for your continued interest in my little project. I have succeeded 
>>> in implementing a multiple polygon approach, but it ain’t elegant as they 
>>> say!
>>> 
>>> I seem to recall that I learned a lot from your GraphMaker some time ago, 
>>> but as I try to review your latest on your website, I run into repeated 
>>> errors about “can’t find handler gmSetCustomMarker”. I can’t seem to make 
>>> any headway to resolve this. Am I supposed to do something with the 
>>> “Library”? I could not find instructions anywhere. 
>>> 
>>> Meanwhile, I should explain further that I am trying to expand on a stack 
>>> that I built 2 or 3 years ago called CoupDeGraph which you can find in the 
>>> Example Stacks of LiveCode. Put simply, I am currently trying to expand on 
>>> CoupDeGraph to be able to handle double-valued equations.
>>> 
>>> Again, thanks for your help
>>> 
>>> Roger
>>> 
 On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode 
  wrote:
 
 On 31/10/2020 02:28, Roger Guay via use-livecode wrote:
 
> Lots of clever ideas here, Alex, but I think you’re missing the point of 
> what I ultimately want to do. I'm building a plotting program for which I 
> want to plot any equation including those that have multiple values of y 
> for a given x. An equation might branch at any point and might even have 
> multiple branches both of which are unknown before plotting.
> 
> Of course, there’s always the possibility that I’m not fully 
> comprehending your suggestions??? What does NB stand for? Are you 
> suggesting creating a new polygon every time a branch is detected? That 
> just might work?!
 
 Hi Roger. You're right - I missed the point; I jumped to the assumption 
 that you were asking about a fairly small, specific issue - so leapt too 
 quickly to a code sample. But before I address the general question(s), 
 let me get the little points out of the way :-)
 
 NB - sorry, kind of common usage in British English. Actually, it's from a 
 Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take 
 note of'.
 
 "a new polygon every branch" - yes, perfectly possible. Also possible is 
 what I did in the first case of the code sample -  a new 'sequence of 
 points' for each branch, and then stitch those together (with blank lines 
 between) into a single polygon; but that's, for now, a detail.
 
 The essence of the problem is that your app will (somehow) develop a 
 number of 'sequences of *data* points' - and then those need to be 
 translated into equivalent sets of *display* points (by either a plotting 
 library, or by your own code) to allow it to be displayed appropriately.
 
 There are at least two possible plotting libraries that might do what you 
 want (or do something close enough that they could be useful). By 
 coincidence, they were both discussed at the San Jose LC conference in 
 2019.If you have access to the video / papers from that you might already 
 have some of the info you need; I don't know if the conference papers are 
 ever put out for more general usage later.
 
 Option A. Monte described a wrapper for the JSPlot library. It's a very 
 powerful library capable of many kinds of graphs / plots, and very quick 
 and capable. The most obvious downside is that it needs to be used within 
 a browser widget - but well worth looking at it if you can.
 
 Option B. I did a library called "GraphMaker" - a pure-Livecode plotting 
 library. It is (I think) fairly easy to use - but that may not be the case 
 for someone else coming to it new. I know it can handle this case of 
 bifurcating plots (using multiple sequences of data points). The 
 conference slides were a decent, if very brief, introduction; the 
 lengthier documentation was, maybe, not quite complete. However, it does 
 come with a demo app that uses the library to draw a variety of graph 
 types. Main advantage is it's pure LC, and hopefully easy to use - both in 
 understanding and in ease of integration into an app (you just create a 
 suitable group to contain the graph, set its rect properly and pass in all 
 the point data along with various parameters.  It has nowhere near the 
 coverage of different graph types that JSPlot does - it's basically line, 
 bar and scatter plots, with primary X-axis, and can have shading, etc.
 
 Option C. Roll your own.
 
 I'd 

Re: Plotting Equations that Bifurcate

2020-11-04 Thread Roger Guay via use-livecode
Oooh, I like it! How about VanDeGraph?

Roger

> On Nov 4, 2020, at 3:03 PM, scott--- via use-livecode 
>  wrote:
> 
> I assume the expanded version will be called SedanDeGraph.
> —
> Scott
> 
>> On Nov 4, 2020, at 10:09 AM, Roger Guay via use-livecode 
>>  wrote:
>> 
>> Hi Alex,
>> 
>> Thanks for your continued interest in my little project. I have succeeded in 
>> implementing a multiple polygon approach, but it ain’t elegant as they say!
>> 
>> I seem to recall that I learned a lot from your GraphMaker some time ago, 
>> but as I try to review your latest on your website, I run into repeated 
>> errors about “can’t find handler gmSetCustomMarker”. I can’t seem to make 
>> any headway to resolve this. Am I supposed to do something with the 
>> “Library”? I could not find instructions anywhere. 
>> 
>> Meanwhile, I should explain further that I am trying to expand on a stack 
>> that I built 2 or 3 years ago called CoupDeGraph which you can find in the 
>> Example Stacks of LiveCode. Put simply, I am currently trying to expand on 
>> CoupDeGraph to be able to handle double-valued equations.
>> 
>> Again, thanks for your help
>> 
>> Roger
>> 
>>> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode 
>>>  wrote:
>>> 
>>> On 31/10/2020 02:28, Roger Guay via use-livecode wrote:
>>> 
 Lots of clever ideas here, Alex, but I think you’re missing the point of 
 what I ultimately want to do. I'm building a plotting program for which I 
 want to plot any equation including those that have multiple values of y 
 for a given x. An equation might branch at any point and might even have 
 multiple branches both of which are unknown before plotting.
 
 Of course, there’s always the possibility that I’m not fully comprehending 
 your suggestions??? What does NB stand for? Are you suggesting creating a 
 new polygon every time a branch is detected? That just might work?!
>>> 
>>> Hi Roger. You're right - I missed the point; I jumped to the assumption 
>>> that you were asking about a fairly small, specific issue - so leapt too 
>>> quickly to a code sample. But before I address the general question(s), let 
>>> me get the little points out of the way :-)
>>> 
>>> NB - sorry, kind of common usage in British English. Actually, it's from a 
>>> Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take 
>>> note of'.
>>> 
>>> "a new polygon every branch" - yes, perfectly possible. Also possible is 
>>> what I did in the first case of the code sample -  a new 'sequence of 
>>> points' for each branch, and then stitch those together (with blank lines 
>>> between) into a single polygon; but that's, for now, a detail.
>>> 
>>> The essence of the problem is that your app will (somehow) develop a number 
>>> of 'sequences of *data* points' - and then those need to be translated into 
>>> equivalent sets of *display* points (by either a plotting library, or by 
>>> your own code) to allow it to be displayed appropriately.
>>> 
>>> There are at least two possible plotting libraries that might do what you 
>>> want (or do something close enough that they could be useful). By 
>>> coincidence, they were both discussed at the San Jose LC conference in 
>>> 2019.If you have access to the video / papers from that you might already 
>>> have some of the info you need; I don't know if the conference papers are 
>>> ever put out for more general usage later.
>>> 
>>> Option A. Monte described a wrapper for the JSPlot library. It's a very 
>>> powerful library capable of many kinds of graphs / plots, and very quick 
>>> and capable. The most obvious downside is that it needs to be used within a 
>>> browser widget - but well worth looking at it if you can.
>>> 
>>> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting 
>>> library. It is (I think) fairly easy to use - but that may not be the case 
>>> for someone else coming to it new. I know it can handle this case of 
>>> bifurcating plots (using multiple sequences of data points). The conference 
>>> slides were a decent, if very brief, introduction; the lengthier 
>>> documentation was, maybe, not quite complete. However, it does come with a 
>>> demo app that uses the library to draw a variety of graph types. Main 
>>> advantage is it's pure LC, and hopefully easy to use - both in 
>>> understanding and in ease of integration into an app (you just create a 
>>> suitable group to contain the graph, set its rect properly and pass in all 
>>> the point data along with various parameters.  It has nowhere near the 
>>> coverage of different graph types that JSPlot does - it's basically line, 
>>> bar and scatter plots, with primary X-axis, and can have shading, etc.
>>> 
>>> Option C. Roll your own.
>>> 
>>> I'd certainly suggest investigating the use of an existing library first. 
>>> There's quite a lot of effort needs to go into determining how to scale the 
>>> data to the space available, how to label the axes, 

Re: Plotting Equations that Bifurcate

2020-11-04 Thread scott--- via use-livecode
I assume the expanded version will be called SedanDeGraph.
—
Scott

> On Nov 4, 2020, at 10:09 AM, Roger Guay via use-livecode 
>  wrote:
> 
> Hi Alex,
> 
> Thanks for your continued interest in my little project. I have succeeded in 
> implementing a multiple polygon approach, but it ain’t elegant as they say!
> 
> I seem to recall that I learned a lot from your GraphMaker some time ago, but 
> as I try to review your latest on your website, I run into repeated errors 
> about “can’t find handler gmSetCustomMarker”. I can’t seem to make any 
> headway to resolve this. Am I supposed to do something with the “Library”? I 
> could not find instructions anywhere. 
> 
> Meanwhile, I should explain further that I am trying to expand on a stack 
> that I built 2 or 3 years ago called CoupDeGraph which you can find in the 
> Example Stacks of LiveCode. Put simply, I am currently trying to expand on 
> CoupDeGraph to be able to handle double-valued equations.
> 
> Again, thanks for your help
> 
> Roger
> 
>> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode 
>>  wrote:
>> 
>> On 31/10/2020 02:28, Roger Guay via use-livecode wrote:
>> 
>>> Lots of clever ideas here, Alex, but I think you’re missing the point of 
>>> what I ultimately want to do. I'm building a plotting program for which I 
>>> want to plot any equation including those that have multiple values of y 
>>> for a given x. An equation might branch at any point and might even have 
>>> multiple branches both of which are unknown before plotting.
>>> 
>>> Of course, there’s always the possibility that I’m not fully comprehending 
>>> your suggestions??? What does NB stand for? Are you suggesting creating a 
>>> new polygon every time a branch is detected? That just might work?!
>> 
>> Hi Roger. You're right - I missed the point; I jumped to the assumption that 
>> you were asking about a fairly small, specific issue - so leapt too quickly 
>> to a code sample. But before I address the general question(s), let me get 
>> the little points out of the way :-)
>> 
>> NB - sorry, kind of common usage in British English. Actually, it's from a 
>> Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take 
>> note of'.
>> 
>> "a new polygon every branch" - yes, perfectly possible. Also possible is 
>> what I did in the first case of the code sample -  a new 'sequence of 
>> points' for each branch, and then stitch those together (with blank lines 
>> between) into a single polygon; but that's, for now, a detail.
>> 
>> The essence of the problem is that your app will (somehow) develop a number 
>> of 'sequences of *data* points' - and then those need to be translated into 
>> equivalent sets of *display* points (by either a plotting library, or by 
>> your own code) to allow it to be displayed appropriately.
>> 
>> There are at least two possible plotting libraries that might do what you 
>> want (or do something close enough that they could be useful). By 
>> coincidence, they were both discussed at the San Jose LC conference in 
>> 2019.If you have access to the video / papers from that you might already 
>> have some of the info you need; I don't know if the conference papers are 
>> ever put out for more general usage later.
>> 
>> Option A. Monte described a wrapper for the JSPlot library. It's a very 
>> powerful library capable of many kinds of graphs / plots, and very quick and 
>> capable. The most obvious downside is that it needs to be used within a 
>> browser widget - but well worth looking at it if you can.
>> 
>> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting 
>> library. It is (I think) fairly easy to use - but that may not be the case 
>> for someone else coming to it new. I know it can handle this case of 
>> bifurcating plots (using multiple sequences of data points). The conference 
>> slides were a decent, if very brief, introduction; the lengthier 
>> documentation was, maybe, not quite complete. However, it does come with a 
>> demo app that uses the library to draw a variety of graph types. Main 
>> advantage is it's pure LC, and hopefully easy to use - both in understanding 
>> and in ease of integration into an app (you just create a suitable group to 
>> contain the graph, set its rect properly and pass in all the point data 
>> along with various parameters.  It has nowhere near the coverage of 
>> different graph types that JSPlot does - it's basically line, bar and 
>> scatter plots, with primary X-axis, and can have shading, etc.
>> 
>> Option C. Roll your own.
>> 
>> I'd certainly suggest investigating the use of an existing library first. 
>> There's quite a lot of effort needs to go into determining how to scale the 
>> data to the space available, how to label the axes, how to add tick marks, 
>> grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 
>> 90% of the effort of creating the library.
>> 
>> If you'd like to try out my library, the latest version 

Re: Plotting Equations that Bifurcate

2020-11-04 Thread Roger Guay via use-livecode
Hi Alex,

Thanks for your continued interest in my little project. I have succeeded in 
implementing a multiple polygon approach, but it ain’t elegant as they say!

I seem to recall that I learned a lot from your GraphMaker some time ago, but 
as I try to review your latest on your website, I run into repeated errors 
about “can’t find handler gmSetCustomMarker”. I can’t seem to make any headway 
to resolve this. Am I supposed to do something with the “Library”? I could not 
find instructions anywhere. 

Meanwhile, I should explain further that I am trying to expand on a stack that 
I built 2 or 3 years ago called CoupDeGraph which you can find in the Example 
Stacks of LiveCode. Put simply, I am currently trying to expand on CoupDeGraph 
to be able to handle double-valued equations.

Again, thanks for your help

Roger

> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> On 31/10/2020 02:28, Roger Guay via use-livecode wrote:
> 
>> Lots of clever ideas here, Alex, but I think you’re missing the point of 
>> what I ultimately want to do. I'm building a plotting program for which I 
>> want to plot any equation including those that have multiple values of y for 
>> a given x. An equation might branch at any point and might even have 
>> multiple branches both of which are unknown before plotting.
>> 
>> Of course, there’s always the possibility that I’m not fully comprehending 
>> your suggestions??? What does NB stand for? Are you suggesting creating a 
>> new polygon every time a branch is detected? That just might work?!
> 
> Hi Roger. You're right - I missed the point; I jumped to the assumption that 
> you were asking about a fairly small, specific issue - so leapt too quickly 
> to a code sample. But before I address the general question(s), let me get 
> the little points out of the way :-)
> 
> NB - sorry, kind of common usage in British English. Actually, it's from a 
> Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take 
> note of'.
> 
> "a new polygon every branch" - yes, perfectly possible. Also possible is what 
> I did in the first case of the code sample -  a new 'sequence of points' for 
> each branch, and then stitch those together (with blank lines between) into a 
> single polygon; but that's, for now, a detail.
> 
> The essence of the problem is that your app will (somehow) develop a number 
> of 'sequences of *data* points' - and then those need to be translated into 
> equivalent sets of *display* points (by either a plotting library, or by your 
> own code) to allow it to be displayed appropriately.
> 
> There are at least two possible plotting libraries that might do what you 
> want (or do something close enough that they could be useful). By 
> coincidence, they were both discussed at the San Jose LC conference in 
> 2019.If you have access to the video / papers from that you might already 
> have some of the info you need; I don't know if the conference papers are 
> ever put out for more general usage later.
> 
> Option A. Monte described a wrapper for the JSPlot library. It's a very 
> powerful library capable of many kinds of graphs / plots, and very quick and 
> capable. The most obvious downside is that it needs to be used within a 
> browser widget - but well worth looking at it if you can.
> 
> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting 
> library. It is (I think) fairly easy to use - but that may not be the case 
> for someone else coming to it new. I know it can handle this case of 
> bifurcating plots (using multiple sequences of data points). The conference 
> slides were a decent, if very brief, introduction; the lengthier 
> documentation was, maybe, not quite complete. However, it does come with a 
> demo app that uses the library to draw a variety of graph types. Main 
> advantage is it's pure LC, and hopefully easy to use - both in understanding 
> and in ease of integration into an app (you just create a suitable group to 
> contain the graph, set its rect properly and pass in all the point data along 
> with various parameters.  It has nowhere near the coverage of different graph 
> types that JSPlot does - it's basically line, bar and scatter plots, with 
> primary X-axis, and can have shading, etc.
> 
> Option C. Roll your own.
> 
> I'd certainly suggest investigating the use of an existing library first. 
> There's quite a lot of effort needs to go into determining how to scale the 
> data to the space available, how to label the axes, how to add tick marks, 
> grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 
> 90% of the effort of creating the library.
> 
> If you'd like to try out my library, the latest version can be found at
> 
> https://www.tweedly.org/lcms.lc/GraphMaker
> 
> (sorry - I haven't formatted it into my usual download structure - so this is 
> simply a page that gives links that allow you to download the 2 files you 
> need and 2 more files 

Re: Plotting Equations that Bifurcate

2020-11-03 Thread Alex Tweedly via use-livecode

On 31/10/2020 02:28, Roger Guay via use-livecode wrote:


Lots of clever ideas here, Alex, but I think you’re missing the point of what I 
ultimately want to do. I'm building a plotting program for which I want to plot 
any equation including those that have multiple values of y for a given x. An 
equation might branch at any point and might even have multiple branches both 
of which are unknown before plotting.

Of course, there’s always the possibility that I’m not fully comprehending your 
suggestions??? What does NB stand for? Are you suggesting creating a new 
polygon every time a branch is detected? That just might work?!


Hi Roger. You're right - I missed the point; I jumped to the assumption 
that you were asking about a fairly small, specific issue - so leapt too 
quickly to a code sample. But before I address the general question(s), 
let me get the little points out of the way :-)


NB - sorry, kind of common usage in British English. Actually, it's from 
a Latin phrase - "Nota Bene" - meaning "note well". So basically just 
'take note of'.


"a new polygon every branch" - yes, perfectly possible. Also possible is 
what I did in the first case of the code sample -  a new 'sequence of 
points' for each branch, and then stitch those together (with blank 
lines between) into a single polygon; but that's, for now, a detail.


The essence of the problem is that your app will (somehow) develop a 
number of 'sequences of *data* points' - and then those need to be 
translated into equivalent sets of *display* points (by either a 
plotting library, or by your own code) to allow it to be displayed 
appropriately.


There are at least two possible plotting libraries that might do what 
you want (or do something close enough that they could be useful). By 
coincidence, they were both discussed at the San Jose LC conference in 
2019.If you have access to the video / papers from that you might 
already have some of the info you need; I don't know if the conference 
papers are ever put out for more general usage later.


Option A. Monte described a wrapper for the JSPlot library. It's a very 
powerful library capable of many kinds of graphs / plots, and very quick 
and capable. The most obvious downside is that it needs to be used 
within a browser widget - but well worth looking at it if you can.


Option B. I did a library called "GraphMaker" - a pure-Livecode plotting 
library. It is (I think) fairly easy to use - but that may not be the 
case for someone else coming to it new. I know it can handle this case 
of bifurcating plots (using multiple sequences of data points). The 
conference slides were a decent, if very brief, introduction; the 
lengthier documentation was, maybe, not quite complete. However, it does 
come with a demo app that uses the library to draw a variety of graph 
types. Main advantage is it's pure LC, and hopefully easy to use - both 
in understanding and in ease of integration into an app (you just create 
a suitable group to contain the graph, set its rect properly and pass in 
all the point data along with various parameters.  It has nowhere near 
the coverage of different graph types that JSPlot does - it's basically 
line, bar and scatter plots, with primary X-axis, and can have shading, etc.


Option C. Roll your own.

I'd certainly suggest investigating the use of an existing library 
first. There's quite a lot of effort needs to go into determining how to 
scale the data to the space available, how to label the axes, how to add 
tick marks, grid lines and (perhaps) multiple Y-axes. That stuff 
probably accounted for 90% of the effort of creating the library.


If you'd like to try out my library, the latest version can be found at

https://www.tweedly.org/lcms.lc/GraphMaker

(sorry - I haven't formatted it into my usual download structure - so 
this is simply a page that gives links that allow you to download the 2 
files you need and 2 more files you don't need.)


Of course, I'll be happy to help out in any way I can with it.

Alex.

P.S. the demo app includes an example of a 'branching' plot (Graph 3).


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-30 Thread Roger Guay via use-livecode
Lots of clever ideas here, Alex, but I think you’re missing the point of what I 
ultimately want to do. I'm building a plotting program for which I want to plot 
any equation including those that have multiple values of y for a given x. An 
equation might branch at any point and might even have multiple branches both 
of which are unknown before plotting. 

Of course, there’s always the possibility that I’m not fully comprehending your 
suggestions??? What does NB stand for? Are you suggesting creating a new 
polygon every time a branch is detected? That just might work?!

Roger


> On Oct 30, 2020, at 4:12 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> 
> On 30/10/2020 22:40, Roger Guay via use-livecode wrote:
>> Let’s try this again after spellchecking:
>> 
>> 
>> Yes, yours is a good example of a bifurcated line. But now imagine producing 
>> this line programmatically with an equation that:
>> 
>> Produces a constant y value of 149 as x progresses from 35 to 235 (no 
>> problem)
>> Then produces 2 different but simultaneous values of y as x progresses from 
>> 235 to 335. This is the problem as you don’t want the end point of the 
>> separated lines to connect. If you place an empty line in the points after 
>> each iteration beyond x = 235 then you end up with the bifurcated lines 
>> being points rather than a solid line.
>> 
>> How do plotting programs handle this situation
> 
> 
> Here are two different ways you could do it.
> 
> 1. simple - assume there would (could) be two Y values for any x, and just 
> calculate two series, and combine them for output.
> 
> 2. harder - for each x value, keep track of the previous y value for each 
> series, and if necessary, put in a 'skip' plus new value plus skip ...
> 
> NB makes for a more complex polygon; each new x value after bifurcation 
> results in 5 lines added to the points.
> 
> on mouseup
>local tSeries1, tSeries2, thepoints
>if the shiftkey is down then
> 
>   -- the easy way - just allow for the possibility of two series of 
> points all along
>   repeat with i = 35 to 335
>  -- calculate series 1
>  if i < 235 then
> put i,249  after tSeries1
>  else
> put i, 249+(i-235)  after tSeries1
>  end if
>  -- calculate series 2
>  if i < 235 then
> -- do nothing - it's the same as series 1
>  else
> put i, 249+2*(i-235)  after tSeries2
>  end if
>   end repeat
> 
>   put tSeries1  & tSeries2 into thePoints
>   set the points of grc "X" to thePoints
>   set the foregroundColor of grc "X" to "blue"
>else
>   -- the harder way - multiple series ...
>   -- does each step for each series ... much more complex polygon, but ...
>   local t1, t2, tLast1, tLast2
>   repeat with i = 35 to 335
>  -- calculate values
>  if i < 235 then
> put 249 into t1
> put 249 into t2
>  else
> put 249+(i-235) into t1
> put 249+2*(i-235) into t2
>  end if
>  -- put in series 1
>  if tLast1 is not empty then
> put i-1, tLast1  & i, t1  after thePoints
>  end if
>  -- possibly put in series 2
>  if tLast1 <> tLast2 OR t1 <> t2 then
> put CR after thePoints -- blank skip over to series 2 value
> put i-1, tLast2  & i, t2  after thePoints
> put CR after thePoints -- blank skip back to series 1
>  end if
>  put t1 into tLast1
>  put t2 into tLast2
>   end repeat
>   set the points of grc "X" to thePoints
>   set the foregroundColor of grc "X" to "red"
>end if
> 
> end mouseup
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-30 Thread Alex Tweedly via use-livecode


On 30/10/2020 22:40, Roger Guay via use-livecode wrote:

Let’s try this again after spellchecking:


Yes, yours is a good example of a bifurcated line. But now imagine producing 
this line programmatically with an equation that:

Produces a constant y value of 149 as x progresses from 35 to 235 (no problem)
Then produces 2 different but simultaneous values of y as x progresses from 235 
to 335. This is the problem as you don’t want the end point of the separated 
lines to connect. If you place an empty line in the points after each iteration 
beyond x = 235 then you end up with the bifurcated lines being points rather 
than a solid line.

How do plotting programs handle this situation



Here are two different ways you could do it.

1. simple - assume there would (could) be two Y values for any x, and 
just calculate two series, and combine them for output.


2. harder - for each x value, keep track of the previous y value for 
each series, and if necessary, put in a 'skip' plus new value plus skip ...


NB makes for a more complex polygon; each new x value after bifurcation 
results in 5 lines added to the points.


on mouseup
   local tSeries1, tSeries2, thepoints
   if the shiftkey is down then

  -- the easy way - just allow for the possibility of two series of 
points all along

  repeat with i = 35 to 335
 -- calculate series 1
 if i < 235 then
    put i,249  after tSeries1
 else
    put i, 249+(i-235)  after tSeries1
 end if
 -- calculate series 2
 if i < 235 then
    -- do nothing - it's the same as series 1
 else
    put i, 249+2*(i-235)  after tSeries2
 end if
  end repeat

  put tSeries1  & tSeries2 into thePoints
  set the points of grc "X" to thePoints
  set the foregroundColor of grc "X" to "blue"
   else
  -- the harder way - multiple series ...
  -- does each step for each series ... much more complex polygon, 
but ...

  local t1, t2, tLast1, tLast2
  repeat with i = 35 to 335
 -- calculate values
 if i < 235 then
    put 249 into t1
    put 249 into t2
 else
    put 249+(i-235) into t1
    put 249+2*(i-235) into t2
 end if
 -- put in series 1
 if tLast1 is not empty then
    put i-1, tLast1  & i, t1  after thePoints
 end if
 -- possibly put in series 2
 if tLast1 <> tLast2 OR t1 <> t2 then
    put CR after thePoints -- blank skip over to series 2 value
    put i-1, tLast2  & i, t2  after thePoints
    put CR after thePoints -- blank skip back to series 1
 end if
 put t1 into tLast1
 put t2 into tLast2
  end repeat
  set the points of grc "X" to thePoints
  set the foregroundColor of grc "X" to "red"
   end if

end mouseup


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-30 Thread Roger Guay via use-livecode
Let’s try this again after spellchecking:


Yes, yours is a good example of a bifurcated line. But now imagine producing 
this line programmatically with an equation that:

Produces a constant y value of 149 as x progresses from 35 to 235 (no problem)
Then produces 2 different but simultaneous values of y as x progresses from 235 
to 335. This is the problem as you don’t want the end point of the separated 
lines to connect. If you place an empty line in the points after each iteration 
beyond x = 235 then you end up with the bifurcated lines being points rather 
than a solid line.

How do plotting programs handle this situation

Sorry for my inattention!

Roger

> On Oct 30, 2020, at 3:33 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Yes, yours is a good example of a bifurcated line. But now imagine producing 
> this line programmatically with an equation that:
> 
> Produces a constant y value of 149 as x progresses from 35 to 235 (no problem)
> Then produces 2 different but simultaneous values of y as x progresses from 
> 235 to 335. This is the problem as you don’t want the end point of the 
> separated lines to connect. If you place an empty line in the points after 
> each iteration beyond x 235 then you end up with the bifurcated lines being 
> points rather than a solid line.
> 
> How to plotting programs handle this situation
> 
> Roger
> 
>> On Oct 30, 2020, at 1:04 PM, Craig newman via use-livecode 
>>  wrote:
>> 
>> Hi.
>> 
>> Aren't the points of your two bifurcated lines comprised of the endpoint of 
>> the "main" line, a comma, and then a line containing two new items? In other 
>> words, if your main line has the points:
>> 34,149
>> 235,149
>> 
>> then one of the bifurcated lines might have points, say:
>> 235,149
>> 335,249
>> 
>> and the other, say,
>> 235,149
>> 335,49
>> 
>> Craig
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
>> Of Dr. Hawkins via use-livecode
>> Sent: Friday, October 30, 2020 3:58 PM
>> To: How to use LiveCode 
>> Cc: Dr. Hawkins 
>> Subject: Re: Plotting Equations that Bifurcate
>> 
>> bob bumbled,
>>> 
>>> Last time I plotted an equation while bifurcating, I was pretty drunk, and 
>>> don't remember much. 
>> 
>> 
>> I once wrote a program that compiled without error and executed on the very 
>> first try.
>> 
>> And, umm, the university would not have approved of what I consumed before I 
>> went to the computer lab . . .
>> 
>> It used random numbers to see how many landed in the circle, allowing it to 
>> compute pi as 3.2 . . .
>> 
>> [ulp]
>> 
>> — 
>> Richard E. Hawkins, Esq.
>> The Hawkins Law Firm
>> 3430 E. Flamingo Rd.
>> Suite 232
>> Las Vegas, NV  89121
>> (702) 508-8462
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-30 Thread Roger Guay via use-livecode
Yes, yours is a good example of a bifurcated line. But now imagine producing 
this line programmatically with an equation that:

Produces a constant y value of 149 as x progresses from 35 to 235 (no problem)
Then produces 2 different but simultaneous values of y as x progresses from 235 
to 335. This is the problem as you don’t want the end point of the separated 
lines to connect. If you place an empty line in the points after each iteration 
beyond x 235 then you end up with the bifurcated lines being points rather than 
a solid line.

How to plotting programs handle this situation

Roger

> On Oct 30, 2020, at 1:04 PM, Craig newman via use-livecode 
>  wrote:
> 
> Hi.
> 
> Aren't the points of your two bifurcated lines comprised of the endpoint of 
> the "main" line, a comma, and then a line containing two new items? In other 
> words, if your main line has the points:
> 34,149
> 235,149
> 
> then one of the bifurcated lines might have points, say:
> 235,149
> 335,249
> 
> and the other, say,
> 235,149
> 335,49
> 
> Craig
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Dr. Hawkins via use-livecode
> Sent: Friday, October 30, 2020 3:58 PM
> To: How to use LiveCode 
> Cc: Dr. Hawkins 
> Subject: Re: Plotting Equations that Bifurcate
> 
> bob bumbled,
>> 
>> Last time I plotted an equation while bifurcating, I was pretty drunk, and 
>> don't remember much. 
> 
> 
> I once wrote a program that compiled without error and executed on the very 
> first try.
> 
> And, umm, the university would not have approved of what I consumed before I 
> went to the computer lab . . .
> 
> It used random numbers to see how many landed in the circle, allowing it to 
> compute pi as 3.2 . . .
> 
> [ulp]
> 
> — 
> Richard E. Hawkins, Esq.
> The Hawkins Law Firm
> 3430 E. Flamingo Rd.
> Suite 232
> Las Vegas, NV  89121
> (702) 508-8462
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Plotting Equations that Bifurcate

2020-10-30 Thread Craig newman via use-livecode
Hi.

Aren't the points of your two bifurcated lines comprised of the endpoint of the 
"main" line, a comma, and then a line containing two new items? In other words, 
if your main line has the points:
34,149
235,149

then one of the bifurcated lines might have points, say:
235,149
335,249

and the other, say,
235,149
335,49

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Dr. Hawkins via use-livecode
Sent: Friday, October 30, 2020 3:58 PM
To: How to use LiveCode 
Cc: Dr. Hawkins 
Subject: Re: Plotting Equations that Bifurcate

bob bumbled,
> 
> Last time I plotted an equation while bifurcating, I was pretty drunk, and 
> don't remember much. 


I once wrote a program that compiled without error and executed on the very 
first try.

And, umm, the university would not have approved of what I consumed before I 
went to the computer lab . . .

It used random numbers to see how many landed in the circle, allowing it to 
compute pi as 3.2 . . .

[ulp]

— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(702) 508-8462

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-30 Thread Dr. Hawkins via use-livecode
bob bumbled,
> 
> Last time I plotted an equation while bifurcating, I was pretty drunk, and 
> don't remember much. 


I once wrote a program that compiled without error and executed on the very 
first try.

And, umm, the university would not have approved of what I consumed before I 
went to the computer lab . . .

It used random numbers to see how many landed in the circle, allowing it to 
compute pi as 3.2 . . .

[ulp]

— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(702) 508-8462

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-30 Thread Stephen Barncard via use-livecode
Bob, that one gets a “LIKE”.

On Fri, Oct 30, 2020 at 10:28 Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Last time I plotted an equation while bifurcating, I was pretty drunk, and
> don't remember much.
>
> Bob S
>
>
> > On Oct 29, 2020, at 15:03 , Roger Guay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I am trying to plot an equation that bifurcates by setting the points of
> a polygon as I iterate the equation. But I can’t figure how to handle the
> bifurcation. Any help will be greatly appreciated!
> >
> > Roger
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
-- 
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-30 Thread Bob Sneidar via use-livecode
Last time I plotted an equation while bifurcating, I was pretty drunk, and 
don't remember much. 

Bob S


> On Oct 29, 2020, at 15:03 , Roger Guay via use-livecode 
>  wrote:
> 
> I am trying to plot an equation that bifurcates by setting the points of a 
> polygon as I iterate the equation. But I can’t figure how to handle the 
> bifurcation. Any help will be greatly appreciated!
> 
> Roger

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-29 Thread Roger Guay via use-livecode
Thank you, Alex. I am aware of the blank line causing a break, but I can’t seem 
to programmatically get it (or them) in the right place. I have a smooth solid 
line that splits in two, and I want to maintain solid lines after the split. I 
must have something screwy in code.

Roger

> On Oct 29, 2020, at 4:06 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> remember that a blank line in the 'points' (aka the vertexlist) is not drawn 
> - therefore you can put each of the branches as a subset of points, with a 
> blank in between
> 
> Alex.
> 
> e.g. two Y values for each X, in a single graphic ...
> 
> repeat with i = 1 to N
> put N,2*n  after t1
> put N,3*n  after t2
> end repeat
> set the points of grc "L1" to t1  & t2
> 
> 
> On 29/10/2020 22:03, Roger Guay via use-livecode wrote:
>> I am trying to plot an equation that bifurcates by setting the points of a 
>> polygon as I iterate the equation. But I can’t figure how to handle the 
>> bifurcation. Any help will be greatly appreciated!
>> 
>> Roger
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Plotting Equations that Bifurcate

2020-10-29 Thread Alex Tweedly via use-livecode
remember that a blank line in the 'points' (aka the vertexlist) is not 
drawn - therefore you can put each of the branches as a subset of 
points, with a blank in between


Alex.

e.g. two Y values for each X, in a single graphic ...

repeat with i = 1 to N
    put N,2*n  after t1
    put N,3*n  after t2
end repeat
set the points of grc "L1" to t1  & t2


On 29/10/2020 22:03, Roger Guay via use-livecode wrote:

I am trying to plot an equation that bifurcates by setting the points of a 
polygon as I iterate the equation. But I can’t figure how to handle the 
bifurcation. Any help will be greatly appreciated!

Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Plotting Equations that Bifurcate

2020-10-29 Thread Roger Guay via use-livecode
I am trying to plot an equation that bifurcates by setting the points of a 
polygon as I iterate the equation. But I can’t figure how to handle the 
bifurcation. Any help will be greatly appreciated!

Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode