Jump to content
Software FX Community

Step, minorstep and firstlabel (again)


User (Legacy)

Recommended Posts

Posted

Hi, I didn't get a response last time and its still a big problem:

For the x axis, I'm setting the STEP = 5000 and minor step = 1000.

I zoom the chart, and the viewport's data starts at 60891, and I want

the labels to appear at 65000, 70000, etc.

I set firstlabel = (Int(.min / .STEP) + 1) * .STEP - .min

This works fine for the labels, but the minor step's

lines/notches/divisions do not appear as expected!

Have I done something wrong? Is there a way to fix this?

Attached is a little picture.

Thanks,

Paul

  • 2 weeks later...
Posted

Hi,

You requested more info and I've only just been able to get back to you.

Here is a walkthrough, a chart should be attached, however you should be

able to construct the same chart without it.

There is also a VB project and a compiled executable that demonstrates

the problem.

Walkthrough is concerned with y axis in this example.

Details:

x min = 46944.86

x max = 51017.04

y min = -341.14

y max = - 1.08

ystep = 50

yminorstep = 10

Possible firstlabel values to make ticks occur at 0,50,100,150...:

firstlabel = 41

Result:

-----

-|

-|

-300 =|

|

|

-----

Note the minor ticks only appear ABOVE the first label. I expected all

minor ticks.

firstlabel = -9

Result:

-----

|

|

|

|

|

-----

Note there are NO minor ticks, and no major ticks. This actually works if

the chart is zoomed, but it only shows 1 major tick.

The problems seem to multiply when using firstlabel while it is zoomed.

Instead, I've had to hack it to set .min at a point like -350, and then

set the scrolling window where .min and .max should be. (what a hack! why

can't I do this the "right way"??)

This I can't actually do as it would clobber the user's settings changed

during a view. How can I remedy this?

Thanks

Paul

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...