Re: Seeking philosophical guidance on library interface design.

2019-04-29 Thread Alex Tweedly via use-livecode
On 29/04/2019 07:12, Dar Scott Consulting via use-livecode wrote: I'm not sure what C is. Maybe something related to using arrays. Maybe a tool to create code snippets. Ah, OK, got it. I do already have a handler that will "save" the current graph; i.e. write out the JSON of the defining

Re: Seeking philosophical guidance on library interface design.

2019-04-29 Thread Dar Scott Consulting via use-livecode
I'm not sure what C is. Maybe something related to using arrays. Maybe a tool to create code snippets. > On Apr 25, 2019, at 2:25 PM, Alex Tweedly via use-livecode > wrote: > > Sorry, but .. what is C ? > > Current plan is kind of B- i.e. the default is to try to apply some >

Re: Seeking philosophical guidance on library interface design

2019-04-25 Thread Alex Tweedly via use-livecode
On 26/04/2019 00:27, Quentin Long via use-livecode wrote: Hmmm… Seems like this library is intended for a summat limited subset of graph-styles. There are pie charts, radar charts, etc ad nauseum, and it's not clear to me how this library caan cope with any of those "non-standard" types of

Re: Seeking philosophical guidance on library interface design

2019-04-25 Thread Quentin Long via use-livecode
Hmmm… Seems like this library is intended for a summat limited subset of graph-styles. There are pie charts, radar charts, etc ad nauseum, and it's not clear to me how this library caan cope with any of those "non-standard" types of graph. As well, it's unclear to me how this library will deal

Re: Seeking philosophical guidance on library interface design.

2019-04-25 Thread Alex Tweedly via use-livecode
On 25/04/2019 19:07, Dar Scott Consulting via use-livecode wrote: I like the use of an array. Add the ability to set the default array, allowing named arrays. Or supply base arrays that one could use to make a plot parameter array. Yeah, it should be easy and potentially useful to have some

Re: Seeking philosophical guidance on library interface design.

2019-04-25 Thread Alex Tweedly via use-livecode
Sorry, but .. what is C ? Current plan is kind of  B-  i.e. the default is to try to apply some simple guesswork to make a "reasonable" looking result, but with a simple way (e.g. put TRUE into myArray["NoGuessing"] ) to prevent any such attempt and ave a minimal, undecorated graph. --

Re: Seeking philosophical guidance on library interface design.

2019-04-25 Thread Dar Scott Consulting via use-livecode
Coming in late... For bread-and-butter code, B. For software development, A. But, really, my response is C. Dar > On Apr 23, 2019, at 5:01 PM, Alex Tweedly via use-livecode > wrote: > > Hi folks, > > I'm building a library (which I plan to release as Open Source), and I'm > having

Re: Seeking philosophical guidance on library interface design.

2019-04-25 Thread Dar Scott Consulting via use-livecode
I like the use of an array. Add the ability to set the default array, allowing named arrays. Or supply base arrays that one could use to make a plot parameter array. -- Dar Scott Mad Scientist darzLab > On Apr 23, 2019, at 9:00 PM, Richard Gaskin via use-livecode > wrote: > > Using named

Re: Seeking philosophical guidance on library interface design.

2019-04-25 Thread Alex Tweedly via use-livecode
I did really well - I got two typos into a very short example ...  the description shoudl have said lineDel, not itemDel, and it should have been set to ":", not ";" My fault for taking the *real* example out of the demo app, and cutting it down while typing the email. itemDel and lineDel

Re: Seeking philosophical guidance on library interface design.

2019-04-24 Thread Mark Wieder via use-livecode
On 4/24/19 5:47 PM, Alex Tweedly via use-livecode wrote: 1a. same thing, using the itemDel feature. put ";" into sA["lineDel"] put "1:2:4:8:16:15:14:13:12:22:17:15" into temp put temp into sA["data"][1]["values"] gmMakeGraph the long id of grp "mycanvas", sA Are itemDel and lineDel synonyms?

Re: Seeking philosophical guidance on library interface design.

2019-04-24 Thread Mark Wieder via use-livecode
On 4/24/19 5:47 PM, Alex Tweedly via use-livecode wrote: I've pretty much decided to take Mark's and Bob's suggestion - but in reverse :-) :-P -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Seeking philosophical guidance on library interface design.

2019-04-24 Thread Alex Tweedly via use-livecode
Thanks everyone for great feedback and suggestions. Below I've included the current summary specs; currently this is all pretty much working, except for titles (which I just haven't done yet :-), and a few minor tweaks to handle improvements I've added to the spec from reading the "R" docs

Re: Seeking philosophical guidance on library interface design.

2019-04-24 Thread prothero--- via use-livecode
For clarification, when I said “many kinds” in my previous post, I meant to be referring to the kinds of plots, not the symbol for the data. Best, Bill William Prothero http://es.earthednet.org > On Apr 24, 2019, at 6:54 AM, prothero--- via use-livecode > wrote: > > Alex, > A great idea! I

Re: Seeking philosophical guidance on library interface design.

2019-04-24 Thread prothero--- via use-livecode
Alex, A great idea! I do a lot of plotting and would find this kind of library very useful. I would need it to be able to determine some reasonable default values for plot axes, but also to be able to set them. The plot label and axis labels need to be settable. Also, there could be histogram

Re: Seeking philosophical guidance on library interface design.

2019-04-23 Thread Richard Gaskin via use-livecode
R is among the world's most popular tools for this. When in doubt, following their proven popular designs would seem a good bet. R's plot function is a thing of beauty. Their default is to produce the most commonly-used result. You can even pass nothing but data to it and get a very useful

Re: Seeking philosophical guidance on library interface design.

2019-04-23 Thread Mark Wieder via use-livecode
On 4/23/19 4:19 PM, Bob Sneidar via use-livecode wrote: My thinking is to ask what visual impact if any would having the extra attributes have? Is there a scenario where the graphs would be created so small that the extras would be visually unappealing? Also, I think less to start with is

Re: Seeking philosophical guidance on library interface design.

2019-04-23 Thread Tom Glod via use-livecode
interesting thread. sounds like a useful library. * watching * thanks Alex On Tue, Apr 23, 2019 at 7:19 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > My thinking is to ask what visual impact if any would having the extra > attributes have? Is there a scenario where

Re: Seeking philosophical guidance on library interface design.

2019-04-23 Thread Bob Sneidar via use-livecode
My thinking is to ask what visual impact if any would having the extra attributes have? Is there a scenario where the graphs would be created so small that the extras would be visually unappealing? Also, I think less to start with is better, because adding more features makes the end user feel