NetTalk Central

Author Topic: Specifying points on the X-Axis (IG)  (Read 2832 times)

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Specifying points on the X-Axis (IG)
« on: November 12, 2013, 05:37:04 PM »
Hi

This is an InsightGraphing question so I suppose I should be posting it on 'InsightGraphingCentral' but I don't think there is one so here goes!

I have a graph on a NetWebForm which has 200 plotting points.  The X-values range from 0.00 to 20.00 and the actual values for the first 21 numbers are:

0.0 and
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0

On ?InsightPrompts for the graph, X-Axis, you can specify how the PointName is displayed and the obvious choice is 'Display PointName with labels at every x points'. These X-values are seconds and I want to display 1 2 3 4 5 6 etc.

But there is a problem because of the 0.0. The first value I want to display is 1 which is the 11th entry but if x=11 then the values on the axis are:

1  2.1  3.2  4.2  etc.

Choosing x=10 gets:

0.9  1.9  2.9  3.9  etc.

Neither are correct and what is needed is a choice construct like "specify the first value then the interval for all other values'.  If this was available then you could choose '0 and 10' and you would get 0 1 2 3 etc. but I couldn't work out how to get this with the current options on the prompts.  The issue is that there are 11 items in the first group and 10 in all of the others.

So, I have, for the time being fudged the graph by not writing the record for the 0.1 point into the plotting queue.  This makes the sequence 0.0 0.2 0.3 . . . 1.0 etc. and there are 10 items in each group.  Displaying a 'point name every 10 points' works and I have enough points that no-one will miss the one entry.

However, I would be interested in comments about this - I may have missed something about how to specify the first point.

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: Specifying points on the X-Axis (IG)
« Reply #1 on: November 12, 2013, 06:16:02 PM »
PS  When I said:

If this was available then you could choose '0 and 10' and you would get 0 1 2 3 etc.

I should have said:
If this was available then you could choose '1 and 10' and you would get 0 1 2 3 etc.

Cheers

Keith
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: Specifying points on the X-Axis (IG)
« Reply #2 on: November 13, 2013, 07:15:01 AM »
What graph type are you using?

Cheers
Bruce

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Specifying points on the X-Axis (IG)
« Reply #3 on: November 13, 2013, 10:11:19 AM »
Hi Bruce

The Graph Type is 'Line'.

Keith
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: Specifying points on the X-Axis (IG)
« Reply #4 on: November 14, 2013, 12:09:00 AM »
As an aside, a time graph might be more suited to your needs if the X-Axis is "time".

But assuming it's a line graph, there are some important things to note.

X-Axis "points" are numbered from 1 to n as sequential integers. Obviously they can have any "name" and hence you can display anything along the X-Axis, but the point numbers themselves are sequential integers.

But if I understand the problem correctly, you want to "start numbering from the second point", and indeed there's no option to do that. Sorry.

Bruce