NetTalk Central

Author Topic: Insight Graphing remembers past settings  (Read 3968 times)

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Insight Graphing remembers past settings
« on: November 25, 2013, 11:20:37 PM »
Hi

I have attached a document with two graphs.  The first is the original I produced in the NT application and it had (by default I think) triangles to mark each plotted point.

This was a bit busy because I had 200 points and so I fossicked around and found in the InsightPrompts for the graph window (Data/FromPlottingQueue (Properties)/Sets/InsightGraphField pq:value (Properties)/Style/OverrideDefaultStyle (Ticked)/Penwidth 1/PenStyle and I set this to 'None'.

Bingo, I got the second graph in the document which is beautiful, just what the doctor ordered and I was very happy.

However, true happiness is sometimes short lived as I found to my astonishment some days and many compiles later.  I discovered that the graph shape had reverted to triangles!!  Of course, I had not been changing anything anywhere close to this graph and my amazement knew no bounds.

I must confess to being lacking in my knowledge of the C8 IDE and how to force the whole application to be regenerated and built  but I did something to regenerate and magically the triangles vanished.  So I was guardedly happy again.

But after more days and compiles, today it happened again   ???  So, I changed Shape to 'Circles', recompiled and got circles.  I changed Shape back to 'None' and got none. Great.  I then carried on with another unrelated change, compiled once and the graph was back to triangles in spite of the fact that Shape is set to 'None'.

I think this must have something to do with what I am doing in the IDE but as I said I'm rusty.

Thanks

Keith

[attachment deleted by admin]
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Insight Graphing remembers past settings
« Reply #1 on: November 26, 2013, 03:47:52 AM »
hi Keith,

I've not heard of this before, and it's strange it's singled out the "shape" property for this sort of treatment.
I guess there's a simple workaround - but it is a workaround.
You can find the line of (generated) code that sets the shape and copy that line (with no shape) down to the next embed point - that'll likely work.

Let me know if you need more pointers;

cheers
Bruce

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Insight Graphing remembers past settings
« Reply #2 on: November 26, 2013, 01:47:53 PM »
Hi Bruce

I found the code which is displayed in the attached doc.  The Shape property is set to Auto (I suppose Triangles) then modified by my overriding setting to None.

You are suggesting that the line: 'ThisGraph2.SetQ.Shape = Insight:None' needs to be repeated at the next embed point.  Would that be (see the second picture in the doc) after the 'Priority = 8450'?

I suppose that it needs to be in force just prior to the redrawing of the graph - so is this the right place?

This is a mystery though, if it is set to Auto, then None it should stay as None!.

There is only one occurrence of Shape=Insight:Auto in the generated code which adds to the mystery.  I'll have to get into Debugger and step thru the code although you would not expect the Shape=None not to be executed and of course it is (but not every time).

If you can advise where to put the Shape=Insight:Auto line it would be appreciated.

Thanks

Keith

[attachment deleted by admin]
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Insight Graphing remembers past settings
« Reply #3 on: November 27, 2013, 02:38:20 AM »
Hi Keith,

>>The Shape property is set to Auto (I suppose Triangles) then modified by my overriding setting to None.

you could set the property on the "Properties" tab to Insight:None - which would change the default for the graph, and might solve the problem.

>> You are suggesting that the line: 'ThisGraph2.SetQ.Shape = Insight:None' needs to be repeated at the next embed point.  Would that be (see the second picture in the doc) after the 'Priority = 8450'?

yes, but you'd need to do a Put(ThisGraph2.SetQ) as well if you are copying the setting for SetQ.

cheers
Bruce

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Insight Graphing remembers past settings
« Reply #4 on: November 27, 2013, 12:55:51 PM »
Hi Bruce

I found under 'Scatter' the Shape property and set it to 'None'.  I still have my InsightProperties override also set to 'None' and the graph displays correctly.  I haven't added the line to additionally set the property to 'None' as you suggested, not wanting to compound fixes.

Anyway, now there is no occurrence of 'Shape=Insight:Auto' in the code so if I ever get Triangles again it will point to a deeper problem.

I'll let you know if this occurs again or if I have any further thoughts.

Cheers

Keith
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Insight Graphing remembers past settings
« Reply #5 on: November 28, 2013, 01:32:15 AM »
Hi Bruce

The Triangles returned!!  Here's what happened:

1. C8 refused to load my GoCars app and kept crashing.
2.  In desperation I copied a backup of the app and dct to GoCars2 and opened as a new solution.
3. This version had my style override in force with Shape set to 'None'
4. Recompile was ok (note there were no files associated with the GoCars app in the folder)
5. Ran the app and the Triangles came back.
6.  I made one change - Properties/Scatter/Shape=Insight:None
7.  The Triangles went away!

I had an absolutely clean app with Shape overridden to None but I got the default Shape. ]In the code the line ThisGraph2.Shape=Insight:Auto was generated. This was followed by my override ThisGraph2.Shape=Insight:None ]I can't see how my override did not change the setting unless the 'AddItem' of 'If' in between did something.

I then did another experiment.  I set everything back so that Triangles defaulted - ok.  I then just set up my Style override (I did not change 'Properties' and that also worked (no Triangles).

I will now keep these setups and see if Triangles ever reappears.  If they do then I will add the change to 'Properties' and monitor again to see if the problem is really fixed.

Is there a deeper problem?  When only Insight:Auto is stated you must be looking somewhere else to find out what the 'Auto' means.
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Insight Graphing remembers past settings
« Reply #6 on: November 30, 2013, 05:35:48 PM »
Update on this problem.

I ran for a day with the generated code saying ThisGraph2.Shape=Insight:Auto and my overriding set of Shape to None.  And the triangles came back.

So now I have the Properties for the graph set to Properties/Scatter/Shape=Insight:None

So far so good.

The generated code now has two instances of Shape set to None.

Cheers

Keith
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27